Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add merge policy to configs #2

Open
mumoshu opened this issue Apr 2, 2020 · 1 comment
Open

Add merge policy to configs #2

mumoshu opened this issue Apr 2, 2020 · 1 comment

Comments

@mumoshu
Copy link
Owner

mumoshu commented Apr 2, 2020

This would allow us to fine-tune how a source file is merged into the final result:

job "config view" {
  config "foo" {
    source file {
      path = "${context.sourcedir}/conf/defaults.yaml"
      default = ""
    }

    source file {
      path = "${context.sourcedir}/conf/${opt.env}.yaml"
      merge_policy = "override_with_nil"
    }
@osterman
Copy link

osterman commented Oct 8, 2020

Also relates to #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants