Skip to content

Commit 2f1f1e7

Browse files
authored
omit empty value (#1087)
Signed-off-by: YuChen <[email protected]>
1 parent c1be25c commit 2f1f1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1alpha1/operandconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ type MatchExpression struct {
108108
Operator ExpressionOperator `json:"operator"`
109109
// Values is the values of the field.
110110
// +optional
111-
Values []string `json:"values"`
111+
Values []string `json:"values,omitempty"`
112112
// ObjectRef is the reference of the object.
113113
// +optional
114114
ObjectRef *ObjectRef `json:"objectRef,omitempty"`

0 commit comments

Comments
 (0)