Skip to content

Commit

Permalink
feat: expose securityContext property for configuration (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
minijus authored Aug 19, 2024
1 parent 1ab19eb commit d16e27c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/nx-cloud/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: nx-cloud
description: Nx Cloud Helm Chart
type: application
version: 0.15.6
version: 0.15.7
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
4 changes: 4 additions & 0 deletions charts/nx-cloud/templates/nx-cloud-aggregator-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ spec:
resources: {{- toYaml .Values.aggregator.resources | nindent 16 }}
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
{{- if .Values.aggregator.securityContext }}
securityContext:
{{- toYaml .Values.aggregator.securityContext | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /self-signed-certs
name: self-signed-certs-volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ spec:
port: {{ .Values.fileServer.deployment.port }}
failureThreshold: 10
periodSeconds: 5
{{- if .Values.fileServer.securityContext }}
securityContext:
{{- toYaml .Values.fileServer.securityContext | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /data
name: data
Expand Down
4 changes: 4 additions & 0 deletions charts/nx-cloud/templates/nx-cloud-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spec:
port: {{ .Values.frontend.deployment.port }}
initialDelaySeconds: 5
periodSeconds: 10
{{- if .Values.frontend.securityContext }}
securityContext:
{{- toYaml .Values.frontend.securityContext | nindent 12 }}
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
volumeMounts:
- mountPath: /self-signed-certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
ports:
- containerPort: {{ .Values.messagequeue.deployment.port }}
name: tcp
{{- if .Values.messagequeue.securityContext }}
securityContext:
{{- toYaml .Values.messagequeue.securityContext | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /opt/activemq/data
name: data
Expand Down
4 changes: 4 additions & 0 deletions charts/nx-cloud/templates/nx-cloud-nx-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
ports:
- containerPort: {{ .Values.nxApi.deployment.port }}
{{- if .Values.selfSignedCertConfigMap }}
{{- if .Values.nxApi.securityContext }}
securityContext:
{{- toYaml .Values.nxApi.securityContext | nindent 12 }}
{{- end }}
volumeMounts:
- mountPath: /self-signed-certs
name: self-signed-certs-volume
Expand Down

0 comments on commit d16e27c

Please sign in to comment.