Skip to content

Commit

Permalink
feat: upgrade policy ready assertion to use conditions (kyverno#1148)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Sep 4, 2024
1 parent b20995e commit b1d2d4e
Show file tree
Hide file tree
Showing 371 changed files with 1,692 additions and 385 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-field-validation
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-prevent-default-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-prevent-updates-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: applicationset-name-matches-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: appproject-clusterresourceblacklist
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-field-validation
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-prevent-default-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: application-prevent-updates-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: applicationset-name-matches-project
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: appproject-clusterresourceblacklist
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: argo-cluster-generation-from-rancher-capi
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-encryption-aws-loadbalancers
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-encryption-aws-loadbalancers
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-container-sock-mounts
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-default-namespace
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-empty-ingress-host
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-helm-tiller
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-latest-tag
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: drop-all-capabilities
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: drop-cap-net-raw
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-labels
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-requests-limits
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-pod-probes
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-ro-rootfs
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: restrict-image-registries
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: restrict-nodeport
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ClusterPolicy
metadata:
name: restrict-external-ips
status:
ready: true

conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: add-networkpolicy
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: add-networkpolicy-dns
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
5 changes: 4 additions & 1 deletion best-practices/add-ns-quota/.chainsaw-test/policy-ready.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: add-ns-quota
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: add-rolebinding
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: add-safe-to-evict
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-container-sock-mounts
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-default-namespace
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-empty-ingress-host
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-helm-tiller
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: disallow-latest-tag
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: drop-all-capabilities
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: drop-cap-net-raw
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-labels
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-requests-limits
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ kind: ClusterPolicy
metadata:
name: require-pod-probes
status:
ready: true
conditions:
- reason: Succeeded
status: "True"
type: Ready
Loading

0 comments on commit b1d2d4e

Please sign in to comment.