Skip to content

Commit 9e59a77

Browse files
Merge pull request #2194 from JoelSpeed/clusteroperators-listtype-map
ClusterOperator Conditions should be a listType=map
2 parents afdfbaf + 045163b commit 9e59a77

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

config/v1/types_cluster_operator.go

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ type ClusterOperatorStatus struct {
5353
// conditions describes the state of the operator's managed and monitored components.
5454
// +patchMergeKey=type
5555
// +patchStrategy=merge
56+
// +listType=map
57+
// +listMapKey=type
5658
// +optional
5759
Conditions []ClusterOperatorStatusCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
5860

config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_01_clusteroperators.crd.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ spec:
108108
- type
109109
type: object
110110
type: array
111+
x-kubernetes-list-map-keys:
112+
- type
113+
x-kubernetes-list-type: map
111114
extension:
112115
description: |-
113116
extension contains any additional status information specific to the

config/v1/zz_generated.featuregated-crd-manifests/clusteroperators.config.openshift.io/AAA_ungated.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ spec:
111111
- type
112112
type: object
113113
type: array
114+
x-kubernetes-list-map-keys:
115+
- type
116+
x-kubernetes-list-type: map
114117
extension:
115118
description: |-
116119
extension contains any additional status information specific to the

openapi/generated_openapi/zz_generated.openapi.go

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

+4
Original file line numberDiff line numberDiff line change
@@ -5181,6 +5181,10 @@
51815181
"default": {},
51825182
"$ref": "#/definitions/com.github.openshift.api.config.v1.ClusterOperatorStatusCondition"
51835183
},
5184+
"x-kubernetes-list-map-keys": [
5185+
"type"
5186+
],
5187+
"x-kubernetes-list-type": "map",
51845188
"x-kubernetes-patch-merge-key": "type",
51855189
"x-kubernetes-patch-strategy": "merge"
51865190
},

0 commit comments

Comments
 (0)