Skip to content

Commit

Permalink
Merge pull request #62 from boltops-tools/config-map-files-layering
Browse files Browse the repository at this point in the history
config map files: add Kubes.app txt layer
  • Loading branch information
tongueroo authored Feb 16, 2022
2 parents 1d62bcd + 07da555 commit 807794c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_docs/helpers/builtin/config-map-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Layering for Config Map Files and also supports app-scoped layers.
Name | Example
--- | ---
configmap root | .kubes/resources/shared/config_map/{base,dev}.txt
configmap app-scoped | .kubes/resources/shared/config_map/app1/{base,dev}.txt
configmap app file | .kubes/resources/shared/config_map/app1.txt
configmap app folder | .kubes/resources/shared/config_map/app1/{base,dev}.txt
So if `KUBES_APP=app1`, then the app-scoped layer is also used. This handles the [Central Deployer Pattern]({% link _docs/patterns/central-deployer.md %}).
1 change: 1 addition & 0 deletions lib/kubes/compiler/shared/helpers/config_map_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def config_map_files(options={})
]
if Kubes.app
layers += [
[shared_config_map, "#{Kubes.app}.txt"],
[shared_config_map, Kubes.app, "base.txt"],
[shared_config_map, Kubes.app, "#{Kubes.env}.txt"],
]
Expand Down

0 comments on commit 807794c

Please sign in to comment.