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

Abstract common sink values #10

Open
chrisjohnson opened this issue Jan 9, 2020 · 0 comments
Open

Abstract common sink values #10

chrisjohnson opened this issue Jan 9, 2020 · 0 comments

Comments

@chrisjohnson
Copy link
Contributor

chrisjohnson commented Jan 9, 2020

Being able to abstract some common sink values (like vaultBaseURL) seems handy when defining multiple sinks.

I had the thought to add some sinkDefaults key and then the configparser would just merge it into each sink. However I'm wondering if the golang yaml lib we are using supports yaml anchors out of the box. That would let us do something like this:

defaults: &defaults
  vaultBaseURL: https://cjohnson-kv.vault.azure.net

sinks:
 - <<: *defaults
  name: test
  etc: whatever

(or whatever the syntax is)

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

1 participant