-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orchestrator Configmap Override (#33)
**Description** This adds the ability to use a custom configmap instead of the baseConfig and customConfig in the values files. This allows passing in templated values (Ex: `{{ printf "{{ env.TEST_ENV_VAR}}" }}` ) to the orchestrator without having to do any escaping. Example of using a custom configmap ``` customConfig: useCustomConfigMap: name: orch-configmap-custom ``` Example of generating a configmap from a custom config yaml file. `kubectl create configmap orch-configmap-custom --from-file=maverics.yaml=customConfig.yaml` Example customConfig.yaml ``` version: 0.0.3 logger: level: debug http: address: {{ env.MAVERICS_HTTP_ADDRESS}} ``` **Testing** Tested locally using `helm template` to validate the output is as expected under different scenarios of values. **Scenario 1** useCustomConfigMap defined ``` customConfig: useCustomConfigMap: name: orch-configmap-custom ``` Results in ``` volumes: - name: orchestrator-config configMap: name: orch-configmap-custom ``` **Scenario 2** customConfig defined ``` customConfig: version: 0.0.3 logger: level: debug ``` Results in ``` volumes: - name: orchestrator-config configMap: name: release-name-orchestrator-config ``` **Scenario 3** No customConfig defined Results in ``` volumes: - name: orchestrator-config configMap: name: release-name-orchestrator-config ``` **Documentation** No additional documentation added. --------- Signed-off-by: Andrew Dunn <[email protected]>
- Loading branch information
Showing
9 changed files
with
64 additions
and
5 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
12 changes: 12 additions & 0 deletions
12
charts/orchestrator/example-values/minimal-orchestrator-custom-configmap.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 @@ | ||
image: | ||
repository: alpine | ||
pullPolicy: IfNotPresent | ||
# Overrides the image tag whose default is the chart appVersion. | ||
tag: latest | ||
|
||
replicaCount: 1 | ||
|
||
orchestrator: | ||
# The name of the ConfigMap to use for the custom Maverics Orchestrator configuration. | ||
# If defined, it will be used instead of the baseConfig and customConfig. | ||
customConfigMapName: mycustomconfig |
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