Skip to content

Commit

Permalink
allow custom ca on frontend (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei committed Jun 14, 2024
1 parent b72cc56 commit f694263
Show file tree
Hide file tree
Showing 2 changed files with 16 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.3
version: 0.15.4
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
15 changes: 15 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,11 @@ spec:
port: {{ .Values.frontend.deployment.port }}
initialDelaySeconds: 5
periodSeconds: 10
{{- if .Values.selfSignedCertConfigMap }}
volumeMounts:
- mountPath: /self-signed-certs
name: self-signed-certs-volume
{{- end}}
env:
{{- include "nxCloud.env.verboseLogging" . | indent 12 }}
{{- include "nxCloud.env.mode" . | indent 12 }}
Expand All @@ -55,6 +60,10 @@ spec:
{{- if .Values.frontend.deployment.env }}
{{- toYaml .Values.frontend.deployment.env | nindent 12 }}
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
- name: NODE_EXTRA_CA_CERTS
value: /self-signed-certs/self-signed-cert.crt
{{- end}}
{{- with .Values.secret }}
{{- if .name }}
{{- if .githubPrivateKey }}
Expand All @@ -80,3 +89,9 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
volumes:
- configMap:
name: {{ .Values.selfSignedCertConfigMap }}
name: self-signed-certs-volume
{{- end }}

0 comments on commit f694263

Please sign in to comment.