Skip to content

Commit 6cfcee1

Browse files
Rename printcolumn on VPCDomain to Admin State to align with others
This patch adjusts the column name for the printcolumn to show the admin state of a `VPCDomain` to adhere to the same name as on other resources for consistency.
1 parent f755da8 commit 6cfcee1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/cisco/nx/v1alpha1/vpcdomain_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ const (
246246
// +kubebuilder:resource:shortName=vpcdomain
247247
// +kubebuilder:printcolumn:name="Device",type=string,JSONPath=`.spec.deviceRef.name`
248248
// +kubebuilder:printcolumn:name="Domain",type=string,JSONPath=`.spec.domainId`
249-
// +kubebuilder:printcolumn:name="Enabled",type=string,JSONPath=`.spec.adminState`
249+
// +kubebuilder:printcolumn:name="Admin State",type=string,JSONPath=`.spec.adminState`
250250
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`
251251
// +kubebuilder:printcolumn:name="Configured",type=string,JSONPath=`.status.conditions[?(@.type=="Configured")].status`,priority=1
252252
// +kubebuilder:printcolumn:name="Operational",type=string,JSONPath=`.status.conditions[?(@.type=="Operational")].status`,priority=1

charts/network-operator/templates/crd/nx.cisco.networking.metal.ironcore.dev_vpcdomains.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
name: Domain
3131
type: string
3232
- jsonPath: .spec.adminState
33-
name: Enabled
33+
name: Admin State
3434
type: string
3535
- jsonPath: .status.conditions[?(@.type=="Ready")].status
3636
name: Ready

config/crd/bases/nx.cisco.networking.metal.ironcore.dev_vpcdomains.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
name: Domain
2525
type: string
2626
- jsonPath: .spec.adminState
27-
name: Enabled
27+
name: Admin State
2828
type: string
2929
- jsonPath: .status.conditions[?(@.type=="Ready")].status
3030
name: Ready

0 commit comments

Comments
 (0)