-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: Add delete override option in the API #972
Conversation
939029e
to
66d4de7
Compare
66d4de7
to
01acd89
Compare
// +kubebuilder:validation:Enum=JSONPatch;Delete | ||
// +kubebuilder:default:JSONPatch | ||
// +optional | ||
OverrideType OverrideType `json:"overrideType,omitempty"` |
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.
Better to move this to be after ClusterSelector.
Why?
- Specify the target and then specify the desired action upon the target.
- OverrideType and JSONPatchOverrrides are used to describe the action. They should be together.
09d233a
to
571b8e4
Compare
// +kubebuilder:validation:Enum=JSONPatch;Delete | ||
// +kubebuilder:default:JSONPatch | ||
// +optional | ||
OverrideType OverrideType `json:"overrideType,omitempty"` |
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.
OverrideType OverrideType `json:"overrideType,omitempty"` | |
Type OverrideType `json:"type,omitempty"` |
} | ||
|
||
// OverrideType defines the type of Override |
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.
missing period
Description of your changes
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
Special notes for your reviewer