-
Notifications
You must be signed in to change notification settings - Fork 23
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
Izhang validation webhook #89
Conversation
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]> working webhook set up
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]> working refactor Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]> more test case Signed-off-by: ianzhang366 <[email protected]> add test case Signed-off-by: ianzhang366 <[email protected]>
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.
The change looks good but OLM cannot install 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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ianzhang366, rokej, xiangjingli 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 |
Signed-off-by: ianzhang366 <[email protected]>
New changes are detected. LGTM label has been removed. |
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]>
Signed-off-by: ianzhang366 <[email protected]>
Kudos, SonarCloud Quality Gate passed!
|
Signed-off-by: Xiangjing Li <[email protected]> (cherry picked from commit 7b86a94befdc2e71544b5d8479be25e54362b5c5)
Signed-off-by: Xiangjing Li <[email protected]> (cherry picked from commit 7b86a94befdc2e71544b5d8479be25e54362b5c5)
Addressing issue(when multiple types of the channel at 1 namespace crash the channel operator):
https://github.com/open-cluster-management/backlog/issues/2265
https://github.com/open-cluster-management/backlog/issues/2310
Basically, we add a validation webhook.
The validation logic is defined at issue:
https://github.com/open-cluster-management/backlog/issues/2157
To support the webhook, we need to create
service
for k8s-server to call on the webhook we createdValidatingWebhookConfiguration
, tells k8s to call the webhook service whenchannel
resource is created or updated.In addition, we need to create a self-signed cert and inject the CA to
ValidatingWebhookConfiguration
.