Skip to content

Commit f5cf143

Browse files
committed
RING-50368 // Scality UI Component Status
1 parent e172087 commit f5cf143

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

api/v1alpha1/scalityuicomponent_types.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ type ScalityUIComponentSpec struct {
3434
type ScalityUIComponentStatus struct {
3535
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
3636
// Important: Run "make" to regenerate code after modifying this file
37+
// Path represents the URL path to the UI component
38+
PublicPath string `json:"publicPath,omitempty"`
39+
// Kind represents the type of UI component
40+
Kind string `json:"kind,omitempty"`
41+
// Version represents the version of the UI component
42+
Version string `json:"version,omitempty"`
43+
// Conditions represent the latest available observations of a UI component's state
44+
Conditions []metav1.Condition `json:"conditions,omitempty"`
3745
}
3846

3947
// +kubebuilder:object:root=true

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/ui.scality.com_scalityuicomponents.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,77 @@ spec:
5050
type: object
5151
status:
5252
description: ScalityUIComponentStatus defines the observed state of ScalityUIComponent
53+
properties:
54+
conditions:
55+
description: Conditions represent the latest available observations
56+
of a UI component's state
57+
items:
58+
description: Condition contains details for one aspect of the current
59+
state of this API Resource.
60+
properties:
61+
lastTransitionTime:
62+
description: |-
63+
lastTransitionTime is the last time the condition transitioned from one status to another.
64+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
65+
format: date-time
66+
type: string
67+
message:
68+
description: |-
69+
message is a human readable message indicating details about the transition.
70+
This may be an empty string.
71+
maxLength: 32768
72+
type: string
73+
observedGeneration:
74+
description: |-
75+
observedGeneration represents the .metadata.generation that the condition was set based upon.
76+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
77+
with respect to the current state of the instance.
78+
format: int64
79+
minimum: 0
80+
type: integer
81+
reason:
82+
description: |-
83+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
84+
Producers of specific condition types may define expected values and meanings for this field,
85+
and whether the values are considered a guaranteed API.
86+
The value should be a CamelCase string.
87+
This field may not be empty.
88+
maxLength: 1024
89+
minLength: 1
90+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
91+
type: string
92+
status:
93+
description: status of the condition, one of True, False, Unknown.
94+
enum:
95+
- "True"
96+
- "False"
97+
- Unknown
98+
type: string
99+
type:
100+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
101+
maxLength: 316
102+
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])$
103+
type: string
104+
required:
105+
- lastTransitionTime
106+
- message
107+
- reason
108+
- status
109+
- type
110+
type: object
111+
type: array
112+
kind:
113+
description: Kind represents the type of UI component
114+
type: string
115+
publicPath:
116+
description: |-
117+
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
118+
Important: Run "make" to regenerate code after modifying this file
119+
Path represents the URL path to the UI component
120+
type: string
121+
version:
122+
description: Version represents the version of the UI component
123+
type: string
53124
type: object
54125
type: object
55126
served: true

0 commit comments

Comments
 (0)