Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy/helm/grus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@ spec:
secretKeyRef:
name: {{ required "adminToken.existingSecret is required: name an existing Secret that holds the admin token" .Values.adminToken.existingSecret }}
key: {{ .Values.adminToken.key | quote }}
{{- if .Values.agents.tokens.existingSecret }}
- name: GRUS_AGENT_TOKENS
valueFrom:
secretKeyRef:
name: {{ .Values.agents.tokens.existingSecret | quote }}
key: {{ .Values.agents.tokens.key | quote }}
{{- end }}
{{- range $name, $value := .Values.controller.extraEnv }}
- name: {{ $name }}
value: {{ $value | quote }}
Expand Down
9 changes: 9 additions & 0 deletions deploy/helm/grus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ adminToken:
# Key inside that Secret.
key: GRUS_ADMIN_TOKEN

agents:
tokens:
# Optional. Existing Secret with the agent token hashes (GRUS_AGENT_TOKENS). The value has the form
# host=<sha256 hex of the agent token>[,host2=...]. Only hashes belong in the Secret, never the plain
# tokens; see deploy/agent/README.md. Empty means no agent host can authenticate.
existingSecret: ""
# Key inside that Secret.
key: GRUS_AGENT_TOKENS

controller:
# Base URL that instances use to reach the controller. Empty means the in-cluster Service URL
# http://<fullname>.<namespace>.svc.cluster.local:<service.port>.
Expand Down