Skip to content

Commit

Permalink
feat: add nats endpoint to operator (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLia authored Oct 25, 2023
1 parent 9149677 commit 613e3d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/testkube-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ spec:
- name: APISERVER_REGISTRY
value: {{ .Values.global.imageRegistry }}
{{- end }}
{{- if .Values.nats.enabled }}
- name: NATS_URI
{{- if .Values.nats.secretName }}
valueFrom:
secretKeyRef:
name: {{ .Values.nats.secretName }}
key: {{ .Values.nats.secretKey }}
{{- else }}
value: "nats://{{ .Release.Name }}-nats"
{{- end }}
{{- end }}
ports:
- containerPort: 9443
name: webhook-server
Expand Down
9 changes: 9 additions & 0 deletions charts/testkube-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,12 @@ preUpgrade:
operator: Equal
value: arm64
effect: NoSchedule

## NATS parameters
## ref: https://github.com/nats-io/nats-server
nats:
## Deploy NATS server to the cluster
enabled: true
## load URI from secrets
# secretName: XXX
# secretKey: XXX

0 comments on commit 613e3d8

Please sign in to comment.