-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EthAdapter 0.4.1 - Checkov fixes (#24)
* ethadapter: do not mount serviceToken by default * ethadapter: version bump * doc version bump and fix repo name * option to specify the image digest * test for sha * test for automountServiceAccountToken * Cleanup tests
- Loading branch information
Showing
9 changed files
with
80 additions
and
19 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
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
21 changes: 21 additions & 0 deletions
21
charts/ethadapter/tests/deployment_automountServiceAccountToken.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,21 @@ | ||
suite: test deployment with automountServiceAccountToken enabled | ||
templates: | ||
- deployment.yaml | ||
- configmap.yaml | ||
- secret.yaml | ||
tests: | ||
- it: should work | ||
set: | ||
config: | ||
rpcAddress: "rpcAddress_value" | ||
smartContractAddress: "smartContractAddress_value" | ||
smartContractAbi: "smartContractAbi_value" | ||
secrets: | ||
orgAccountJson: "{ \"key\": \"value\" }" | ||
serviceAccount: | ||
automountServiceAccountToken: true | ||
asserts: | ||
- template: deployment.yaml | ||
equal: | ||
path: spec.template.spec.automountServiceAccountToken | ||
value: true |
23 changes: 23 additions & 0 deletions
23
charts/ethadapter/tests/deployment_custom_image_and_sha_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,23 @@ | ||
suite: test deployment with an custom image and sha | ||
templates: | ||
- deployment.yaml | ||
- configmap.yaml | ||
- secret.yaml | ||
tests: | ||
- it: should work | ||
set: | ||
config: | ||
rpcAddress: "rpcAddress_value" | ||
smartContractAddress: "smartContractAddress_value" | ||
smartContractAbi: "smartContractAbi_value" | ||
secrets: | ||
orgAccountJson: "{ \"key\": \"value\" }" | ||
image: | ||
repository: custom_repository | ||
tag: "custom_tag" | ||
sha: "custom_sha" | ||
asserts: | ||
- template: deployment.yaml | ||
equal: | ||
path: spec.template.spec.containers[0].image | ||
value: custom_repository:custom_tag@sha256:custom_sha |
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