Skip to content

Commit

Permalink
fix: allow external NATS passed for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Jan 2, 2024
1 parent 127fec2 commit cb9b45d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ spec:
{{- end }}
- name: API_MONGO_ALLOW_DISK_USE
value: "{{ .Values.mongodb.allowDiskUse }}"
{{- if .Values.nats.enabled }}
- name: NATS_URI
{{- if .Values.nats.secretName }}
{{- if .Values.nats.uri }}
value: "{{ .Values.nats.uri }}"
{{- else if .Values.nats.secretName }}
valueFrom:
secretKeyRef:
name: {{ .Values.nats.secretName }}
Expand All @@ -133,7 +134,6 @@ spec:
value: "{{ .Values.nats.tls.certSecret.baseMountPath }}/{{ .Values.nats.tls.certSecret.caFile }}"
{{- end }}
{{- end }}
{{- end }}
- name: POSTMANEXECUTOR_URI
value: "{{ .Values.postmanExecutorURI }}"
- name: TESTKUBE_ANALYTICS_ENABLED
Expand Down
2 changes: 2 additions & 0 deletions charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ nats:
## load URI from secrets
# secretName: XXX
# secretKey: XXX
## load URI from plain-text
# uri: "nats://testkube-nats:4222"

## MINIO parameters
minio:
Expand Down

0 comments on commit cb9b45d

Please sign in to comment.