File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : ctrlplane
33description : Ctrlplane Helm chart for Kubernetes
44type : application
5- version : 0.9.1
5+ version : 0.9.2
66appVersion : " 1.0.0"
77
88maintainers :
Original file line number Diff line number Diff 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 -}}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments