Skip to content

Commit

Permalink
feat: support self signed certs in the aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei committed Sep 19, 2023
1 parent c74d1ba commit 06c121b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
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.11.2
version: 0.11.3
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
22 changes: 22 additions & 0 deletions charts/nx-cloud/templates/nx-cloud-aggregator-cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ spec:
{{- if .Values.aggregator.resources }}
resources: {{- toYaml .Values.aggregator.resources | nindent 16 }}
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
lifecycle:
postStart:
exec:
command:
- sh
- -c
- ./srv/import-all-java-certs.sh /self-signed-certs/self-signed-cert.crt
volumeMounts:
- mountPath: /self-signed-certs
name: self-signed-certs-volume
{{- end}}
env:
{{- include "nxCloud.env.mongoSecrets" . | indent 12 }}
{{- include "nxCloud.env.verboseLogging" . | indent 12 }}
Expand Down Expand Up @@ -39,6 +51,16 @@ spec:
- name: NX_CLOUD_USE_MONGO42
value: 'false'
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
- name: NX_CLOUD_STARTUP_DELAY_SECONDS
value: '90'
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
volumes:
- configMap:
name: {{ .Values.selfSignedCertConfigMap }}
name: self-signed-certs-volume
{{- end }}
restartPolicy: OnFailure
{{- end }}
---
Expand Down
2 changes: 1 addition & 1 deletion charts/nx-cloud/templates/nx-cloud-nx-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ spec:
value: 'false'
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
- name: NX_CLOUD_NX_API_STARTUP_DELAY_SECONDS
- name: NX_CLOUD_STARTUP_DELAY_SECONDS
value: '90'
{{- end }}
{{- if .Values.selfSignedCertConfigMap }}
Expand Down

0 comments on commit 06c121b

Please sign in to comment.