mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Make init container security context configurable in the Helm chart (#9646)
The two init containers in the Helm deployment template had hardcoded securityContext blocks, unlike the main container which already renders its context from .Values.containerSecurityContext via the renderSecurityContext helper. Switch the init containers to the same pattern so operators can customise (or disable) their security context. Default behaviour is unchanged: containerSecurityContext defaults to enabled with values identical to the previous hardcoded block, and the helper continues to gate appArmorProfile on global.compatibility.appArmor.enabled. Verified with helm template that the rendered init-container securityContext is unchanged for the default values, honours the appArmor toggle, and is omitted entirely when containerSecurityContext.enabled=false. Adds a 9.16 release note.
This commit is contained in:
@@ -21,6 +21,7 @@ New features
|
||||
************
|
||||
|
||||
| `Issue #9626 <https://github.com/pgadmin-org/pgadmin4/issues/9626>`_ - Add support for the TOAST tuple target storage parameter in the Materialized View dialog.
|
||||
| `Issue #9646 <https://github.com/pgadmin-org/pgadmin4/issues/9646>`_ - Make the init container security context in the Helm chart configurable via containerSecurityContext, consistent with the main container.
|
||||
| `Issue #9699 <https://github.com/pgadmin-org/pgadmin4/issues/9699>`_ - Add support for closing a tab with a middle-click on its title.
|
||||
|
||||
Housekeeping
|
||||
|
||||
@@ -192,24 +192,9 @@ spec:
|
||||
limits:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
securityContext:
|
||||
seLinuxOptions: {}
|
||||
runAsUser: 1001
|
||||
runAsGroup: 1001
|
||||
runAsNonRoot: true
|
||||
privileged: false
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
{{- if .Values.global.compatibility.appArmor.enabled }}
|
||||
appArmorProfile:
|
||||
type: RuntimeDefault
|
||||
{{- end }}
|
||||
windowsOptions:
|
||||
hostProcess: false
|
||||
{{- if .Values.containerSecurityContext.enabled }}
|
||||
securityContext: {{- include "renderSecurityContext" (dict "securityContext" .Values.containerSecurityContext "context" .) | nindent 12 }}
|
||||
{{- end }}
|
||||
- name: unset-python3-cli-net-cap
|
||||
image: {{ template "pgadmin4.image" . }}
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
@@ -226,21 +211,6 @@ spec:
|
||||
limits:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
securityContext:
|
||||
seLinuxOptions: {}
|
||||
runAsUser: 1001
|
||||
runAsGroup: 1001
|
||||
runAsNonRoot: true
|
||||
privileged: false
|
||||
readOnlyRootFilesystem: true
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
{{- if .Values.global.compatibility.appArmor.enabled }}
|
||||
appArmorProfile:
|
||||
type: RuntimeDefault
|
||||
{{- end }}
|
||||
windowsOptions:
|
||||
hostProcess: false
|
||||
{{- if .Values.containerSecurityContext.enabled }}
|
||||
securityContext: {{- include "renderSecurityContext" (dict "securityContext" .Values.containerSecurityContext "context" .) | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user