Skip to content

Commit

Permalink
style(crd): add FSType into kubectl output (#435) (#438)
Browse files Browse the repository at this point in the history
* add FSType column into output of kubectl get bd -o wide

```
$k get bd -o wide
NAME                                           NODENAME   PATH       FSTYPE   SIZE          CLAIMSTATE   STATUS   AGE
blockdevice-1a589f3a7764776f3c5e4e3a4ec7aebf   gke-node   /dev/sdc   ext4     10736352768   Unclaimed    Active   3m35s
```

Signed-off-by: Harsh Thakur <[email protected]>
  • Loading branch information
RealHarshThakur authored Jun 10, 2020
1 parent 7a73f6b commit 7294b57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/435-harshthakur9030
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adding filesystem info column in output of kubectl get bd -o wide
1 change: 1 addition & 0 deletions pkg/crds/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package crds
import (
"errors"
"fmt"

apiext "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/setup/build_crd.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func buildBlockDeviceCRD() (*apiext.CustomResourceDefinition, error) {
WithShortNames([]string{apis.BlockDeviceResourceShort}).
WithPrinterColumns("NodeName", "string", ".spec.nodeAttributes.nodeName").
WithPriorityPrinterColumns("Path", "string", ".spec.path", 1).
WithPriorityPrinterColumns("FSType", "string", ".spec.filesystem.fsType", 1).
WithPrinterColumns("Size", "string", ".spec.capacity.storage").
WithPrinterColumns("ClaimState", "string", ".status.claimState").
WithPrinterColumns("Status", "string", ".status.state").
Expand Down

0 comments on commit 7294b57

Please sign in to comment.