Skip to content

Commit

Permalink
refact: update override policy crd
Browse files Browse the repository at this point in the history
Signed-off-by: kaku <[email protected]>
  • Loading branch information
likakuli committed May 7, 2022
1 parent f53ba7c commit 79cc394
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/policy/v1alpha1/overridepolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ type PlaintextOverrider struct {
// Operator indicates the operation on target field.
// Available operators are: add, update and remove.
// +kubebuilder:validation:Enum=add;remove;replace
Operator OverriderOperator `json:"operator"`
Operator OverriderOperator `json:"op"`
// Value to be applied to target field.
// Must be empty when operator is Remove.
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
that overrides target fields according to path, operator
and value.
properties:
operator:
op:
description: 'Operator indicates the operation on
target field. Available operators are: add, update
and remove.'
Expand All @@ -77,7 +77,7 @@ spec:
Must be empty when operator is Remove.
x-kubernetes-preserve-unknown-fields: true
required:
- operator
- op
- path
type: object
type: array
Expand Down
4 changes: 2 additions & 2 deletions charts/_crds/bases/policy.kcloudlabs.io_overridepolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
that overrides target fields according to path, operator
and value.
properties:
operator:
op:
description: 'Operator indicates the operation on
target field. Available operators are: add, update
and remove.'
Expand All @@ -77,7 +77,7 @@ spec:
Must be empty when operator is Remove.
x-kubernetes-preserve-unknown-fields: true
required:
- operator
- op
- path
type: object
type: array
Expand Down

0 comments on commit 79cc394

Please sign in to comment.