Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 762fc20

Browse files
Add boolean 'status.ready' field for openstackclusterstackrelease (#16)
Signed-off-by: Roman Hros <[email protected]> Co-authored-by: Matej Feder <[email protected]>
1 parent 9a3b96e commit 762fc20

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

api/v1alpha1/openstackclusterstackrelease_types.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ type OpenstackClusterStackReleaseSpec struct {
3434

3535
// OpenstackClusterStackReleaseStatus defines the observed state of OpenstackClusterStackRelease.
3636
type OpenstackClusterStackReleaseStatus struct {
37-
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
38-
// Important: Run "make" to regenerate code after modifying this file
37+
// +optional
38+
// +kubebuilder:default:=false
39+
Ready bool `json:"ready,omitempty"`
3940
}
4041

4142
//+kubebuilder:object:root=true
4243
//+kubebuilder:subresource:status
44+
//+kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=".status.ready"
4345

4446
// OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases API.
4547
type OpenstackClusterStackRelease struct {

config/crd/bases/infrastructure.clusterstack.x-k8s.io.clusterstack.x-k8s.io_openstackclusterstackreleases.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ spec:
1414
singular: openstackclusterstackrelease
1515
scope: Namespaced
1616
versions:
17-
- name: v1alpha1
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.ready
19+
name: Ready
20+
type: boolean
21+
name: v1alpha1
1822
schema:
1923
openAPIV3Schema:
2024
description: OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases
@@ -44,6 +48,10 @@ spec:
4448
status:
4549
description: OpenstackClusterStackReleaseStatus defines the observed state
4650
of OpenstackClusterStackRelease.
51+
properties:
52+
ready:
53+
default: false
54+
type: boolean
4755
type: object
4856
type: object
4957
served: true

0 commit comments

Comments
 (0)