-
Notifications
You must be signed in to change notification settings - Fork 989
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
Remove mutating webhook that doesn't do anything #4233
Remove mutating webhook that doesn't do anything #4233
Conversation
✅ Deploy Preview for karpenter-docs-prod canceled.
|
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.
/karpenter snapshot
Snapshot successfully published to |
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.
/karpenter snapshot
Snapshot successfully published to |
it seems like E2E test are failing due to
|
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.
/karpenter snapshot
Snapshot successfully published to |
@@ -19,17 +19,6 @@ webhooks: | |||
failurePolicy: Fail | |||
sideEffects: None | |||
rules: | |||
- apiGroups: |
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.
In order for this to work properly with the Knative reconciliation mechanism, we would need to update the addition of the defaulting webhook for AWSNodeTemplate
s on this line: https://github.com/aws/karpenter/blob/main/pkg/webhooks/webhooks.go#L44. We can do this but we are planning to remove the entire batch of webhooks in the near-future.
Is this currently blocking anything or causing issues? I'm wondering if we can wait to remove this until we remove all of the webhooks outright.
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.
Ah ok no worries not blocking. We could wait.
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.
If it's alright with you, I'm going to close this since we won't take this right now. You can track the removal of the webhooks through: kubernetes-sigs/karpenter#103
Fixes
Remove mutating webhook that isn't doing anything for awsnodetemplates
Description
Currently node template doesn't have any side effects in setDefaults https://github.com/aws/karpenter/blob/86229e15ba129992b5829b14a580bcded0d5f2fb/pkg/apis/v1alpha1/awsnodetemplate_defaults.go#L22. To reduce unnecessary components and calls to Karpenter we should remove this rule.
Move metric relabelings that add additional info to the metrics into the ServiceMonitor
How was this change tested?
Ran helm template locally against the new webhook template. Mutating webhook new configuration looks like: (without defaulting against awsnodetemplates
make apply on local cluster
Does this change impact docs?
No. I don't believe there are docs regarding this defaulting behavior
[] Yes, PR includes docs updates
[] Yes, issue opened: #
No
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.