Skip to content

Multiple ConfigurationKey for Consul Store KV #384

Closed

Description

@Stronhold

I would like to know if there can bemultiple configuration keys to access different configuration files in KV Store or if I can match them using a pattern like it is done in issue 296

Activity

  1. TomPallister commented on Jun 8, 2018

    @TomPallister
    Member

    Hi @Stronhold please see docs here this might help!

  2. added
    question
    on Jun 8, 2018
  3. Stronhold commented on Jun 8, 2018

    @Stronhold
    Author

    Hi,

    I checked that before. As i Saw, there would be only one configurationkey at the same time or am I wrong?

    Thanks in advance

  4. TomPallister commented on Jun 8, 2018

    @TomPallister
    Member

    @Stronhold you can one key per deployment of Ocelot. You cannot merge multiple configurations from Consul at the moment. If you would like to implement this I can support you! 😄

    edited: please ignore initial comment.

  5. Stronhold commented on Jun 8, 2018

    @Stronhold
    Author

    That was the point! Any help would be appreciated.
    Morover, i would like yo know if when we use the administration API, the config.json file, could be overwritten? As far as I have tested, this does not happen

    Thanks in advance!

  6. TomPallister commented on Jun 9, 2018

    @TomPallister
    Member

    @Stronhold are you using admin api with consul storing your configuration? If so the json file is not changed. If you are not using consul then it will be changed.

  7. Stronhold commented on Jun 9, 2018

    @Stronhold
    Author

    Nope. The idea would be using multiple configurationkey and use consul to have the routes. Through the administration API chance the config.json.

    Any support to have multiple configurationkey is appreciated :)

  8. TomPallister commented on Jun 10, 2018

    @TomPallister
    Member

    Sorry @Stronhold I am very confused by what it is you want to implement. Please could you add as much detail as possible so I can understand.

  9. Stronhold commented on Jun 10, 2018

    @Stronhold
    Author

    I want to be able to have múltiple configurationkey to access to different consul configurations and merge them

  10. added
    feature
    help wanted
    good first issue
    medium effort
    and removed
    question
    on Jun 13, 2018
  11. TomPallister commented on Jun 13, 2018

    @TomPallister
    Member

    this feature implement config merging for consul, same logic we use for file merging but applied to consul. put abstraction around logic so we can use same for both concrete implementations.

  12. added a commit that references this issue on Sep 10, 2019
  13. marrop commented on Aug 17, 2020

    @marrop

    This might be slightly off topic but here goes. Is it possible via Ocelot to read a consul value from Consul's Key/Value store? Or is the only value one may read from Consul the configuration ("InternalConfiguration" or set by "GlobalConfiguration/ConfigurationKey"?)

  14. raman-m commented on Nov 29, 2023

    @raman-m
    Member

    @ggnaegi What is your opinion on this crazy idea with the Consul config? 😄

  15. added
    wontfix
    on Nov 29, 2023
  16. ggnaegi commented on Nov 29, 2023

    @ggnaegi
    Collaborator

    @ggnaegi What is your opinion on this crazy idea with the Consul config? 😄

    I think it would be a nice addition, at least provide a custom key for the ocelot config stored in key/value store.

    But then merge config... Like appsettings?

  17. raman-m commented on Nov 29, 2023

    @raman-m
    Member

    @Stronhold Dear Sergio!
    Your request confuses all parties including Tom.
    What is your user scenario?

    Also, I see that your repos have no Ocelot forked repo.
    So, forked Ocelot repo doesn't exist in your account!
    I would say you violated Ocelot development process which says: discuss -> issue -> PR.
    But working on an issue means you have to fork Ocelot repo.
    🆗 First fork, then request...
    You have a right to reopen the issue in future.

  18. raman-m commented on Nov 29, 2023

    @raman-m
    Member

    @ggnaegi

    But then merge config... Like appsettings?

    I have no idea... We need to ask the author.
    But it makes sense to convert this issue to Idea discussion... 😉

  19. locked and limited conversation to collaborators on Nov 29, 2023
  20. converted this issue into a discussion #1813 on Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuregood first issuehelp wantedmedium effortwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions