1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

474 feature (#503)

* add printer columns

* add shortNames for CRD
This commit is contained in:
Shivkumar Dudhani 2019-11-25 12:36:47 -08:00 committed by GitHub
parent 990c32b6bd
commit 59f864c5d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

View file

@ -13,6 +13,8 @@ spec:
kind: ClusterPolicy
plural: clusterpolicies
singular: clusterpolicy
shortNames:
- pol
subresources:
status: {}
validation:
@ -238,8 +240,23 @@ spec:
kind: ClusterPolicyViolation
plural: clusterpolicyviolations
singular: clusterpolicyviolation
shortNames:
- cpolv
subresources:
status: {}
additionalPrinterColumns:
- name: Policy
type: string
description: The policy that resulted in the violation
JSONPath: .spec.policy
- name: ResourceKind
type: string
description: The resource kind that cause the violation
JSONPath: .spec.resource.kind
- name: ResourceName
type: string
description: The resource name that caused the violation
JSONPath: .spec.resource.name
validation:
openAPIV3Schema:
properties:
@ -299,8 +316,23 @@ spec:
kind: NamespacedPolicyViolation
plural: namespacedpolicyviolations
singular: namespacedpolicyviolation
shortNames:
- npolv
subresources:
status: {}
additionalPrinterColumns:
- name: Policy
type: string
description: The policy that resulted in the violation
JSONPath: .spec.policy
- name: ResourceKind
type: string
description: The resource kind that cause the violation
JSONPath: .spec.resource.kind
- name: ResourceName
type: string
description: The resource name that caused the violation
JSONPath: .spec.resource.name
validation:
openAPIV3Schema:
properties:

View file

@ -13,6 +13,8 @@ spec:
kind: ClusterPolicy
plural: clusterpolicies
singular: clusterpolicy
shortNames:
- pol
subresources:
status: {}
validation:
@ -238,8 +240,23 @@ spec:
kind: ClusterPolicyViolation
plural: clusterpolicyviolations
singular: clusterpolicyviolation
shortNames:
- cpolv
subresources:
status: {}
additionalPrinterColumns:
- name: Policy
type: string
description: The policy that resulted in the violation
JSONPath: .spec.policy
- name: ResourceKind
type: string
description: The resource kind that cause the violation
JSONPath: .spec.resource.kind
- name: ResourceName
type: string
description: The resource name that caused the violation
JSONPath: .spec.resource.name
validation:
openAPIV3Schema:
properties:
@ -299,8 +316,23 @@ spec:
kind: NamespacedPolicyViolation
plural: namespacedpolicyviolations
singular: namespacedpolicyviolation
shortNames:
- npolv
subresources:
status: {}
additionalPrinterColumns:
- name: Policy
type: string
description: The policy that resulted in the violation
JSONPath: .spec.policy
- name: ResourceKind
type: string
description: The resource kind that cause the violation
JSONPath: .spec.resource.kind
- name: ResourceName
type: string
description: The resource name that caused the violation
JSONPath: .spec.resource.name
validation:
openAPIV3Schema:
properties: