mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
chore: fix chainsaw tests cleanup timeout (#9028)
* chore: fix chainsaw tests cleanup timeout Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * bump chainsaw Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * grace Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * checks 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> * bump chainsaw Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix deletes Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix exceptions 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:
parent
4c275bca05
commit
426525be37
150 changed files with 664 additions and 470 deletions
18
.github/workflows/conformance.yaml
vendored
18
.github/workflows/conformance.yaml
vendored
|
@ -147,7 +147,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -217,7 +217,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -287,7 +287,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -359,7 +359,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -429,7 +429,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -505,7 +505,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -580,7 +580,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -674,7 +674,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
@ -748,7 +748,7 @@ jobs:
|
||||||
- name: Install Chainsaw
|
- name: Install Chainsaw
|
||||||
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
uses: kyverno/chainsaw/.github/actions/install@c08ae80bc45546987edff33212bf33161c84ce59 # v0.0.6
|
||||||
with:
|
with:
|
||||||
release: v0.0.7-alpha.3
|
release: v0.0.7-alpha.5
|
||||||
- name: Test with Chainsaw
|
- name: Test with Chainsaw
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -5,9 +5,9 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
timeouts:
|
timeouts:
|
||||||
assert: 90s
|
assert: 90s
|
||||||
cleanup: 150s
|
|
||||||
error: 90s
|
error: 90s
|
||||||
parallel: 1
|
parallel: 1
|
||||||
fullName: true
|
fullName: true
|
||||||
failFast: false
|
failFast: false
|
||||||
excludeTestRegex: '_.+'
|
excludeTestRegex: '_.+'
|
||||||
|
forceTerminationGracePeriod: 5s
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: invalidpolicy.yaml
|
file: invalidpolicy.yaml
|
||||||
|
|
|
@ -8,14 +8,17 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: cleanuppolicy-with-subjects.yaml
|
file: cleanuppolicy-with-subjects.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: cleanuppolicy-with-roles.yaml
|
file: cleanuppolicy-with-roles.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: cleanuppolicy-with-clusterroles.yaml
|
file: cleanuppolicy-with-clusterroles.yaml
|
||||||
|
|
|
@ -8,10 +8,12 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: cleanuppolicy-with-image-registry.yaml
|
file: cleanuppolicy-with-image-registry.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: cleanuppolicy-with-configmap.yaml
|
file: cleanuppolicy-with-configmap.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: deploy.yaml
|
file: deploy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -10,8 +10,9 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: configmap-allowed.yaml
|
file: configmap-allowed.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: configmap-rejected.yaml
|
file: configmap-rejected.yaml
|
||||||
- assert:
|
- assert:
|
||||||
file: configmap-allowed.yaml
|
file: configmap-allowed.yaml
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: apps/v1
|
ref:
|
||||||
kind: Deployment
|
apiVersion: apps/v1
|
||||||
name: test-dpl1
|
kind: Deployment
|
||||||
namespace: reza-dev
|
name: test-dpl1
|
||||||
|
namespace: reza-dev
|
||||||
|
|
|
@ -10,8 +10,9 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: exception-allowed.yaml
|
file: exception-allowed.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: exception-rejected.yaml
|
file: exception-rejected.yaml
|
||||||
- assert:
|
- assert:
|
||||||
file: exception-allowed.yaml
|
file: exception-allowed.yaml
|
||||||
|
|
|
@ -10,6 +10,11 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: good-deployment.yaml
|
file: good-deployment.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: bad-deployment.yaml
|
file: bad-deployment.yaml
|
||||||
|
finally:
|
||||||
|
- script:
|
||||||
|
content: sleep 5
|
||||||
|
timeout: 10s
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: chainsaw.kyverno.io/v1alpha1
|
|
||||||
kind: TestStep
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: sleep
|
|
||||||
spec:
|
|
||||||
timeouts: {}
|
|
||||||
try:
|
|
||||||
- command:
|
|
||||||
args:
|
|
||||||
- "4"
|
|
||||||
entrypoint: sleep
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: configmap.yaml
|
file: configmap.yaml
|
||||||
|
|
|
@ -10,8 +10,9 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: configmap-allowed.yaml
|
file: configmap-allowed.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: configmap-rejected.yaml
|
file: configmap-rejected.yaml
|
||||||
- assert:
|
- assert:
|
||||||
file: configmap-allowed.yaml
|
file: configmap-allowed.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -10,6 +10,7 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource-fail.yaml
|
file: resource-fail.yaml
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: mysecret
|
kind: Secret
|
||||||
namespace: clone-list-sync-same-trigger-source-trigger-ns
|
name: mysecret
|
||||||
|
namespace: clone-list-sync-same-trigger-source-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcred
|
kind: Secret
|
||||||
namespace: default
|
name: regcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcredregcred
|
||||||
|
namespace: default
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: mysecret
|
kind: Secret
|
||||||
namespace: clone-sync-same-trigger-source-trigger-ns
|
name: mysecret
|
||||||
|
namespace: clone-sync-same-trigger-source-trigger-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Namespace
|
apiVersion: v1
|
||||||
name: cpol-clone-create-on-trigger-deletion-trigger-ns
|
kind: Namespace
|
||||||
|
name: cpol-clone-create-on-trigger-deletion-trigger-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v1
|
||||||
name: cpol-clone-sync-reinstall-policy
|
kind: ClusterPolicy
|
||||||
|
name: cpol-clone-sync-reinstall-policy
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: cpol-create-on-trigger-deletion-ns
|
name: test-org
|
||||||
|
namespace: cpol-create-on-trigger-deletion-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: my-configmapmy-configmapmy-configmapmy-configmapmy-configmapmy-configmap
|
kind: ConfigMap
|
||||||
namespace: trigger-resource-name-exceeds-63-characters-ns
|
name: my-configmapmy-configmapmy-configmapmy-configmapmy-configmapmy-configmap
|
||||||
|
namespace: trigger-resource-name-exceeds-63-characters-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
namespace: cpol-clone-nosync-delete-downstream-ns
|
name: regcred
|
||||||
|
namespace: cpol-clone-nosync-delete-downstream-ns
|
||||||
|
|
|
@ -10,6 +10,7 @@ spec:
|
||||||
- assert:
|
- assert:
|
||||||
file: check.yaml
|
file: check.yaml
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v2beta1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v2beta1
|
||||||
name: cpol-nosync-clone-delete-policy
|
kind: ClusterPolicy
|
||||||
|
name: cpol-nosync-clone-delete-policy
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
|
name: regcred
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: cpol-clone-nosync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: cpol-clone-nosync-delete-trigger-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Namespace
|
apiVersion: v1
|
||||||
name: cpol-clone-list-sync-delete-source-trigger-ns-1
|
kind: Namespace
|
||||||
|
name: cpol-clone-list-sync-delete-source-trigger-ns-1
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
namespace: cpol-clone-sync-delete-downstream-ns
|
name: regcred
|
||||||
|
namespace: cpol-clone-sync-delete-downstream-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v2beta1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v2beta1
|
||||||
name: cpol-clone-sync-delete-policy
|
kind: ClusterPolicy
|
||||||
|
name: cpol-clone-sync-delete-policy
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
namespace: cpol-clone-sync-delete-source-ns
|
name: regcred
|
||||||
|
namespace: cpol-clone-sync-delete-source-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: cpol-clone-sync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: cpol-clone-sync-delete-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: zk-kafka-address
|
kind: ConfigMap
|
||||||
namespace: cpol-data-nosync-delete-downstream-ns
|
name: zk-kafka-address
|
||||||
|
namespace: cpol-data-nosync-delete-downstream-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v1
|
||||||
name: cpol-data-nosync-delete-policy-policy
|
kind: ClusterPolicy
|
||||||
|
name: cpol-data-nosync-delete-policy-policy
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: cpol-data-nosync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: cpol-data-nosync-delete-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: zk-kafka-address
|
kind: ConfigMap
|
||||||
namespace: cpol-data-sync-delete-downstream-ns
|
name: zk-kafka-address
|
||||||
|
namespace: cpol-data-sync-delete-downstream-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: foosource-1
|
kind: ConfigMap
|
||||||
namespace: cpol-data-sync-delete-one-trigger-ns
|
name: foosource-1
|
||||||
|
namespace: cpol-data-sync-delete-one-trigger-ns
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v1
|
||||||
name: cpol-data-sync-delete-policy
|
kind: ClusterPolicy
|
||||||
|
name: cpol-data-sync-delete-policy
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: cpol-data-sync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: cpol-data-sync-delete-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: pol-clone-create-on-trigger-deletion-configmap
|
kind: ConfigMap
|
||||||
namespace: pol-clone-create-on-trigger-deletion-ns
|
name: pol-clone-create-on-trigger-deletion-configmap
|
||||||
|
namespace: pol-clone-create-on-trigger-deletion-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: pol-create-on-trigger-deletion-ns
|
name: test-org
|
||||||
|
namespace: pol-create-on-trigger-deletion-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: newsecret
|
kind: Secret
|
||||||
namespace: default
|
name: newsecret
|
||||||
|
namespace: default
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v2beta1
|
ref:
|
||||||
kind: Policy
|
apiVersion: kyverno.io/v2beta1
|
||||||
name: pol-clone-nosync-delete-policy
|
kind: Policy
|
||||||
namespace: default
|
name: pol-clone-nosync-delete-policy
|
||||||
|
namespace: default
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
namespace: default
|
name: regcred
|
||||||
|
namespace: default
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: pol-clone-nosync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: pol-clone-nosync-delete-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v2beta1
|
ref:
|
||||||
kind: Policy
|
apiVersion: kyverno.io/v2beta1
|
||||||
name: pol-clone-sync-delete-policy
|
kind: Policy
|
||||||
namespace: default
|
name: pol-clone-sync-delete-policy
|
||||||
|
namespace: default
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: Secret
|
apiVersion: v1
|
||||||
name: regcred
|
kind: Secret
|
||||||
namespace: pol-clone-sync-delete-source
|
name: regcred
|
||||||
|
namespace: pol-clone-sync-delete-source
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: pol-clone-sync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: pol-clone-sync-delete-trigger-ns
|
||||||
|
|
|
@ -10,6 +10,7 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: ns.yaml
|
file: ns.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: zk-kafka-address
|
kind: ConfigMap
|
||||||
namespace: hammer
|
name: zk-kafka-address
|
||||||
|
namespace: hammer
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: Policy
|
apiVersion: kyverno.io/v1
|
||||||
name: pol-data-nosync-delete-policy-policy
|
kind: Policy
|
||||||
namespace: manta
|
name: pol-data-nosync-delete-policy-policy
|
||||||
|
namespace: manta
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: pol-data-nosync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: pol-data-nosync-delete-trigger-ns
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: zk-kafka-address
|
kind: ConfigMap
|
||||||
namespace: exeter
|
name: zk-kafka-address
|
||||||
|
namespace: exeter
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: Policy
|
apiVersion: kyverno.io/v1
|
||||||
name: pol-data-sync-delete-policy-policy
|
kind: Policy
|
||||||
namespace: manasis
|
name: pol-data-sync-delete-policy-policy
|
||||||
|
namespace: manasis
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: test-org
|
kind: ConfigMap
|
||||||
namespace: pol-data-sync-delete-trigger-ns
|
name: test-org
|
||||||
|
namespace: pol-data-sync-delete-trigger-ns
|
||||||
|
|
|
@ -10,14 +10,17 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-pass.yaml
|
file: policy-pass.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-1.yaml
|
file: policy-fail-1.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-2.yaml
|
file: policy-fail-2.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-3.yaml
|
file: policy-fail-3.yaml
|
||||||
|
|
|
@ -8,10 +8,12 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-name.yaml
|
file: update-name.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-namespace.yaml
|
file: update-namespace.yaml
|
||||||
|
|
|
@ -8,14 +8,17 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-ns.yaml
|
file: update-ns.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-kinds.yaml
|
file: update-kinds.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-selector.yaml
|
file: update-selector.yaml
|
||||||
|
|
|
@ -8,18 +8,22 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-name.yaml
|
file: update-name.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-apiversion.yaml
|
file: update-apiversion.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-namespace.yaml
|
file: update-namespace.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-kind.yaml
|
file: update-kind.yaml
|
||||||
|
|
|
@ -8,20 +8,24 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-name.yaml
|
file: update-rule-name.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-match.yaml
|
file: update-rule-match.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-exclude.yaml
|
file: update-rule-exclude.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-preconditions.yaml
|
file: update-rule-preconditions.yaml
|
||||||
- apply:
|
- apply:
|
||||||
file: update-rule-generate-synchronize.yaml
|
file: update-rule-generate-synchronize.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: kyverno.io/v1
|
ref:
|
||||||
kind: ClusterPolicy
|
apiVersion: kyverno.io/v1
|
||||||
name: cpol-validate-create-sa-permission
|
kind: ClusterPolicy
|
||||||
|
name: cpol-validate-create-sa-permission
|
||||||
|
|
|
@ -12,10 +12,12 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-1-subresource.yaml
|
file: policy-1-subresource.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2.yaml
|
file: policy-2.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2-subresource.yaml
|
file: policy-2-subresource.yaml
|
||||||
|
|
|
@ -8,12 +8,14 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-1-no-ns-namespaced-target.yaml
|
file: policy-fail-1-no-ns-namespaced-target.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-2-ns-cluster-target.yaml
|
file: policy-fail-2-ns-cluster-target.yaml
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-pass-1-ns-namespaced-target.yaml
|
file: policy-pass-1-ns-namespaced-target.yaml
|
||||||
|
|
|
@ -10,14 +10,17 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-pass.yaml
|
file: policy-pass.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-1.yaml
|
file: policy-fail-1.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-2.yaml
|
file: policy-fail-2.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-3.yaml
|
file: policy-fail-3.yaml
|
||||||
|
|
|
@ -8,10 +8,12 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-namespace.yaml
|
file: update-namespace.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-name.yaml
|
file: update-name.yaml
|
||||||
|
|
|
@ -8,14 +8,17 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-ns.yaml
|
file: update-ns.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-kinds.yaml
|
file: update-kinds.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-selector.yaml
|
file: update-selector.yaml
|
||||||
|
|
|
@ -8,18 +8,22 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-name.yaml
|
file: update-name.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-apiversion.yaml
|
file: update-apiversion.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-namespace.yaml
|
file: update-namespace.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-kind.yaml
|
file: update-kind.yaml
|
||||||
|
|
|
@ -8,20 +8,24 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-name.yaml
|
file: update-rule-name.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-match.yaml
|
file: update-rule-match.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-exclude.yaml
|
file: update-rule-exclude.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: update-rule-preconditions.yaml
|
file: update-rule-preconditions.yaml
|
||||||
- apply:
|
- apply:
|
||||||
file: update-rule-generate-synchronize.yaml
|
file: update-rule-generate-synchronize.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -10,18 +10,22 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-pass.yaml
|
file: policy-pass.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-0.yaml
|
file: policy-fail-0.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-1.yaml
|
file: policy-fail-1.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-2.yaml
|
file: policy-fail-2.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-fail-3.yaml
|
file: policy-fail-3.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: apiextensions.k8s.io/v1
|
ref:
|
||||||
kind: CustomResourceDefinition
|
apiVersion: apiextensions.k8s.io/v1
|
||||||
name: roles.iam.aws.crossplane.io
|
kind: CustomResourceDefinition
|
||||||
|
name: roles.iam.aws.crossplane.io
|
||||||
|
|
|
@ -8,7 +8,8 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- delete:
|
- delete:
|
||||||
apiVersion: v1
|
ref:
|
||||||
kind: ConfigMap
|
apiVersion: v1
|
||||||
name: dictionary-2
|
kind: ConfigMap
|
||||||
namespace: staging-2
|
name: dictionary-2
|
||||||
|
namespace: staging-2
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-no-targets.yaml
|
file: policy-no-targets.yaml
|
||||||
|
|
|
@ -8,8 +8,9 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-bad.yaml
|
file: policy-bad.yaml
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-good.yaml
|
file: policy-good.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -10,14 +10,17 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-validate.yaml
|
file: policy-validate.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-mutate.yaml
|
file: policy-mutate.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-generate.yaml
|
file: policy-generate.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-verify-image.yaml
|
file: policy-verify-image.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-1.yaml
|
file: policy-1.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2.yaml
|
file: policy-2.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-3.yaml
|
file: policy-3.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-4.yaml
|
file: policy-4.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-5.yaml
|
file: policy-5.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,10 +8,12 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-1.yaml
|
file: policy-1.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2.yaml
|
file: policy-2.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: resource.yaml
|
file: resource.yaml
|
||||||
|
|
|
@ -8,10 +8,12 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-1.yaml
|
file: policy-1.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2.yaml
|
file: policy-2.yaml
|
||||||
|
|
|
@ -10,10 +10,12 @@ spec:
|
||||||
- apply:
|
- apply:
|
||||||
file: policy-validate.yaml
|
file: policy-validate.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-mutate.yaml
|
file: policy-mutate.yaml
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-verify-image.yaml
|
file: policy-verify-image.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy.yaml
|
file: policy.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-1.yaml
|
file: policy-1.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-2.yaml
|
file: policy-2.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-3.yaml
|
file: policy-3.yaml
|
||||||
|
|
|
@ -8,6 +8,7 @@ spec:
|
||||||
timeouts: {}
|
timeouts: {}
|
||||||
try:
|
try:
|
||||||
- apply:
|
- apply:
|
||||||
check:
|
expect:
|
||||||
(error != null): true
|
- check:
|
||||||
|
($error != null): true
|
||||||
file: policy-4.yaml
|
file: policy-4.yaml
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue