-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into revert-previous-change-remove-service-port…
…-override
- Loading branch information
Showing
10 changed files
with
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ type: application | |
|
||
# Helm chart Version | ||
|
||
version: 2.1.12 | ||
version: 2.1.13 | ||
|
||
|
||
keywords: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
suite: CronJob | ||
|
||
templates: | ||
- cronjob.yaml | ||
|
||
tests: | ||
- it: does not fail rendering when job image tag and digest are absent | ||
set: | ||
cronJob: | ||
enabled: true | ||
jobs: | ||
example: | ||
image: | ||
repository: example-image | ||
tag: "" | ||
digest: "" | ||
asserts: | ||
- equal: | ||
path: spec.jobTemplate.spec.template.spec.containers[0].image | ||
value: example-image | ||
|
||
- it: fails rendering when job image repository is not given | ||
set: | ||
cronJob: | ||
enabled: true | ||
jobs: | ||
example: | ||
image: | ||
repository: "" | ||
tag: doesnt | ||
digest: matter | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: "Undefined image repo for container 'example'" | ||
|
||
- it: uses tag when defined | ||
set: | ||
cronJob: | ||
enabled: true | ||
jobs: | ||
example: | ||
image: | ||
repository: example-image | ||
tag: example-tag | ||
digest: "" | ||
asserts: | ||
- equal: | ||
path: spec.jobTemplate.spec.template.spec.containers[0].image | ||
value: example-image:example-tag | ||
|
||
- it: uses digest when defined | ||
set: | ||
cronJob: | ||
enabled: true | ||
jobs: | ||
example: | ||
image: | ||
repository: example-image | ||
tag: "" | ||
digest: sha256:example-digest | ||
asserts: | ||
- equal: | ||
path: spec.jobTemplate.spec.template.spec.containers[0].image | ||
value: example-image@sha256:example-digest | ||
|
||
- it: uses both tag and digest when given both | ||
set: | ||
cronJob: | ||
enabled: true | ||
jobs: | ||
example: | ||
image: | ||
repository: example-image | ||
tag: example-tag | ||
digest: sha256:example-digest | ||
asserts: | ||
- equal: | ||
path: spec.jobTemplate.spec.template.spec.containers[0].image | ||
value: example-image:example-tag@sha256:example-digest |
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