Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ spec:
tolerations: {{- toYaml .Values.operator.tolerations | nindent 8 }}
{{- end }}
securityContext:
runAsNonRoot: true
runAsUser: 1000
{{- toYaml .Values.operator.podSecurityContext | nindent 8 }}
containers:
- image: {{ .Values.operator.repository }}:{{ .Values.operator.tag }}
imagePullPolicy: {{ .Values.operator.pullPolicy }}
Expand Down Expand Up @@ -82,10 +81,7 @@ spec:
- name: retina-operator-config
mountPath: /retina/
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
{{- toYaml .Values.operator.securityContext | nindent 12 }}
# livenessProbe:
# httpGet:
# path: /healthz
Expand Down
10 changes: 10 additions & 0 deletions deploy/hubble/manifests/controller/helm/retina/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ operator:
# Namespace used for operator leader election lease.
# Defaults to .Release.Namespace when empty.
leaderElectionNamespace: ""
# -- retina-operator pod-level security context.
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
# -- retina-operator container-level security context.
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

agent:
leaderElection: false
Expand Down
Loading