Skip to content

Question: what is the appropriate way to store config information #89

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

Open
swright-eti opened this issue Dec 2, 2022 · 8 comments
Open
Labels
enhancement New feature or request

Comments

@swright-eti
Copy link

I have an app that I will be deploying to multiple environments. What is the best way to store config information like hostnames, etc.? I see that I could use Temporary State, but that seems a little clunky. am I missing something?

P.S. this is a fantastic tool.

@neon-balcony
Copy link
Contributor

Hi @swright-eti,

Thanks for the post, just to make sure we're on the same page, could you please elaborate your scenario on "config information like hostnames, etc." and its relationship with "multiple environments"?

@neon-balcony neon-balcony added the question Further information is requested label Dec 2, 2022
@swright-eti
Copy link
Author

When the app is running on environment A then the URLs for the REST API calls need to use hostname X
When the app is running on environment B then the URLs for the REST API calls need to use hostname Y

I want to be able to define the variable for {{hostname}}

https://{{hostname}}/auth/realms/master/protocol/openid-connect/token

@neon-balcony
Copy link
Contributor

By talking about environment A & B, they are physically separated docker instances?

@swright-eti
Copy link
Author

swright-eti commented Dec 2, 2022

Complete separated. Will be running in different Kubernetes clusters.

@neon-balcony
Copy link
Contributor

Okay got it, currently you have to declare your REST API with difference hostname on each environment instance. And for each instance, this hostname can be declared only once.
image

But I assume that you would like to have something like a global instance config (maybe passed by docker environment settings)?

@swright-eti
Copy link
Author

Configuring from Docker environment variables would be useful, but it should be scoped to each application. That way we could setup a Helm chart for each environment and pass in values to the pod/container at deploy time.

@neon-balcony
Copy link
Contributor

Got it, I would summarize this feature as "global environment variables for self-hosted instances".

I've added that to our backlog, again, thanks for reporting this issue!

@neon-balcony neon-balcony added enhancement New feature or request and removed question Further information is requested labels Dec 2, 2022
@swright-eti
Copy link
Author

Perfect. Thanks so much for the quick response.

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

No branches or pull requests

2 participants