Skip to content

Commit 8521650

Browse files
committed
internalreleaseimage: add missing status fields
1 parent 02f6733 commit 8521650

12 files changed

+553
-66
lines changed

machineconfiguration/v1alpha1/types_internalreleaseimage.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@ type InternalReleaseImageRef struct {
6767

6868
// InternalReleaseImageStatus describes the current state of a InternalReleaseImage.
6969
type InternalReleaseImageStatus struct {
70+
// conditions represent the observations of the InternalReleaseImage controller current state.
71+
// Valid types are: Degraded.
72+
// If Degraded is true, that means something has gone wrong in the controller.
73+
// +listType=map
74+
// +listMapKey=type
75+
// +kubebuilder:validation:MinItems=1
76+
// +kubebuilder:validation:MaxItems=20
77+
// +optional
78+
Conditions []metav1.Condition `json:"conditions,omitempty"`
7079
// releases is a list of the release bundles currently owned and managed by the
7180
// cluster.
7281
// A release bundle content could be safely pulled only when its Conditions field
@@ -81,6 +90,15 @@ type InternalReleaseImageStatus struct {
8190
Releases []InternalReleaseImageBundleStatus `json:"releases,omitempty"`
8291
}
8392

93+
// InternalReleaseImageStatusConditionType describes the possible states for InternalReleaseImageStatus.
94+
// +enum
95+
type InternalReleaseImageStatusConditionType string
96+
97+
const (
98+
// InternalReleaseImageStatusConditionTypeDegraded describes a failure in the controller.
99+
InternalReleaseImageStatusConditionTypeDegraded InternalReleaseImageStatusConditionType = "Degraded"
100+
)
101+
84102
type InternalReleaseImageBundleStatus struct {
85103
// conditions represent the observations of an internal release image current state. Valid types are:
86104
// Mounted, Installing, Available, Removing and Degraded.

machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_internalreleaseimages-CustomNoUpgrade.crd.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,71 @@ spec:
8888
description: status describes the last observed state of this internal
8989
release image.
9090
properties:
91+
conditions:
92+
description: |-
93+
conditions represent the observations of the InternalReleaseImage controller current state.
94+
Valid types are: Degraded.
95+
If Degraded is true, that means something has gone wrong in the controller.
96+
items:
97+
description: Condition contains details for one aspect of the current
98+
state of this API Resource.
99+
properties:
100+
lastTransitionTime:
101+
description: |-
102+
lastTransitionTime is the last time the condition transitioned from one status to another.
103+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
104+
format: date-time
105+
type: string
106+
message:
107+
description: |-
108+
message is a human readable message indicating details about the transition.
109+
This may be an empty string.
110+
maxLength: 32768
111+
type: string
112+
observedGeneration:
113+
description: |-
114+
observedGeneration represents the .metadata.generation that the condition was set based upon.
115+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
116+
with respect to the current state of the instance.
117+
format: int64
118+
minimum: 0
119+
type: integer
120+
reason:
121+
description: |-
122+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
123+
Producers of specific condition types may define expected values and meanings for this field,
124+
and whether the values are considered a guaranteed API.
125+
The value should be a CamelCase string.
126+
This field may not be empty.
127+
maxLength: 1024
128+
minLength: 1
129+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
130+
type: string
131+
status:
132+
description: status of the condition, one of True, False, Unknown.
133+
enum:
134+
- "True"
135+
- "False"
136+
- Unknown
137+
type: string
138+
type:
139+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
140+
maxLength: 316
141+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
142+
type: string
143+
required:
144+
- lastTransitionTime
145+
- message
146+
- reason
147+
- status
148+
- type
149+
type: object
150+
maxItems: 20
151+
minItems: 1
152+
type: array
153+
x-kubernetes-list-map-keys:
154+
- type
155+
x-kubernetes-list-type: map
91156
releases:
92157
description: |-
93158
releases is a list of the release bundles currently owned and managed by the

machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_internalreleaseimages-DevPreviewNoUpgrade.crd.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,71 @@ spec:
8787
description: status describes the last observed state of this internal
8888
release image.
8989
properties:
90+
conditions:
91+
description: |-
92+
conditions represent the observations of the InternalReleaseImage controller current state.
93+
Valid types are: Degraded.
94+
If Degraded is true, that means something has gone wrong in the controller.
95+
items:
96+
description: Condition contains details for one aspect of the current
97+
state of this API Resource.
98+
properties:
99+
lastTransitionTime:
100+
description: |-
101+
lastTransitionTime is the last time the condition transitioned from one status to another.
102+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
103+
format: date-time
104+
type: string
105+
message:
106+
description: |-
107+
message is a human readable message indicating details about the transition.
108+
This may be an empty string.
109+
maxLength: 32768
110+
type: string
111+
observedGeneration:
112+
description: |-
113+
observedGeneration represents the .metadata.generation that the condition was set based upon.
114+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
115+
with respect to the current state of the instance.
116+
format: int64
117+
minimum: 0
118+
type: integer
119+
reason:
120+
description: |-
121+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
122+
Producers of specific condition types may define expected values and meanings for this field,
123+
and whether the values are considered a guaranteed API.
124+
The value should be a CamelCase string.
125+
This field may not be empty.
126+
maxLength: 1024
127+
minLength: 1
128+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
129+
type: string
130+
status:
131+
description: status of the condition, one of True, False, Unknown.
132+
enum:
133+
- "True"
134+
- "False"
135+
- Unknown
136+
type: string
137+
type:
138+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
139+
maxLength: 316
140+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
141+
type: string
142+
required:
143+
- lastTransitionTime
144+
- message
145+
- reason
146+
- status
147+
- type
148+
type: object
149+
maxItems: 20
150+
minItems: 1
151+
type: array
152+
x-kubernetes-list-map-keys:
153+
- type
154+
x-kubernetes-list-type: map
90155
releases:
91156
description: |-
92157
releases is a list of the release bundles currently owned and managed by the

machineconfiguration/v1alpha1/zz_generated.crd-manifests/0000_80_machine-config_01_internalreleaseimages-TechPreviewNoUpgrade.crd.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,71 @@ spec:
8787
description: status describes the last observed state of this internal
8888
release image.
8989
properties:
90+
conditions:
91+
description: |-
92+
conditions represent the observations of the InternalReleaseImage controller current state.
93+
Valid types are: Degraded.
94+
If Degraded is true, that means something has gone wrong in the controller.
95+
items:
96+
description: Condition contains details for one aspect of the current
97+
state of this API Resource.
98+
properties:
99+
lastTransitionTime:
100+
description: |-
101+
lastTransitionTime is the last time the condition transitioned from one status to another.
102+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
103+
format: date-time
104+
type: string
105+
message:
106+
description: |-
107+
message is a human readable message indicating details about the transition.
108+
This may be an empty string.
109+
maxLength: 32768
110+
type: string
111+
observedGeneration:
112+
description: |-
113+
observedGeneration represents the .metadata.generation that the condition was set based upon.
114+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
115+
with respect to the current state of the instance.
116+
format: int64
117+
minimum: 0
118+
type: integer
119+
reason:
120+
description: |-
121+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
122+
Producers of specific condition types may define expected values and meanings for this field,
123+
and whether the values are considered a guaranteed API.
124+
The value should be a CamelCase string.
125+
This field may not be empty.
126+
maxLength: 1024
127+
minLength: 1
128+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
129+
type: string
130+
status:
131+
description: status of the condition, one of True, False, Unknown.
132+
enum:
133+
- "True"
134+
- "False"
135+
- Unknown
136+
type: string
137+
type:
138+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
139+
maxLength: 316
140+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
141+
type: string
142+
required:
143+
- lastTransitionTime
144+
- message
145+
- reason
146+
- status
147+
- type
148+
type: object
149+
maxItems: 20
150+
minItems: 1
151+
type: array
152+
x-kubernetes-list-map-keys:
153+
- type
154+
x-kubernetes-list-type: map
90155
releases:
91156
description: |-
92157
releases is a list of the release bundles currently owned and managed by the

machineconfiguration/v1alpha1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

machineconfiguration/v1alpha1/zz_generated.featuregated-crd-manifests/internalreleaseimages.machineconfiguration.openshift.io/NoRegistryClusterInstall.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,71 @@ spec:
8888
description: status describes the last observed state of this internal
8989
release image.
9090
properties:
91+
conditions:
92+
description: |-
93+
conditions represent the observations of the InternalReleaseImage controller current state.
94+
Valid types are: Degraded.
95+
If Degraded is true, that means something has gone wrong in the controller.
96+
items:
97+
description: Condition contains details for one aspect of the current
98+
state of this API Resource.
99+
properties:
100+
lastTransitionTime:
101+
description: |-
102+
lastTransitionTime is the last time the condition transitioned from one status to another.
103+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
104+
format: date-time
105+
type: string
106+
message:
107+
description: |-
108+
message is a human readable message indicating details about the transition.
109+
This may be an empty string.
110+
maxLength: 32768
111+
type: string
112+
observedGeneration:
113+
description: |-
114+
observedGeneration represents the .metadata.generation that the condition was set based upon.
115+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
116+
with respect to the current state of the instance.
117+
format: int64
118+
minimum: 0
119+
type: integer
120+
reason:
121+
description: |-
122+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
123+
Producers of specific condition types may define expected values and meanings for this field,
124+
and whether the values are considered a guaranteed API.
125+
The value should be a CamelCase string.
126+
This field may not be empty.
127+
maxLength: 1024
128+
minLength: 1
129+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
130+
type: string
131+
status:
132+
description: status of the condition, one of True, False, Unknown.
133+
enum:
134+
- "True"
135+
- "False"
136+
- Unknown
137+
type: string
138+
type:
139+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
140+
maxLength: 316
141+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
142+
type: string
143+
required:
144+
- lastTransitionTime
145+
- message
146+
- reason
147+
- status
148+
- type
149+
type: object
150+
maxItems: 20
151+
minItems: 1
152+
type: array
153+
x-kubernetes-list-map-keys:
154+
- type
155+
x-kubernetes-list-type: map
91156
releases:
92157
description: |-
93158
releases is a list of the release bundles currently owned and managed by the

machineconfiguration/v1alpha1/zz_generated.swagger_doc_generated.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)