Skip to content

Commit 2192287

Browse files
authored
agent: make secret key configurable (#6)
1 parent d4d716e commit 2192287

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.1
18+
version: 0.3.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/agent/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
- name: "API_KEY"
5858
valueFrom:
5959
secretKeyRef:
60-
key: apiKey
60+
key: {{ .Values.apiKeySecret.key | default "apiKey" }}
6161
{{- if .Values.apiKeySecret.create }}
6262
name: {{ .Release.Name }}-auth
6363
{{- else if and .Values.apiKeySecret.name (not .Values.apiKeySecret.create) }}

charts/agent/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ fullnameOverride: ""
2020
# Configures secret for agent API Key
2121
#
2222
# If you already have a secret with the Key, set `create` to
23-
# false and set the `name`` value to the name of your secret.
23+
# false and set the `name` and `key` of your secret.
2424
#
2525
# If you don't have a secret, set `create` to true
26-
# and set the `apiKey`` value to your Key.
26+
# and set the `apiKey` value to your Key.
2727
#
2828
# You can also create a secret yourself via extraManifests[].
2929
# Set `create` to false and set `name` to the name of

0 commit comments

Comments
 (0)