Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API-1835: individual operator conditions must be set atomically #2039

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1229,6 +1229,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
observedGeneration:
description: observedGeneration is the last generation change that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1924,6 +1924,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
observedGeneration:
description: observedGeneration is the last generation change that
Expand Down
5 changes: 5 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -30864,7 +30864,8 @@
"type": "string",
"default": ""
}
}
},
"x-kubernetes-map-type": "atomic"
},
"com.github.openshift.api.operator.v1.OperatorSpec": {
"description": "OperatorSpec contains common fields operators need. It is intended to be anonymous included inside of the Spec struct for your particular operator.",
Expand Down
1 change: 1 addition & 0 deletions operator/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ var (
)

// OperatorCondition is just the standard condition fields.
// +structType=atomic
type OperatorCondition struct {
// +kubebuilder:validation:Required
Type string `json:"type"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
required:
- clusterDomain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
required:
- clusterDomain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1924,6 +1924,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ spec:
required:
- type
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-map-keys:
- type
Expand Down
Loading