Skip to content

Commit a35e449

Browse files
committed
added support for opa and init
1 parent d17f666 commit a35e449

3 files changed

Lines changed: 23 additions & 3 deletions

File tree

charts/platform-service/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v1
22
appVersion: "1.1"
33
description: Platform service chart
44
name: platform-service
5-
version: 1.5.9
5+
version: 1.5.10

charts/platform-service/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ spec:
9191
- name: {{ .name }}
9292
image: {{ .image.full }}
9393
imagePullPolicy: {{ .image.pullPolicy }}
94+
{{- if .initContainerSecurityContext }}
95+
securityContext:
96+
{{- toYaml .initContainerSecurityContext | nindent 12 }}
97+
{{- end }}
9498
{{- if .envVariables }}
9599
env:
96100
{{- with .envVariables }}

charts/platform-service/values.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,18 @@ opa:
8989
# set to true to enable opa. requires config in a config map called opa-istio-config and policy in a config map called opa-policy
9090
enabled: false
9191
image: openpolicyagent/opa:0.28.0-istio
92-
92+
containerSecurityContext: {}
93+
# containerSecurityContext:
94+
# allowPrivilegeEscalation: false
95+
# readOnlyRootFilesystem: true
96+
# runAsNonRoot: true
97+
# privileged: false
98+
# runAsUser: 1001
99+
# runAsGroup: 1001
100+
# fsGroup: 1001
101+
# capabilities:
102+
# drop:
103+
# - ALL
93104
hpa:
94105
enabled: false
95106
maxReplicas: 3
@@ -356,7 +367,12 @@ initContainers: []
356367
# requests:
357368
# cpu: "500m"
358369
# memory: "256Mi"
359-
370+
# initContainerSecurityContext: {}
371+
# capabilities:
372+
# drop:
373+
# - ALL
374+
# readOnlyRootFilesystem: true
375+
# runAsNonRoot: true
360376
# Advanced: Raw YAML for additional init containers requiring full control
361377
initContainersDefinitions: []
362378

0 commit comments

Comments
 (0)