-
Notifications
You must be signed in to change notification settings - Fork 8
fix: webhook panic when management cluster has nil topology #1372
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
|
Ticket: https://jira.nutanix.com/browse/NCN-110783 - [NKP 2.17.0-dev4] EKS Cluster deploy is erroring out: webhook panic when management cluster has nil topology |
jimmidyson
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.
Let's add match conditions to the webhook config too to prevent non cc clusters being sent to this webhook at all (keeping the code you've added on this pr as well).
Good idea, done in #1375 |
…opology (#1381) **What problem does this PR solve?**: Backport #1372 Fixes a panic in the addon webhook and handles the case when creating a ClusterClass workload cluster in a non ClusterClass management cluster. **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
**What problem does this PR solve?**: Recently found a bug #1372 This adds another level of safety and skips unnecessarily calling this webhook for clusters not using topology. **Which issue(s) this PR fixes**: Fixes # **How Has This Been Tested?**: <!-- Please describe the tests that you ran to verify your changes. Provide output from the tests and any manual steps needed to replicate the tests. --> **Special notes for your reviewer**: <!-- Use this to provide any additional information to the reviewers. This may include: - Best way to review the PR. - Where the author wants the most review attention on. - etc. -->
What problem does this PR solve?:
Fixes a panic in the addon webhook and handles the case when creating a ClusterClass workload cluster in a non ClusterClass management cluster.
Which issue(s) this PR fixes:
Fixes #
How Has This Been Tested?:
Special notes for your reviewer: