Skip to content

Commit

Permalink
Merge pull request #494 from abays/cli_status
Browse files Browse the repository at this point in the history
Add missing status message to Ironic resource CLI
  • Loading branch information
openshift-merge-bot[bot] authored Nov 6, 2024
2 parents 0391795 + a15a8a6 commit 79154ef
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 79154ef

Please sign in to comment.