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

✨ Add boolean 'status.ready' field for openstackclusterstackrelease #16

Merged
merged 3 commits into from
Dec 19, 2023
Merged
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
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
Loading