Skip to content

Commit

Permalink
Add missing status message to Ironic resource CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
abays committed Nov 5, 2024
1 parent 0391795 commit a15a8a6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 10 additions & 1 deletion api/bases/ironic.openstack.org_ironics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ spec:
singular: ironic
scope: Namespaced
versions:
- name: v1beta1
- additionalPrinterColumns:
- description: Status
jsonPath: .status.conditions[0].status
name: Status
type: string
- description: Message
jsonPath: .status.conditions[0].message
name: Message
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: Ironic is the Schema for the ironics API
Expand Down
2 changes: 2 additions & 0 deletions api/v1beta1/ironic_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ type IronicStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
//+kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"

// Ironic is the Schema for the ironics API
type Ironic struct {
Expand Down
11 changes: 10 additions & 1 deletion config/crd/bases/ironic.openstack.org_ironics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ spec:
singular: ironic
scope: Namespaced
versions:
- name: v1beta1
- additionalPrinterColumns:
- description: Status
jsonPath: .status.conditions[0].status
name: Status
type: string
- description: Message
jsonPath: .status.conditions[0].message
name: Message
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: Ironic is the Schema for the ironics API
Expand Down

0 comments on commit a15a8a6

Please sign in to comment.