Skip to content

Commit b581bc7

Browse files
pascalfreundsrfPascal Freundmms-gianni
authored
[Zookeeper] [Nginx] Change nginx and zookeeper security-context to use helper-function (CloudPirates-io#169)
* Change nginx and zookeeper security-context to helper-function * Bump nginx and zookeeper chart version * Add indent to securitycontext * use latest commont chart * Bump zookeeper chart version --------- Co-authored-by: Pascal Freund <[email protected]> Co-authored-by: Gianni Carafa <[email protected]>
1 parent 0396895 commit b581bc7

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

charts/nginx/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/cloudpirates
4-
version: 1.0.0
5-
digest: sha256:4dc4489391e65614af4cd64d56a213e353a7a70b231faf64c584779774304d96
6-
generated: "2025-09-05T11:18:34.731151+02:00"
4+
version: 1.1.1
5+
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6+
generated: "2025-09-26T20:24:47.53804+02:00"

charts/nginx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: nginx
33
description: Nginx is a high-performance HTTP server and reverse proxy.
44
type: application
5-
version: 0.1.8
5+
version: 0.1.9
66
appVersion: "1.29.1"
77
keywords:
88
- nginx

charts/nginx/templates/deployment.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ spec:
3232
{{ . | nindent 6 }}
3333
{{- end }}
3434
serviceAccountName: {{ include "nginx.serviceAccountName" . }}
35-
securityContext:
36-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
35+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3736
{{- if .Values.cloneStaticSiteFromGit.enabled }}
3837
initContainers:
3938
- name: git-clone-repository
@@ -73,7 +72,7 @@ spec:
7372
{{- end }}
7473
containers:
7574
- name: {{ .Chart.Name }}
76-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
75+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
7776
image: {{ include "nginx.image" . | quote }}
7877
imagePullPolicy: {{ include "common.imagePullPolicy" (dict "image" .Values.image) }}
7978
ports:

charts/zookeeper/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/cloudpirates
4-
version: 1.0.0
5-
digest: sha256:4dc4489391e65614af4cd64d56a213e353a7a70b231faf64c584779774304d96
6-
generated: "2025-09-08T11:44:16.970325+02:00"
4+
version: 1.1.1
5+
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6+
generated: "2025-09-26T20:23:22.029394+02:00"

charts/zookeeper/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: zookeeper
33
description: Apache ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
44
type: application
5-
version: 0.1.3
5+
version: 0.1.4
66
appVersion: "3.9.3"
77
keywords:
88
- zookeeper

charts/zookeeper/templates/statefulset.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ spec:
3232
{{- with (include "zookeeper.imagePullSecrets" .) }}
3333
{{ . | nindent 6 }}
3434
{{- end }}
35-
securityContext:
36-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
35+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3736
containers:
3837
- name: {{ .Chart.Name }}
39-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
38+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
4039
image: {{ include "zookeeper.image" . | quote }}
4140
imagePullPolicy: {{ .Values.image.imagePullPolicy | default "Always" | quote }}
4241
ports:

0 commit comments

Comments
 (0)