Skip to content

Commit

Permalink
fix: security context rollback (#38)
Browse files Browse the repository at this point in the history
* fix: security context rollback

* fix
  • Loading branch information
ArcRiiad authored Dec 10, 2024
1 parent 863a701 commit 0c70c01
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions templates/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ spec:
- name: stream-upgrade
image: {{ include "common.images.image" (dict "imageRoot" .Values.upgrade.image "global" .Values.global) }}
imagePullPolicy: {{ .Values.upgrade.image.pullPolicy | default "IfNotPresent" | quote }}
{{- if .Values.upgrade.containerSecurityContext.enabled }}
securityContext: {{- omit .Values.upgrade.containerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.upgrade.image) "context" $) | nindent 10 }}
args: [
"-y",
Expand All @@ -29,8 +26,5 @@ spec:
name: {{ include "common.secrets.name" (dict "existingSecret" .Values.externalDatabase.secretName "context" $) }}
key: {{ include "common.secrets.key" (dict "existingSecret" .Values.externalDatabase.secretKey "key" "mongoUri") }}
restartPolicy: Never
{{- if .Values.upgrade.podSecurityContext.enabled }}
securityContext: {{- omit .Values.upgrade.podSecurityContext "enabled" | toYaml | nindent 8 }}
{{- end }}
backoffLimit: 0
{{- end }}
18 changes: 0 additions & 18 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,24 +559,6 @@ upgrade:
requests:
memory: 512Mi
cpu: 500m
## Configure Pods Security Context
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
## @param upgrade.podSecurityContext.enabled Enabled Horizon pods' Security Context
## @param upgrade.podSecurityContext.fsGroup Set Horizon pod's Security Context fsGroup
##
podSecurityContext:
enabled: true
fsGroup: 1001
## Configure Container Security Context (only main container)
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
## @param upgrade.containerSecurityContext.enabled Enabled Horizon containers' Security Context
## @param upgrade.containerSecurityContext.runAsUser Set Horizon container's Security Context runAsUser
## @param upgrade.containerSecurityContext.runAsNonRoot Set Horizon container's Security Context runAsNonRoot
##
containerSecurityContext:
enabled: true
runAsUser: 1001
runAsNonRoot: true

## Configuration for a Stream external database
## Refer to the Stream installation guide to configure the installation correctly
Expand Down

0 comments on commit 0c70c01

Please sign in to comment.