Skip to content

Commit

Permalink
fix(chart): Make sure token is configured for the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Dec 14, 2022
1 parent 6f74ea3 commit 38f477f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions charts/ledger/ci/pluto-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ ingress:

autoscaling:
enabled: true

ledgerAgent:
enabled: true
token: dummy
4 changes: 3 additions & 1 deletion charts/ledger/templates/agent_secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{{- if .Values.ledgerAgent.enabled -}}
{{ $token := .Values.ledgerAgent.token | required ".Values.ledgerAgent.token is required" }}
---
apiVersion: v1
kind: Secret
type: Opaque
Expand All @@ -10,6 +12,6 @@ metadata:
data:
endpoint: {{ .Values.ledgerAgent.endpoint | b64enc }}
location: {{ .Values.ledgerAgent.location | b64enc }}
token: {{ .Values.ledgerAgent.token | b64enc }}
token: {{ $token | b64enc }}
log-level: {{ .Values.ledgerAgent.log.level | b64enc }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/ledger/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ ledgerAgent:
endpoint: http://ledger-server
location: ""
namespaced: false
token: default
token:
log:
level: info

0 comments on commit 38f477f

Please sign in to comment.