-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Rename InstallWebhookConfig and change it to a pointer #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename InstallWebhookConfig and change it to a pointer #186
Conversation
So one recommendation, we should invert the flag (--disable-webhook-config-install ? or something) |
ba09808
to
8ef5d02
Compare
8ef5d02
to
590a840
Compare
@droot PTAL |
Renamed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I have a renaming suggestion :)
pkg/webhook/server.go
Outdated
// during bootstrapping. e.g. webhookConfiguration, service and secret. | ||
InstallWebhookConfig bool | ||
// If false, the server will install the webhook config objects. It is defaulted to false. | ||
DisableInstallWebhookConfig *bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something about the name feels off while reading it. "Disable" and "Install" not going together. One option could be "DisableWebhookConfigAutoInstall" ?
590a840
to
ee29740
Compare
New changes are detected. LGTM label has been removed. |
Changed it to |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: mengqiy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…fig_pointer Rename InstallWebhookConfig and change it to a pointer
Add OSX build job to travis config
This PR changes an option introduced in #174.
We always install webhook config prior v0.1.5 releases.
We introduced an option
InstallWebhookConfig
recently and was released on Oct 25 in v0.1.5.If
InstallWebhookConfig
is not an pointer, it will be defaulted tofalse
by golang.That means existing user who are upgrading from previous controller-runtime version will be break, because they expect webhook config installer to be on.