Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print CNP priority on kubectl get cnp cnpName output #906

Merged
merged 3 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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