-
Notifications
You must be signed in to change notification settings - Fork 5
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
Enable Registration #70
base: master
Are you sure you want to change the base?
Conversation
gambol99
commented
Jul 23, 2018
- adding the abilty for the admission controller to regsiter itself
cmd/policy-admission/main.go
Outdated
@@ -95,6 +95,23 @@ func main() { | |||
EnvVar: "CONTROLLER_NAME", | |||
Value: "policy-admission.acp.homeoffice.gov.uk", | |||
}, | |||
cli.StringFlag{ | |||
Name: "admission-service-name", | |||
Usage: "kuberneres service name of the admission controller, used when registering `SERVICE`", |
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.
kuberneres => kubernetes
cmd/policy-admission/main.go
Outdated
}, | ||
cli.StringFlag{ | ||
Name: "failure-policy", | ||
Usage: "the failure policy when registering the controler `POLICY`", |
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.
controler => controller
cmd/policy-admission/main.go
Outdated
}, | ||
cli.StringFlag{ | ||
Name: "certificate-bundle", | ||
Usage: "file container the certificate authority bundle used when registering `PATH`", |
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.
file container the certificate authority bundle
=> file containing the certificate authority bundle
cmd/policy-admission/main.go
Outdated
cli.BoolFlag{ | ||
Name: "enable-registration", | ||
Usage: "indicates you want the admission controller to self-register `BOOL`", | ||
EnvVar: "ENABLE_EVENTS", |
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.
You need to change the EnvVar here
- adding the abilty for the admission controller to regsiter itself
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.
LGTM