Skip to content

Commit

Permalink
Print CNP priority on kubectl get cnp cnpName output (antrea-io#906)
Browse files Browse the repository at this point in the history
* Print CNP priority on kubectl get cnp cnpName output

* Make manifest

* Add Age to Printer
  • Loading branch information
abhiraut authored and GraysonWu committed Sep 18, 2020
1 parent 6b9aea9 commit 44ced4d
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ metadata:
app: antrea
name: clusternetworkpolicies.security.antrea.tanzu.vmware.com
spec:
additionalPrinterColumns:
- JSONPath: .spec.priority
description: The Priority of this ClusterNetworkPolicy relative to other policies.
format: float
name: Priority
type: number
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: security.antrea.tanzu.vmware.com
names:
kind: ClusterNetworkPolicy
Expand Down
9 changes: 9 additions & 0 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ metadata:
app: antrea
name: clusternetworkpolicies.security.antrea.tanzu.vmware.com
spec:
additionalPrinterColumns:
- JSONPath: .spec.priority
description: The Priority of this ClusterNetworkPolicy relative to other policies.
format: float
name: Priority
type: number
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: security.antrea.tanzu.vmware.com
names:
kind: ClusterNetworkPolicy
Expand Down
9 changes: 9 additions & 0 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ metadata:
app: antrea
name: clusternetworkpolicies.security.antrea.tanzu.vmware.com
spec:
additionalPrinterColumns:
- JSONPath: .spec.priority
description: The Priority of this ClusterNetworkPolicy relative to other policies.
format: float
name: Priority
type: number
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: security.antrea.tanzu.vmware.com
names:
kind: ClusterNetworkPolicy
Expand Down
9 changes: 9 additions & 0 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ metadata:
app: antrea
name: clusternetworkpolicies.security.antrea.tanzu.vmware.com
spec:
additionalPrinterColumns:
- JSONPath: .spec.priority
description: The Priority of this ClusterNetworkPolicy relative to other policies.
format: float
name: Priority
type: number
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
group: security.antrea.tanzu.vmware.com
names:
kind: ClusterNetworkPolicy
Expand Down
9 changes: 9 additions & 0 deletions build/yamls/base/crds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ spec:
- cnp
# Prune any unknown fields
preserveUnknownFields: false
additionalPrinterColumns:
- name: Priority
type: number
format: float
description: The Priority of this ClusterNetworkPolicy relative to other policies.
JSONPath: .spec.priority
- name: Age
type: date
JSONPath: .metadata.creationTimestamp
validation:
openAPIV3Schema:
type: object
Expand Down

0 comments on commit 44ced4d

Please sign in to comment.