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

Is it possible to embed ConfigEntry entries? #70

Open
mrigesh opened this issue Nov 12, 2022 · 0 comments
Open

Is it possible to embed ConfigEntry entries? #70

mrigesh opened this issue Nov 12, 2022 · 0 comments

Comments

@mrigesh
Copy link

mrigesh commented Nov 12, 2022

Assuming that I have the following ConfigEntry entries defined in boot.yaml, would it be possible to pass a flag, eg, embed:true so that the config entries can be embedded.

config:
    - name: config1
      path: "/some/directory/config1.yaml"
    - name: config2
      content:
          a: b
          c: d

Can this section have embed as a flag such that the configuration would look like below and the configuration is embedded depending on the value of the flag.

config:
    - name: config1
      path: "/some/directory/config1.yaml"
      embed: true
    - name: config2
      content:
          a: b
          c: d
      embed: true

Going through the code, I can see that there already exists a Method to set and get embedded configurations, but that has to be done manually out of the ConfigEntry scope, I hope I'm not wrong here.

The end goal here would be where rkentry.GlobalAppCtx.GetConfigEntry(name), given name=config1 and config1 being embedded, we would be able to fetch the configuration from the same method.

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