Skip to content
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

Disallow only spec updates for now #1146

Merged
merged 2 commits into from
Dec 9, 2019
Merged

Disallow only spec updates for now #1146

merged 2 commits into from
Dec 9, 2019

Conversation

alenkacz
Copy link
Contributor

@alenkacz alenkacz commented Dec 9, 2019

What this PR does / why we need it:
For now, we disallowed all updates except status updates. This narrows it down and just disallows updates to the spec that means:

  • no change in params
  • no change in OV

This potentially narrows down issues with the webhook as controller etc. can update annotation or finalizers, which I think is fine even when plan is running.

Addition to #883

Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¯_(ツ)_/¯

@alenkacz alenkacz added this to the 0.9.0 milestone Dec 9, 2019
Copy link
Member

@kensipe kensipe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small non blocking nit

lgtm

@@ -14,23 +15,29 @@ var _ kudo.Validator = &Instance{}

// ValidateCreate implements webhookutil.validator (from controller-runtime)
// we do not enforce any rules upon creation right now
// ValidateCreate implements kudo.Validator (slightly tweaked interface originally from controller-runtime)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L16 and L18 make conflicting statements

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, good catch :) thanks

@alenkacz alenkacz merged commit 048cebb into master Dec 9, 2019
@alenkacz alenkacz deleted the av/disallow-spec branch December 9, 2019 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants