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:
parent
7ceea1a08f
commit
064980bd9a
6 changed files with 20 additions and 20 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue