-
Notifications
You must be signed in to change notification settings - Fork 1.6k
KEP-5073: update declarative validation KEP with updated immutability design #5614
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
KEP-5073: update declarative validation KEP with updated immutability design #5614
Conversation
2a215cd
to
d1367ca
Compare
4730a27
to
ff4124d
Compare
/cc @yongruilin |
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.
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.
Minor comments. The Common Patterns table is excellent, thank you.
// ✅ Create: replicas = 3 | ||
// ✅ Update: replicas = 5 | ||
// ❌ Update: replicas = nil | ||
Replicas *int32 |
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 did this example get removed?
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.
I removed this when adding the Common Patterns table but I agree they should be kept. I've updated this to keep these examples now (updated for new semantics) in a new section:
Immutability Patterns and Tags Demonstrated
Replicas *int32 | ||
} | ||
|
||
type PersistentVolumeStatus struct { |
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.
can we keep this example? I think it's create, update(set), update(modify) ?
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.
I've added back this example updated for the new semantics
Strategy *DeploymentStrategy | ||
} | ||
|
||
type PersistentVolumeClaimSpec struct { |
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.
the new examples are good, but can we keep and update these too?
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.
I've added back this example updated for the new semantics
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aaron-prindle, deads2k, jpbetz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5835867
to
a672b43
Compare
a672b43
to
6fccab4
Compare
/unhold |
/lgtm |
One-line PR description: This addresses how we intend to handle immutability related validations with Declarative Validation.
Issue link: #5073