Skip to content

Commit 83ae20b

Browse files
committed
chore: bump ctrlplane chart version to 0.9.2 and update GitHub bot environment variable template
1 parent 415a816 commit 83ae20b

3 files changed

Lines changed: 56 additions & 6 deletions

File tree

charts/ctrlplane/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: ctrlplane
33
description: Ctrlplane Helm chart for Kubernetes
44
type: application
5-
version: 0.9.1
5+
version: 0.9.2
66
appVersion: "1.0.0"
77

88
maintainers:

charts/ctrlplane/templates/_github.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Generate GitHub bot environment variables using the new valueFrom pattern
1414
- name: GITHUB_BOT_NAME
1515
value: {{ $bot.name | quote }}
1616
{{- end }}
17-
{{- include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_CLIENT_ID" "value" $bot.clientId) }}
18-
{{- include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_APP_ID" "value" $bot.appId) }}
19-
{{- include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_CLIENT_SECRET" "value" $bot.clientSecret) }}
20-
{{- include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_PRIVATE_KEY" "value" $bot.privateKey) }}
21-
{{- include "ctrlplane.envVar" (dict "name" "GITHUB_WEBHOOK_SECRET" "value" $bot.webhookSecret) }}
17+
{{ include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_CLIENT_ID" "value" $bot.clientId) }}
18+
{{ include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_APP_ID" "value" $bot.appId) }}
19+
{{ include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_CLIENT_SECRET" "value" $bot.clientSecret) }}
20+
{{ include "ctrlplane.envVar" (dict "name" "GITHUB_BOT_PRIVATE_KEY" "value" $bot.privateKey) }}
21+
{{ include "ctrlplane.envVar" (dict "name" "GITHUB_WEBHOOK_SECRET" "value" $bot.webhookSecret) }}
2222
{{- end -}}

charts/ctrlplane/tests/api_auth_env_test.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,53 @@ tests:
8585
key: client-secret
8686
name: okta-oauth-secret
8787
any: true
88+
- it: sets github bot env vars as plain strings
89+
template: charts/api/templates/deployment.yaml
90+
set:
91+
global:
92+
integrations:
93+
github:
94+
bot:
95+
name: github-bot
96+
clientId: github-client-id
97+
appId: "12345"
98+
clientSecret: github-client-secret
99+
privateKey: github-bot-cert
100+
webhookSecret: github-webhook-secret
101+
asserts:
102+
- contains:
103+
path: spec.template.spec.containers[0].env
104+
content:
105+
name: GITHUB_BOT_PRIVATE_KEY
106+
value: github-bot-cert
107+
any: true
108+
- contains:
109+
path: spec.template.spec.containers[0].env
110+
content:
111+
name: GITHUB_BOT_NAME
112+
value: github-bot
113+
any: true
114+
- contains:
115+
path: spec.template.spec.containers[0].env
116+
content:
117+
name: GITHUB_BOT_CLIENT_ID
118+
value: github-client-id
119+
any: true
120+
- contains:
121+
path: spec.template.spec.containers[0].env
122+
content:
123+
name: GITHUB_BOT_APP_ID
124+
value: "12345"
125+
any: true
126+
- contains:
127+
path: spec.template.spec.containers[0].env
128+
content:
129+
name: GITHUB_BOT_CLIENT_SECRET
130+
value: github-client-secret
131+
any: true
132+
- contains:
133+
path: spec.template.spec.containers[0].env
134+
content:
135+
name: GITHUB_WEBHOOK_SECRET
136+
value: github-webhook-secret
137+
any: true

0 commit comments

Comments
 (0)