-
Notifications
You must be signed in to change notification settings - Fork 1
⚠️ Updating ClusterAPI and Controller-Runtime #62
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
|
Tests are looking goooooood 😄 |
|
Next up, solving this, which also closes #43 This is a longer running task, and should not go along with this pr, as we have more crazy changes incoming.. |
| func (c *Cdk8sAppProxy) validateCdk8sAppProxy() (admission.Warnings, error) { | ||
| var allErrs []error | ||
| // ValidateUpdate implements webhook.Validator so a webhook will be registered for the type. | ||
| func (*cdk8sAppProxyWebhook) ValidateUpdate(_ context.Context, oldRaw, newRaw runtime.Object) (admission.Warnings, error) { |
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.
Needed to implement the Update validator, to satisfy the Interface.
The update validation logic is not the validation, we ultimately want, since updating the repoURL on an existing CAP resource should be allow - but i just need something to validate against..
|
Maybe a good starting point to identify good validation use-cases. 👍 |
…adjustments on the webhooks, and restored a few test-files, to satisfy our dependecies.
|
Just made the Specs 'Reference' and 'Path' optional, and let the Defaulter set default values. |
What this PR does / why we need it:
This PR updates the dependecies for Cluster-API to v1.10.7 and the controller-runtime to v0.20.4
Along these updates, we needed to re-work the webhook/validation, to use the new methods.
Which issue(s) this PR fixes:
Fixes #9