Skip to content

Commit

Permalink
Add boolean 'status.ready' field for openstackclusterstackrelease (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Hros <[email protected]>
Co-authored-by: Matej Feder <[email protected]>
  • Loading branch information
chess-knight and matofeder authored Dec 19, 2023
1 parent 9a3b96e commit 762fc20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 4 additions & 2 deletions api/v1alpha1/openstackclusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ type OpenstackClusterStackReleaseSpec struct {

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

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

// OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases API.
type OpenstackClusterStackRelease struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ spec:
singular: openstackclusterstackrelease
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .status.ready
name: Ready
type: boolean
name: v1alpha1
schema:
openAPIV3Schema:
description: OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases
Expand Down Expand Up @@ -44,6 +48,10 @@ spec:
status:
description: OpenstackClusterStackReleaseStatus defines the observed state
of OpenstackClusterStackRelease.
properties:
ready:
default: false
type: boolean
type: object
type: object
served: true
Expand Down

0 comments on commit 762fc20

Please sign in to comment.