@@ -73,7 +73,7 @@ The following inputs are available as `step.with` keys:
73
73
74
74
``` yaml
75
75
- name : Deploy Helm
76
-
76
+
77
77
with :
78
78
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
79
79
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -89,7 +89,7 @@ The following inputs are available as `step.with` keys:
89
89
## Example 2 - Custom Chart Repo
90
90
` ` ` yaml
91
91
- name : Deploy Helm
92
-
92
+
93
93
with :
94
94
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
95
95
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -109,7 +109,7 @@ The following inputs are available as `step.with` keys:
109
109
## Example 3 - OCI Chart Repo
110
110
` ` ` yaml
111
111
- name : Deploy Helm
112
-
112
+
113
113
with :
114
114
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
115
115
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -132,7 +132,7 @@ The following inputs are available as `step.with` keys:
132
132
aws-region : ${{ env.aws-region }}
133
133
134
134
- name : Install Helm Chart
135
-
135
+
136
136
with :
137
137
aws-region : ${{ env.aws-region }}
138
138
cluster-name : eks-cluster-${{ env.environment }}
@@ -142,7 +142,7 @@ The following inputs are available as `step.with` keys:
142
142
## Example 5 - Use secrets with vals backend
143
143
``` yaml
144
144
- name : Deploy Helm
145
-
145
+
146
146
with :
147
147
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
148
148
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -157,10 +157,36 @@ The following inputs are available as `step.with` keys:
157
157
plugins : https://github.com/jkroepke/helm-secrets
158
158
` ` `
159
159
160
- ## Example 6 - Use with S3 as repo
160
+ ## Example 6 - Define multiple values
161
+
162
+ ` ` ` yaml
163
+ - name : Install Karpenter
164
+
165
+ with :
166
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
167
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
168
+ aws-region : ${{ vars.AWS_REGION }}
169
+ cluster-name : ${{ vars.CLUSTER_NAME }}
170
+ cluster-role-arn : ${{ secrets.AWS_ROLE_ARN }}
171
+ chart-repository : oci://public.ecr.aws
172
+ chart-path : karpenter/karpenter
173
+ helm-wait : true
174
+ namespace : karpenter
175
+ name : karpenter
176
+ values : |
177
+ settings.clusterName=${{ vars.CLUSTER_NAME }},
178
+ settings.interruptionQueue=${{ vars.CLUSTER_NAME }}-karpenter,
179
+ controller.resources.requests.cpu=1,
180
+ controller.resources.requests.memory=1Gi,
181
+ controller.resources.limits.cpu=1,
182
+ controller.resources.limits.memory=1Gi
183
+ version : 1.0.6
184
+ ` ` `
185
+
186
+ ## Example 7 - Use with S3 as repo
161
187
` ` ` yaml
162
188
- name : Deploy S3 Helm chart
163
-
189
+
164
190
with :
165
191
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
166
192
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -175,7 +201,7 @@ The following inputs are available as `step.with` keys:
175
201
` ` `
176
202
* See the [official AWS Guide](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/set-up-a-helm-v3-chart-repository-in-amazon-s3.html) on how to set this up.
177
203
178
- ## Example 7 - Use a different role in the Action than the role the cluster was built with
204
+ ## Example 8 - Use a different role in the Action than the role the cluster was built with
179
205
180
206
**action.yaml**
181
207
` ` ` yaml
@@ -185,40 +211,13 @@ The following inputs are available as `step.with` keys:
185
211
role-to-assume : arn:aws:iam::${{ env.aws-account-id }}:role/${{ env.aws-assume-role }}
186
212
aws-region : ${{ env.aws-region }}
187
213
- name : Install Helm Chart
188
-
214
+
189
215
with :
190
216
aws-region : ${{ env.aws-region }}
191
217
cluster-name : eks-cluster-${{ env.environment }}
192
218
... (put your other arguments here)
193
219
```
194
220
195
- ## Example 8 - Use a different role in the Action than the role the cluster was built with
196
-
197
- ** action.yaml**
198
- ``` yaml
199
- - name : Install Karpenter
200
- uses : bitovi/github-actions-deploy-eks-helm
201
- with :
202
- aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
203
- aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
204
- aws-region : ${{ vars.AWS_REGION }}
205
- cluster-name : ${{ vars.CLUSTER_NAME }}
206
- cluster-role-arn : ${{ secrets.AWS_ROLE_ARN }}
207
- chart-repository : oci://public.ecr.aws
208
- chart-path : karpenter/karpenter
209
- helm-wait : true
210
- namespace : karpenter
211
- name : karpenter
212
- values : |
213
- settings.clusterName=${{ vars.CLUSTER_NAME }},
214
- settings.interruptionQueue=${{ vars.CLUSTER_NAME }}-karpenter,
215
- controller.resources.requests.cpu=1,
216
- controller.resources.requests.memory=1Gi,
217
- controller.resources.limits.cpu=1,
218
- controller.resources.limits.memory=1Gi
219
- version : 1.0.6
220
- ` ` `
221
-
222
221
** terraform.tf**
223
222
``` yaml
224
223
... (surrounding code)
@@ -254,7 +253,7 @@ The following inputs are available as `step.with` keys:
254
253
255
254
``` yaml
256
255
- name : Deploy Helm
257
-
256
+
258
257
with :
259
258
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
260
259
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -269,7 +268,7 @@ The following inputs are available as `step.with` keys:
269
268
270
269
` ` ` yaml
271
270
- name : Deploy Helm
272
-
271
+
273
272
with :
274
273
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
275
274
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
0 commit comments