diff --git a/charts/ledger/ci/pluto-values.yaml b/charts/ledger/ci/pluto-values.yaml index 36fa70e..8175ed5 100644 --- a/charts/ledger/ci/pluto-values.yaml +++ b/charts/ledger/ci/pluto-values.yaml @@ -3,3 +3,7 @@ ingress: autoscaling: enabled: true + +ledgerAgent: + enabled: true + token: dummy \ No newline at end of file diff --git a/charts/ledger/templates/agent_secret.yaml b/charts/ledger/templates/agent_secret.yaml index ba557f6..61a5140 100644 --- a/charts/ledger/templates/agent_secret.yaml +++ b/charts/ledger/templates/agent_secret.yaml @@ -1,4 +1,6 @@ {{- if .Values.ledgerAgent.enabled -}} +{{ $token := .Values.ledgerAgent.token | required ".Values.ledgerAgent.token is required" }} +--- apiVersion: v1 kind: Secret type: Opaque @@ -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 }} diff --git a/charts/ledger/values.yaml b/charts/ledger/values.yaml index a5217fb..cd239dc 100644 --- a/charts/ledger/values.yaml +++ b/charts/ledger/values.yaml @@ -121,6 +121,6 @@ ledgerAgent: endpoint: http://ledger-server location: "" namespaced: false - token: default + token: log: level: info