-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#28 Change credentials for LocalStack between environments without re…
…plicating all of my environment properties
- Loading branch information
1 parent
23afe50
commit 2711083
Showing
40 changed files
with
1,896 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
extensions/extensions-helm/aissemble-localstack-chart/templates/credential-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{- if .Values.credentialSecret.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.credentialSecret.name }} | ||
stringData: | ||
AWS_ACCESS_KEY_ID: "123" | ||
AWS_SECRET_ACCESS_KEY: "456" | ||
{{- end }} |
34 changes: 34 additions & 0 deletions
34
extensions/extensions-helm/aissemble-localstack-chart/tests/credential_secret_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
suite: localstack | ||
templates: | ||
- credential-secret.yaml | ||
tests: | ||
- it: Should contain correct default values when enabled | ||
asserts: | ||
- isKind: | ||
of: Secret | ||
- equal: | ||
path: metadata.name | ||
value: remote-auth-config | ||
- equal: | ||
path: stringData.AWS_ACCESS_KEY_ID | ||
value: "123" | ||
- equal: | ||
path: stringData.AWS_SECRET_ACCESS_KEY | ||
value: "456" | ||
- it: Should be able to set the secret name | ||
set: | ||
credentialSecret: | ||
name: test-name | ||
asserts: | ||
- isKind: | ||
of: Secret | ||
- equal: | ||
path: metadata.name | ||
value: test-name | ||
- it: Should not exist when disabled | ||
set: | ||
credentialSecret: | ||
enabled: false | ||
asserts: | ||
- hasDocuments: | ||
count: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.