chore(psp): removed runAsUser from psp and update the go-runner image in workflows (#446)

Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
This commit is contained in:
Shubham Chaudhary
2021-04-20 21:35:05 +05:30
committed by GitHub
parent 27e362482c
commit 204814e945
11 changed files with 4 additions and 34 deletions

View File

@@ -30,8 +30,6 @@ spec:
hostNetwork: false
hostIPC: false
hostPID: true
runAsUser:
rule: 'RunAsAny'
seLinux:
# This policy assumes the nodes are using AppArmor rather than SELinux.
rule: 'RunAsAny'

View File

@@ -37,7 +37,7 @@ spec:
image: litmuschaos/k8s:latest
command: [sh, -c]
args:
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/1.12.0?file=charts/generic/experiments.yaml -n
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/master?file=charts/generic/experiments.yaml -n
{{workflow.parameters.adminModeNamespace}} | sleep 30"
- name: node-cpu-hog
@@ -96,7 +96,6 @@ spec:
- name: pod-memory-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'
@@ -135,7 +134,6 @@ spec:
- name: pod-cpu-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -40,7 +40,7 @@ spec:
image: litmuschaos/k8s:latest
command: [sh, -c]
args:
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/1.12.0?file=charts/generic/experiments.yaml -n
- "kubectl apply -f https://hub.litmuschaos.io/api/chaos/master?file=charts/generic/experiments.yaml -n
{{workflow.parameters.adminModeNamespace}} | sleep 30"
- name: node-cpu-hog
@@ -99,7 +99,6 @@ spec:
- name: pod-memory-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'
@@ -138,7 +137,6 @@ spec:
- name: pod-cpu-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -60,7 +60,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args:
- -c
@@ -127,7 +127,6 @@ spec:
- name: pod-cpu-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -64,7 +64,7 @@ spec:
- "patch"
- "update"
- "delete"
image: "litmuschaos/go-runner:ci"
image: "litmuschaos/go-runner:latest"
imagePullPolicy: Always
args:
- -c
@@ -131,7 +131,6 @@ spec:
- name: pod-cpu-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -128,7 +128,6 @@ spec:
- name: pod-memory-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -132,7 +132,6 @@ spec:
- name: pod-memory-hog
spec:
components:
experimentImage: "litmuschaos/go-runner:ci"
env:
- name: TARGET_CONTAINER
value: 'kube-proxy'

View File

@@ -109,7 +109,6 @@ spec:
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
#number of cpu cores to be consumed
#verify the resources the app has been launched with
@@ -181,7 +180,6 @@ spec:
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: MEMORY_CONSUMPTION
value: '500'
@@ -254,7 +252,6 @@ spec:
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -328,7 +325,6 @@ spec:
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -404,7 +400,6 @@ spec:
retry: 2
initialDelaySeconds: 1
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: FILL_PERCENTAGE
value: '100'

View File

@@ -113,7 +113,6 @@ spec:
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
#number of cpu cores to be consumed
#verify the resources the app has been launched with
@@ -185,7 +184,6 @@ spec:
retry: 2
initialDelaySeconds: 10
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: MEMORY_CONSUMPTION
value: '500'
@@ -258,7 +256,6 @@ spec:
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -332,7 +329,6 @@ spec:
retry: 2
initialDelaySeconds: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -408,7 +404,6 @@ spec:
retry: 2
initialDelaySeconds: 1
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: FILL_PERCENTAGE
value: '100'

View File

@@ -107,7 +107,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
#number of cpu cores to be consumed
#verify the resources the app has been launched with
@@ -177,7 +176,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: MEMORY_CONSUMPTION
value: '500'
@@ -248,7 +246,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -321,7 +318,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -395,7 +391,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: FILL_PERCENTAGE
value: '100'

View File

@@ -113,7 +113,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
#number of cpu cores to be consumed
#verify the resources the app has been launched with
@@ -183,7 +182,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: MEMORY_CONSUMPTION
value: '500'
@@ -254,7 +252,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -327,7 +324,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: TOTAL_CHAOS_DURATION
value: '30'
@@ -401,7 +397,6 @@ spec:
interval: 1
retry: 2
components:
experimentImage: "litmuschaos/go-runner:latest"
env:
- name: FILL_PERCENTAGE
value: '100'