Skip to content

Commit

Permalink
crd/machinesets: add additional printer columns
Browse files Browse the repository at this point in the history
This adds 'desired', 'current' and 'ready' replica counts as default
columns for `kubectl get machinesets`. It also adds 'age'. This output
mirrors the output you get from `kubectl get replicasets`.
  • Loading branch information
frobware committed Dec 13, 2018
1 parent 8632b3f commit 1637d20
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/crds/machineset.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,22 @@ spec:
- replicas
type: object
version: v1alpha1
additionalPrinterColumns:
- JSONPath: .spec.replicas
description: Desired Replicas
name: Desired
type: integer
- JSONPath: .status.replicas
description: Current Replicas
name: Current
type: integer
- JSONPath: .status.readyReplicas
description: Ready Replicas
name: Ready
type: integer
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
status:
acceptedNames:
kind: ""
Expand Down

0 comments on commit 1637d20

Please sign in to comment.