Skip to content

Commit

Permalink
allow mongo string to be skipped (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarmatei authored Jun 16, 2023
1 parent 0b8aef6 commit c9333ec
Show file tree
Hide file tree
Showing 2 changed files with 8 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.10.7
version: 0.10.8
maintainers:
- name: nx
url: "https://nx.app/"
Expand Down
8 changes: 7 additions & 1 deletion charts/nx-cloud/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ Below are various little env snippets that multiple mainifests make use of
{{- end }}

{{- define "nxCloud.env.mongoSecrets" }}
{{- if .Values.secret.name }}
{{- if (.Values.mongo).useAutoGeneratedOperatorSecret }}
- name: NX_CLOUD_MONGO_SERVER_ENDPOINT
valueFrom:
secretKeyRef:
name: 'mongosecret'
key: 'NX_CLOUD_MONGO_SERVER_ENDPOINT'
{{- else if .Values.secret.name }}
- name: NX_CLOUD_MONGO_SERVER_ENDPOINT
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit c9333ec

Please sign in to comment.