Remove invalid merge key

This commit is contained in:
Joe Betz
2023-06-06 21:18:59 -04:00
parent 6f116dc4d5
commit 087fbc9304
18 changed files with 12 additions and 68 deletions

View File

@@ -15774,9 +15774,7 @@
"properties": { "properties": {
"key": { "key": {
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",

View File

@@ -8547,9 +8547,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -978,9 +978,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -1085,9 +1085,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -5540,9 +5540,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -1330,9 +1330,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -4714,9 +4714,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -1275,9 +1275,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -730,9 +730,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -987,9 +987,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -2419,9 +2419,7 @@
"key": { "key": {
"default": "", "default": "",
"description": "key is the label key that the selector applies to.", "description": "key is the label key that the selector applies to.",
"type": "string", "type": "string"
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge"
}, },
"operator": { "operator": {
"default": "", "default": "",

View File

@@ -48756,12 +48756,6 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba
Type: []string{"object"}, Type: []string{"object"},
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"key": { "key": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "key is the label key that the selector applies to.", Description: "key is the label key that the selector applies to.",
Default: "", Default: "",

View File

@@ -4714,12 +4714,6 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba
Type: []string{"object"}, Type: []string{"object"},
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"key": { "key": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "key is the label key that the selector applies to.", Description: "key is the label key that the selector applies to.",
Default: "", Default: "",

View File

@@ -425,8 +425,6 @@ message LabelSelector {
// relates the key and values. // relates the key and values.
message LabelSelectorRequirement { message LabelSelectorRequirement {
// key is the label key that the selector applies to. // key is the label key that the selector applies to.
// +patchMergeKey=key
// +patchStrategy=merge
optional string key = 1; optional string key = 1;
// operator represents a key's relationship to a set of values. // operator represents a key's relationship to a set of values.

View File

@@ -1207,9 +1207,7 @@ type LabelSelector struct {
// relates the key and values. // relates the key and values.
type LabelSelectorRequirement struct { type LabelSelectorRequirement struct {
// key is the label key that the selector applies to. // key is the label key that the selector applies to.
// +patchMergeKey=key Key string `json:"key" protobuf:"bytes,1,opt,name=key"`
// +patchStrategy=merge
Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
// operator represents a key's relationship to a set of values. // operator represents a key's relationship to a set of values.
// Valid operators are In, NotIn, Exists and DoesNotExist. // Valid operators are In, NotIn, Exists and DoesNotExist.
Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"` Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"`

View File

@@ -1011,12 +1011,6 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba
Type: []string{"object"}, Type: []string{"object"},
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"key": { "key": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "key is the label key that the selector applies to.", Description: "key is the label key that the selector applies to.",
Default: "", Default: "",

View File

@@ -1014,12 +1014,6 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba
Type: []string{"object"}, Type: []string{"object"},
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"key": { "key": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "key is the label key that the selector applies to.", Description: "key is the label key that the selector applies to.",
Default: "", Default: "",

View File

@@ -1012,12 +1012,6 @@ func schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref common.ReferenceCallba
Type: []string{"object"}, Type: []string{"object"},
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"key": { "key": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{
"x-kubernetes-patch-merge-key": "key",
"x-kubernetes-patch-strategy": "merge",
},
},
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "key is the label key that the selector applies to.", Description: "key is the label key that the selector applies to.",
Default: "", Default: "",