fix ClusterOverride field

Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2021-04-23 10:41:29 +00:00
parent ad6f22c715
commit b05ef6714c
2 changed files with 4 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ spec:
type: string
value:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- path
type: object

View File

@@ -44,8 +44,9 @@ type GenericPlacement struct {
}
type ClusterOverride struct {
Op string `json:"op,omitempty"`
Path string `json:"path"`
Op string `json:"op,omitempty"`
Path string `json:"path"`
// +kubebuilder:pruning:PreserveUnknownFields
Value runtime.RawExtension `json:"value,omitempty"`
}