Skip to content

Commit cc5b35e

Browse files
Merge pull request #176 from derekwaynecarr/printers
Add CLI printer columns for machine, machinesets
2 parents a51131e + 3c9cdb9 commit cc5b35e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

install/0000_50_machine-api-operator_02_machine.crd.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ metadata:
55
controller-tools.k8s.io: "1.0"
66
name: machines.cluster.k8s.io
77
spec:
8+
additionalPrinterColumns:
9+
- JSONPath: .status.providerStatus.instanceId
10+
name: Instance
11+
description: Instance ID of machine created in AWS
12+
type: string
13+
- JSONPath: .status.providerStatus.instanceState
14+
name: State
15+
description: State of the AWS instance
16+
type: string
17+
- JSONPath: .spec.providerSpec.value.instanceType
18+
name: Type
19+
description: Type of instance
20+
type: string
21+
- JSONPath: .spec.providerSpec.value.placement.region
22+
name: Region
23+
description: Region associated with machine
24+
type: string
25+
- JSONPath: .spec.providerSpec.value.placement.availabilityZone
26+
name: Zone
27+
description: Zone associated with machine
28+
type: string
29+
- JSONPath: .metadata.creationTimestamp
30+
name: Age
31+
type: date
832
group: cluster.k8s.io
933
names:
1034
kind: Machine

install/0000_50_machine-api-operator_03_machineset.crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ spec:
116116
description: Ready Replicas
117117
name: Ready
118118
type: integer
119+
- JSONPath: .status.availableReplicas
120+
name: Available
121+
description: Observed number of available replicas
122+
type: string
119123
- JSONPath: .metadata.creationTimestamp
120124
name: Age
121125
type: date

0 commit comments

Comments
 (0)