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

fix: use conditions to show policy ready status (#6071)

* fix: use conditions to show policy ready status

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

* fix

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é 2023-01-30 11:16:49 +01:00 committed by GitHub
parent a8f5a4798e
commit 8250dc6ca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 28 deletions

View file

@ -17,7 +17,7 @@ import (
// +kubebuilder:printcolumn:name="Background",type=boolean,JSONPath=".spec.background"
// +kubebuilder:printcolumn:name="Validate Action",type=string,JSONPath=".spec.validationFailureAction"
// +kubebuilder:printcolumn:name="Failure Policy",type=string,JSONPath=".spec.failurePolicy",priority=1
// +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type == "Ready")].status`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Validate",type=integer,JSONPath=`.status.rulecount.validate`,priority=1
// +kubebuilder:printcolumn:name="Mutate",type=integer,JSONPath=`.status.rulecount.mutate`,priority=1

View file

@ -15,7 +15,7 @@ import (
// +kubebuilder:printcolumn:name="Background",type=boolean,JSONPath=".spec.background"
// +kubebuilder:printcolumn:name="Validate Action",type=string,JSONPath=".spec.validationFailureAction"
// +kubebuilder:printcolumn:name="Failure Policy",type=string,JSONPath=".spec.failurePolicy",priority=1
// +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type == "Ready")].status`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Validate",type=integer,JSONPath=`.status.rulecount.validate`,priority=1
// +kubebuilder:printcolumn:name="Mutate",type=integer,JSONPath=`.status.rulecount.mutate`,priority=1

View file

@ -18,7 +18,7 @@ import (
// +kubebuilder:printcolumn:name="Background",type=boolean,JSONPath=".spec.background"
// +kubebuilder:printcolumn:name="Validate Action",type=string,JSONPath=".spec.validationFailureAction"
// +kubebuilder:printcolumn:name="Failure Policy",type=string,JSONPath=".spec.failurePolicy",priority=1
// +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type == "Ready")].status`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Validate",type=integer,JSONPath=`.status.rulecount.validate`,priority=1
// +kubebuilder:printcolumn:name="Mutate",type=integer,JSONPath=`.status.rulecount.mutate`,priority=1

View file

@ -16,7 +16,7 @@ import (
// +kubebuilder:printcolumn:name="Background",type=boolean,JSONPath=".spec.background"
// +kubebuilder:printcolumn:name="Validate Action",type=string,JSONPath=".spec.validationFailureAction"
// +kubebuilder:printcolumn:name="Failure Policy",type=string,JSONPath=".spec.failurePolicy",priority=1
// +kubebuilder:printcolumn:name="Ready",type=boolean,JSONPath=`.status.ready`
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type == "Ready")].status`
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:printcolumn:name="Validate",type=integer,JSONPath=`.status.rulecount.validate`,priority=1
// +kubebuilder:printcolumn:name="Mutate",type=integer,JSONPath=`.status.rulecount.mutate`,priority=1

View file

@ -3432,9 +3432,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -10109,9 +10109,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -16542,9 +16542,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -23221,9 +23221,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date

View file

@ -30,9 +30,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -6707,9 +6707,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date

View file

@ -30,9 +30,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -6709,9 +6709,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date

View file

@ -3503,9 +3503,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -10180,9 +10180,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -16613,9 +16613,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
@ -23292,9 +23292,9 @@ spec:
name: Failure Policy
priority: 1
type: string
- jsonPath: .status.ready
- jsonPath: .status.conditions[?(@.type == "Ready")].status
name: Ready
type: boolean
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date