-
Notifications
You must be signed in to change notification settings - Fork 569
Admission Webhooks for OLM #884
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
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ecordell The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
njhale
left a comment
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.
Thanks for working on this. A few preliminary comments:
deploy/chart/templates/0000_50_olm_07-olm-operator.deployment.yaml
Outdated
Show resolved
Hide resolved
2fb1bd5 to
a82855d
Compare
|
/retest |
1 similar comment
|
/retest |
…ager into awgreene-webhooks
before generating the required rbac for an operator this allows users to directly apply a CSV and, if they have enough permission, automatically create serviceaccounts and rbac for the operator.
|
@ecordell: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
Closing this in favor of #1102 |
|
@ecordell: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Description of the change:
This adds an admission webhook to OLM that:
Directly applying a CSV and CRD will result in the CSV transitioning past
Pendingand into running states.If the RBAC generation fails for some reason, the CSV status will explain exactly which rbac rules still need to be filled.
The processing is done asynchronously and doesn't block storage of the CSV by etcd.
The webhook requires TLS certs coordinated with the kube apiserver. For this PR, the webhook is only enabled when running locally, and certs are generated at that time. Upstream deployments should probably integrate with cert-manager, and OpenShift deployments should use service-ca-signer (this work is coming).
Motivation for the change:
It can be frustrating to iterate on CSVs if you have to syncronize rbac between CSV and standard roles/rolebindings.
This also restores the older behavior of OLM, which
Reviewer Checklist
/docs