Skip to content

Commit 4158163

Browse files
committed
reverted changes
1 parent 7923d71 commit 4158163

File tree

5 files changed

+14
-52
lines changed

5 files changed

+14
-52
lines changed

.circleci/tests/golden/wiz-outpost-lite/remediation-special-security-context.golden.yaml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
---
2-
# Source: wiz-outpost-lite/templates/serviceaccount.yaml
3-
apiVersion: v1
4-
kind: ServiceAccount
5-
metadata:
6-
name: sa-remediation-aws-rds-003
7-
labels:
8-
helm.sh/chart: "GOLDEN_STATIC_VALUE"
9-
app.kubernetes.io/name: wiz-outpost-lite
10-
app.kubernetes.io/instance: release-test
11-
wiz.io/runner: "remediation-aws-rds-003"
12-
app.kubernetes.io/version: "0.1.0"
13-
app.kubernetes.io/managed-by: Helm
14-
---
152
# Source: wiz-outpost-lite/templates/credentials.secret.yaml
163
apiVersion: v1
174
kind: Secret
@@ -79,9 +66,6 @@ spec:
7966
app.kubernetes.io/instance: release-test
8067
wiz.io/runner: "remediation-aws-rds-003"
8168
spec:
82-
serviceAccountName: sa-remediation-aws-rds-003
83-
securityContext:
84-
runAsNonRoot: false
8569
restartPolicy: Always
8670
containers:
8771
- name: wiz-outpost-lite-remediation-aws-rds-003
@@ -174,6 +158,8 @@ spec:
174158
capabilities:
175159
add:
176160
- SYS_ADMIN
161+
seLinuxOptions:
162+
type: spc_t
177163
volumeMounts:
178164
- mountPath: /var/wiz
179165
name: working-dir

.circleci/tests/golden/wiz-outpost-lite/remediation.golden.yaml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11
---
2-
# Source: wiz-outpost-lite/templates/serviceaccount.yaml
3-
apiVersion: v1
4-
kind: ServiceAccount
5-
metadata:
6-
name: sa-remediation-aws-rds-003
7-
namespace: release-helm-namespace
8-
labels:
9-
helm.sh/chart: "GOLDEN_STATIC_VALUE"
10-
app.kubernetes.io/name: wiz-outpost-lite
11-
app.kubernetes.io/instance: release-test
12-
wiz.io/runner: "remediation-aws-rds-003"
13-
app.kubernetes.io/version: "0.1.0"
14-
app.kubernetes.io/managed-by: Helm
15-
---
162
# Source: wiz-outpost-lite/templates/credentials.secret.yaml
173
apiVersion: v1
184
kind: Secret
@@ -80,12 +66,6 @@ spec:
8066
app.kubernetes.io/instance: release-test
8167
wiz.io/runner: "remediation-aws-rds-003"
8268
spec:
83-
serviceAccountName: sa-remediation-aws-rds-003
84-
securityContext:
85-
fsGroup: 1000
86-
runAsGroup: 1000
87-
runAsNonRoot: true
88-
runAsUser: 1000
8969
restartPolicy: Always
9070
containers:
9171
- name: wiz-outpost-lite-remediation-aws-rds-003
@@ -175,17 +155,11 @@ spec:
175155
requests:
176156
memory: 1024M
177157
securityContext:
178-
allowPrivilegeEscalation: false
179158
capabilities:
180-
drop:
181-
- ALL
182-
privileged: false
183-
readOnlyRootFilesystem: true
184-
runAsGroup: 1000
185-
runAsNonRoot: true
186-
runAsUser: 1000
159+
add:
160+
- SYS_ADMIN
187161
seLinuxOptions:
188-
type: container_t
162+
type: spc_t
189163
volumeMounts:
190164
- mountPath: /var/wiz
191165
name: working-dir

.circleci/tests/golden/wiz-outpost-lite/vcs.golden.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ spec:
9393
restartPolicy: Always
9494
containers:
9595
- name: wiz-outpost-lite-vcs-event-triggered
96-
image: "wizio.azurecr.io/outpost-lite-runner-vcs-event-triggered:0.1-latest"
96+
image: "wizio.azurecr.io/outpost-lite-runner-vcs:0.1-latest"
9797
command: [ "/entrypoint"]
9898
imagePullPolicy: Always
9999
env:
@@ -236,7 +236,7 @@ spec:
236236
restartPolicy: Always
237237
containers:
238238
- name: wiz-outpost-lite-vcs-scheduled
239-
image: "wizio.azurecr.io/outpost-lite-runner-vcs-scheduled:0.1-latest"
239+
image: "wizio.azurecr.io/outpost-lite-runner-vcs:0.1-latest"
240240
command: [ "/entrypoint"]
241241
imagePullPolicy: Always
242242
env:

.circleci/tests/testfiles/wiz-outpost-lite/remediation-special-security-context.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ agent:
44
clientSecret: "secret-2"
55
outpostId: "my-outpost-id"
66

7-
# Using the new hierarchical structure
87
runners:
98
remediation-aws-rds-003:
109
enabled: true
11-
module: remediation # Reference to the module type
12-
# Using the override fields
13-
podSecurityContextOverride:
10+
podSecurityContext:
1411
runAsNonRoot: false
12+
# Using the override fields
1513
containerSecurityContextOverride:
1614
capabilities:
1715
add:

wiz-outpost-lite/values.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ modules:
114114

115115
runners:
116116
container-registry:
117-
enabled: false
117+
enabled: false
118118
vcs-scheduled:
119119
enabled: false
120+
image:
121+
name: outpost-lite-runner-vcs
120122
vcs-event-triggered:
121123
enabled: false
124+
image:
125+
name: outpost-lite-runner-vcs
122126
concurrency: 4
123127
terminationGracePeriodSeconds: 300 # 5 minutes

0 commit comments

Comments
 (0)