-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): updated funcs, tests
- Loading branch information
1 parent
0fe5ba1
commit 6bebbef
Showing
21 changed files
with
1,365 additions
and
490 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,35 +1 @@ | ||
|
||
# constants = place to define non-changing values that can be of any type | ||
# I think stuff here probably shouldn't be set by env vars - it's hard to be deterministic because of the character set differences, also type differences could lead to weird side effects | ||
# Another note about this - we could probably easily pull in values of child components if this was referenced from a system-level - so this kind of behaves a bit like help values.yaml | ||
constants: | ||
# map[string]interface{} - elements referenced via template as {{ .const.key }} | ||
type: software | ||
title: lula | ||
# Sample: Istio-specific values | ||
istio: | ||
namespace: istio-system # overriden by --set const.istio.namespace=my-istio-namespace | ||
resources: | ||
jsoncm: configmaps # (NOT) overriden by LULA_VAR_RESOURCES_JSONCM | ||
# Problem with this is that json-cm and json_cm are different yaml keys, but would possibly reconcile to the same thing... so you're getting some side effects here that aren't great. | ||
yamlcm: configmaps | ||
secret: secrets | ||
pod: pods | ||
boolean: false # (NOT) overriden by LULA_VAR_RESOURCES_BOOLEAN | ||
# ok how does this work when they're different types? an env var will always be a string... | ||
exemptions: | ||
- one | ||
- two | ||
- three | ||
|
||
# variables = place to define changing values of string type, and optionally sensitive values | ||
variables: | ||
- key: some_lula_secret # set by LULA_VAR_SOME_LULA_SECRET / overriden by --set var.some_lula_secret=my-secret | ||
default: blahblah # optional | ||
sensitive: true # {{ var.some_lula_secret | mask }} | ||
- key: some_env_var | ||
default: this-should-be-overridden | ||
|
||
# Lula config values, still accessible via LULA_*, where * is the key | ||
log_level: info | ||
target: il5 | ||
log_level: info |
Oops, something went wrong.