-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow helm overrides from valuesfile (#594)
Co-authored-by: UncleGedd <42304551+UncleGedd@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
204 additions
and
16 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
44 changes: 44 additions & 0 deletions
44
src/test/bundles/07-helm-overrides/values-file/uds-bundle.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,44 @@ | ||
kind: UDSBundle | ||
metadata: | ||
name: helm-values-file | ||
description: testing a bundle with Helm overrides | ||
version: 0.0.1 | ||
|
||
packages: | ||
- name: helm-overrides | ||
path: "../../../packages/helm" | ||
ref: 0.0.1 | ||
|
||
overrides: | ||
podinfo-component: | ||
unicorn-podinfo: | ||
valuesFiles: | ||
- values.yaml | ||
- values2.yaml | ||
values: | ||
- path: "podinfo.replicaCount" | ||
value: 2 | ||
variables: | ||
- name: log_level | ||
path: "podinfo.logLevel" | ||
description: "Set the log level for podinfo" | ||
default: "debug" # not overwritten! | ||
- name: ui_color | ||
path: "podinfo.ui.color" | ||
description: "Set the color for podinfo's UI" | ||
default: "blue" | ||
- name: UI_MSG | ||
path: "podinfo.ui.message" | ||
description: "Set the message for podinfo's UI" | ||
- name: SECRET_VAL | ||
path: "testSecret" | ||
description: "testing a secret value" | ||
- name: SECURITY_CTX | ||
path: "podinfo.securityContext" | ||
description: "testing an object" | ||
default: | ||
runAsUser: 1000 | ||
runAsGroup: 3000 | ||
- name: HOSTS | ||
path: "podinfo.ingress.hosts" | ||
description: "just testing a a list of objects (doesn't actually do ingress things)" |
12 changes: 12 additions & 0 deletions
12
src/test/bundles/07-helm-overrides/values-file/values.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,12 @@ | ||
podinfo.replicaCount: 3 | ||
podinfo.tolerations: | ||
- key: "unicorn" | ||
operator: "Equal" | ||
value: "defense" | ||
effect: "NoSchedule" | ||
- key: "uds" | ||
operator: "Equal" | ||
value: "true" | ||
effect: "NoSchedule" | ||
podinfo.podAnnotations: | ||
customAnnotation: "customValue" |
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,3 @@ | ||
podinfo.replicaCount: 4 | ||
podinfo.podAnnotations: | ||
customAnnotation: "customValue2" |
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