Skip to content

Commit a3d580f

Browse files
authored
feat: easy localstack integration (#635)
* feat: easy localstack integration * fix: template of template condition
1 parent 23c7074 commit a3d580f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

templates/helm/templates/deployment.yaml.tpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ spec:
5151
- "$(AWS_REGION)"
5252
- --aws-endpoint-url
5353
- "$(AWS_ENDPOINT_URL)"
54+
{{ "{{- if .Values.aws.identity_endpoint_url }}" }}
55+
- --aws-identity-endpoint-url
56+
- "$(AWS_IDENTITY_ENDPOINT_URL)"
57+
{{ "{{- end }}" }}
58+
{{ "{{- if .Values.aws.allow_unsafe_aws_endpoint_urls }}" }}
59+
- --allow-unsafe-aws-endpoint-urls
60+
{{ "{{- end }}" }}
5461
{{ "{{- if .Values.log.enable_development_logging }}" }}
5562
- --enable-development-logging
5663
{{ "{{- end }}" }}
@@ -109,6 +116,8 @@ spec:
109116
value: {{ "{{ .Values.aws.region }}" }}
110117
- name: AWS_ENDPOINT_URL
111118
value: {{ "{{ .Values.aws.endpoint_url | quote }}" }}
119+
- name: AWS_IDENTITY_ENDPOINT_URL
120+
value: {{ "{{ .Values.aws.identity_endpoint_url | quote }}" }}
112121
- name: ACK_WATCH_NAMESPACE
113122
value: {{ IncludeTemplate "watch-namespace" }}
114123
- name: ACK_WATCH_SELECTORS

templates/helm/values.schema.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,16 @@
171171
"region": {
172172
"type": "string"
173173
},
174-
"endpoint": {
174+
"endpoint_url": {
175175
"type": "string"
176176
},
177+
"identity_endpoint_url": {
178+
"type": "string"
179+
},
180+
"allow_unsafe_aws_endpoint_urls": {
181+
"type": "boolean",
182+
"default": false
183+
},
177184
"credentials": {
178185
"description": "AWS credentials information",
179186
"properties": {

templates/helm/values.yaml.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ aws:
9090
# If specified, use the AWS region for AWS API calls
9191
region: ""
9292
endpoint_url: ""
93+
identity_endpoint_url: ""
94+
allow_unsafe_aws_endpoint_urls: false
9395
credentials:
9496
# If specified, Secret with shared credentials file to use.
9597
secretName: ""

0 commit comments

Comments
 (0)