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

Load PostgreSQL connection configuration from K8s secret #112

Merged
merged 7 commits into from
Apr 30, 2024

Conversation

stone-z
Copy link
Contributor

@stone-z stone-z commented Apr 25, 2024

To better support PostgreSQL instances managed outside this chart, it would be helpful if the server could read connection information from a secret in the cluster instead of requiring it to be supplied through Helm values.

This PR modifies the deployment so that values will be used from the named Secret, if one is supplied, and will use the Helm values if no Secret name is given.

Signed-off-by: Zach Stone <zach@giantswarm.io>
Signed-off-by: Zach Stone <zach@giantswarm.io>
Signed-off-by: Zach Stone <zach@giantswarm.io>
Signed-off-by: Zach Stone <zach@giantswarm.io>
Signed-off-by: Zach Stone <zach@giantswarm.io>
Signed-off-by: Zach Stone <zach@giantswarm.io>
@stone-z
Copy link
Contributor Author

stone-z commented Apr 30, 2024

cc @vishal-chdhry

@vishal-chdhry
Copy link
Member

thanks @stone-z !

Signed-off-by: Zach Stone <zach@giantswarm.io>
@stone-z
Copy link
Contributor Author

stone-z commented Apr 30, 2024

I think the codecov failure is unrelated (?) since it is being rate limited. Or maybe external PRs don't have the token injected?

@vishal-chdhry
Copy link
Member

yep that looks unrelated to me

@vishal-chdhry vishal-chdhry merged commit f97f31a into kyverno:main Apr 30, 2024
18 of 19 checks passed
@stone-z stone-z deleted the psql-pw branch April 30, 2024 16:20
stone-z added a commit to giantswarm/reports-server-upstream that referenced this pull request Jul 4, 2024
* Create sync-from-upstream.yaml

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Update sync-from-upstream.yaml

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Allow loading Postgres config from secret

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Remove GS workflow (#1)

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Update README

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Use genreic "DB" instead of PG-specific references

Signed-off-by: Zach Stone <zach@giantswarm.io>

* Fix codegen-ed README

Signed-off-by: Zach Stone <zach@giantswarm.io>

---------

Signed-off-by: Zach Stone <zach@giantswarm.io>
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

Successfully merging this pull request may close these issues.

2 participants