Skip to content

Commit

Permalink
[Cherry-Pick for 2.2.0] (#511)
Browse files Browse the repository at this point in the history
* chore(kyverno): Adding kyverno pod security policies for litmus pods (#504)

* chore(kyverno): Adding security policies

Signed-off-by: shubham chaudhary <shubham@chaosnative.com>

* chore(kyverno): updating policies

Signed-off-by: shubham chaudhary <shubham@chaosnative.com>

* chore(kyverno): updating policies

Signed-off-by: shubham chaudhary <shubham@chaosnative.com>

* chore(kyverno): changed the file names

Signed-off-by: shubham chaudhary <shubham@chaosnative.com>

* [Cherry-Pick for 2.2.0]

Signed-off-by: udit <udit@chaosnative.com>

Co-authored-by: Shubham Chaudhary <shubham@chaosnative.com>
  • Loading branch information
uditgaurav and Shubham Chaudhary authored Oct 13, 2021
1 parent bf751c6 commit ad097d6
Show file tree
Hide file tree
Showing 121 changed files with 644 additions and 366 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
name: ChaosNative
labels:
app.kubernetes.io/component: chartserviceversion
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/aws-ssm/aws-ssm-chaos-by-id
Expand Down
6 changes: 3 additions & 3 deletions charts/aws-ssm/aws-ssm-chaos-by-id/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -36,7 +36,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -117,7 +117,7 @@ spec:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
name: ChaosNative
labels:
app.kubernetes.io/component: chartserviceversion
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/aws-ssm/aws-ssm-chaos-by-tag
Expand Down
6 changes: 3 additions & 3 deletions charts/aws-ssm/aws-ssm-chaos-by-tag/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: aws-ssm-chaos-by-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -36,7 +36,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -121,7 +121,7 @@ spec:
name: aws-ssm-chaos-by-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
12 changes: 6 additions & 6 deletions charts/aws-ssm/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -36,7 +36,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -117,7 +117,7 @@ spec:
name: aws-ssm-chaos-by-id
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand All @@ -134,7 +134,7 @@ metadata:
name: aws-ssm-chaos-by-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -161,7 +161,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -246,7 +246,7 @@ spec:
name: aws-ssm-chaos-by-tag
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand Down
2 changes: 1 addition & 1 deletion charts/azure/azure-disk-loss/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
name: Chaos Native
labels:
app.kubernetes.io/component: chartserviceversion
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/azure/instance-stop/experiment
Expand Down
6 changes: 3 additions & 3 deletions charts/azure/azure-instance-stop/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -35,7 +35,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -82,7 +82,7 @@ spec:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand Down
8 changes: 4 additions & 4 deletions charts/azure/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -35,7 +35,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -82,7 +82,7 @@ spec:
name: azure-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand Down Expand Up @@ -130,7 +130,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
name: Mayadata
labels:
app.kubernetes.io/component: chartserviceversion
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-go/tree/master/experiments/cassandra/pod-delete
Expand Down
6 changes: 3 additions & 3 deletions charts/cassandra/cassandra-pod-delete/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: cassandra-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Namespaced
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -107,4 +107,4 @@ spec:
name: cassandra-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
6 changes: 3 additions & 3 deletions charts/cassandra/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: cassandra-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Namespaced
Expand Down Expand Up @@ -39,7 +39,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -107,6 +107,6 @@ spec:
name: cassandra-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0

---
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
name: Mayadata
labels:
app.kubernetes.io/component: chartserviceversion
app.kubernetes.io/version: 2.1.0
app.kubernetes.io/version: 2.2.0
links:
- name: Source Code
url: https://github.com/litmuschaos/litmus-ansible/tree/master/experiments/coredns/pod_delete
Expand Down
6 changes: 3 additions & 3 deletions charts/coredns/coredns-pod-delete/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: coredns-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.0
app.kubernetes.io/version: 2.2.0
spec:
definition:
permissions:
Expand All @@ -33,7 +33,7 @@ spec:
- "create"
- "update"
- "delete"
image: "litmuschaos/ansible-runner:2.1.0"
image: "litmuschaos/ansible-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -69,4 +69,4 @@ spec:
name: coredns-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.0
app.kubernetes.io/version: 2.2.0
6 changes: 3 additions & 3 deletions charts/coredns/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: coredns-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.0
app.kubernetes.io/version: 2.2.0
spec:
definition:
permissions:
Expand All @@ -33,7 +33,7 @@ spec:
- "create"
- "update"
- "delete"
image: "litmuschaos/ansible-runner:2.1.0"
image: "litmuschaos/ansible-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -69,6 +69,6 @@ spec:
name: coredns-pod-delete
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.0
app.kubernetes.io/version: 2.2.0

---
12 changes: 6 additions & 6 deletions charts/gcp/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
name: gcp-vm-disk-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand All @@ -36,7 +36,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -87,7 +87,7 @@ spec:
name: gcp-vm-disk-loss
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand All @@ -104,7 +104,7 @@ metadata:
name: gcp-vm-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: chaosexperiment
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
spec:
definition:
scope: Cluster
Expand Down Expand Up @@ -132,7 +132,7 @@ spec:
- "update"
- "delete"
- "deletecollection"
image: "litmuschaos/go-runner:2.1.1"
image: "litmuschaos/go-runner:2.2.0"
imagePullPolicy: Always
args:
- -c
Expand Down Expand Up @@ -183,7 +183,7 @@ spec:
name: gcp-vm-instance-stop
app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job
app.kubernetes.io/version: 2.1.1
app.kubernetes.io/version: 2.2.0
secrets:
- name: cloud-secret
mountPath: /tmp/
Expand Down
Loading

0 comments on commit ad097d6

Please sign in to comment.