Skip to content

Commit

Permalink
Add printer column for mode in azuremanagedmachinepool
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Mar 29, 2022
1 parent c3bb54c commit ca96944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ spec:
storage: false
subresources:
status: {}
- name: v1beta1
- additionalPrinterColumns:
- jsonPath: .spec.mode
name: Mode
type: string
name: v1beta1
schema:
openAPIV3Schema:
description: AzureManagedMachinePool is the Schema for the azuremanagedmachinepools
Expand Down
1 change: 1 addition & 0 deletions exp/api/v1beta1/azuremanagedmachinepool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ type AzureManagedMachinePoolStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:printcolumn:name="Mode",type="string",JSONPath=".spec.mode"
// +kubebuilder:resource:path=azuremanagedmachinepools,scope=Namespaced,categories=cluster-api,shortName=ammp
// +kubebuilder:storageversion
// +kubebuilder:subresource:status
Expand Down

0 comments on commit ca96944

Please sign in to comment.