1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

fix: admission reports printer (#4950)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-10-14 10:22:00 +02:00 committed by GitHub
parent 7ceea1a08f
commit 064980bd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 20 deletions

View file

@ -39,8 +39,8 @@ type AdmissionReportSpec struct {
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:shortName=admr
// +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=".owner.kind",priority=1
// +kubebuilder:printcolumn:name="Subject",type=string,JSONPath=".owner.name",priority=1
// +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=".spec.owner.kind",priority=1
// +kubebuilder:printcolumn:name="Subject",type=string,JSONPath=".spec.owner.name",priority=1
// +kubebuilder:printcolumn:name="Pass",type=integer,JSONPath=".spec.summary.pass"
// +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=".spec.summary.fail"
// +kubebuilder:printcolumn:name="Warn",type=integer,JSONPath=".spec.summary.warn"
@ -74,8 +74,8 @@ func (r *AdmissionReport) SetSummary(summary policyreportv1alpha2.PolicyReportSu
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:resource:scope=Cluster,shortName=cadmr
// +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=".scope.kind",priority=1
// +kubebuilder:printcolumn:name="Subject",type=string,JSONPath=".scope.name",priority=1
// +kubebuilder:printcolumn:name="Kind",type=string,JSONPath=".spec.owner.kind",priority=1
// +kubebuilder:printcolumn:name="Subject",type=string,JSONPath=".spec.owner.name",priority=1
// +kubebuilder:printcolumn:name="Pass",type=integer,JSONPath=".spec.summary.pass"
// +kubebuilder:printcolumn:name="Fail",type=integer,JSONPath=".spec.summary.fail"
// +kubebuilder:printcolumn:name="Warn",type=integer,JSONPath=".spec.summary.warn"

View file

@ -26,11 +26,11 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .owner.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .owner.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string
@ -504,11 +504,11 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .scope.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string

View file

@ -18,11 +18,11 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .owner.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .owner.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string

View file

@ -18,11 +18,11 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .scope.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string

View file

@ -35,11 +35,11 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .owner.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .owner.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string
@ -673,11 +673,11 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .scope.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string

View file

@ -33,11 +33,11 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .owner.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .owner.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string
@ -669,11 +669,11 @@ spec:
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .scope.kind
- jsonPath: .spec.owner.kind
name: Kind
priority: 1
type: string
- jsonPath: .scope.name
- jsonPath: .spec.owner.name
name: Subject
priority: 1
type: string