-
Notifications
You must be signed in to change notification settings - Fork 835
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
Adding support for Kubernetes 1.22 through validation webhook v1 #3667
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test integration |
/test notebooks |
/test notebooks |
/test integration |
2 similar comments
/test integration |
/test integration |
@@ -67,121 +84,5 @@ webhooks: | |||
resources: | |||
- seldondeployments | |||
sideEffects: None | |||
- clientConfig: |
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.
Big deletion here - is this correct?
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.
This was automatically removed when running controller-gen against v1 instead of v1beta1
@@ -1,9 +1,3 @@ | |||
- op: replace | |||
path: /webhooks/0/clientConfig/caBundle | |||
value: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURRVENDQWltZ0F3SUJBZ0lVRkgwbG9uSUFGK2NjUGJnMmdjRlQ5R2JCaVhvd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0x6RXRNQ3NHQTFVRUF3d2tRV1J0YVhOemFXOXVJRU52Ym5SeWIyeHNaWElnVjJWaWFHOXZheUJFWlcxdgpJRU5CTUNBWERURTVNVEF3TWpFek1qRXlNRm9ZRHpJNU9Ua3hNakF6TVRNeU1USXdXakF2TVMwd0t3WURWUVFECkRDUkJaRzFwYzNOcGIyNGdRMjl1ZEhKdmJHeGxjaUJYWldKb2IyOXJJRVJsYlc4Z1EwRXdnZ0VpTUEwR0NTcUcKU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRQyt5UFhjWVRUc0NKODl6VEl3MzdyK0FndTlEcitrOFNxRQpMbU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K0JjWEF5VjN6SmRkCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K | |||
- op: replace |
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.
Why are these deleted?
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.
Because the webhooks for v1alpha1 and v1alpha2 were deleted from the manifest, which means that this would error out as there's only one after running controllergen
/test integration |
14243cf
to
bf88789
Compare
/test integration |
/test notebooks |
…donIO#3667) * Added updates for validation webhook v1 * Updated copy commands for operator * Updated to include split resources * Updated the alpha versions * Added upgrading page documentation Co-authored-by: cliveseldon <[email protected]>
Fixes #3618
PR includes:
seldondeployment_webhook.go
annotations for v1 validation webhookmake -C operator manifests_all
make -C operator generate-resources
split_resources.py
to also only reference first webhookmake -C operator/helm create_helper
Tested successfully in k8s 1.22 using:
OUtstanding:
"cert-manager.io/inject-ca-from" in res["metadata"]["annotations"]