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

Make unifiedSecret keys configurable, support setting of non-"public" Postgres Schema #126

Closed
wants to merge 8 commits into from

Conversation

fibbs
Copy link
Contributor

@fibbs fibbs commented Nov 25, 2024

Instead of hardcoding the keys for the "unifiedSecret" to access the Postgresql database, I have made all of them configurable, to also work with possible other database operators other than CNPG and PGO, and any already existing secret containing database connection related settings. Due to the newly introduced values, there is no blocking change for existing users, as I do default back to the formerly hardcoded keys.

Additionally to that, I have made the postgresql "schema" configurable, for both methods using the unified secret or supplying the database related configuration settings directly in values.yaml. The support of a schema other than "public" is only available when .Values.postgresql.enabled is set to false, meaning an external (already existing) database is being used. The reason for that is that the official postgres image does not support setting a schema, so it doesn't make sense to have it configured for Zabbix in such a setup, either.

I have done tests with and without native Zabbix Server High Availability enabled and made sure the schema setting works in both cases.

Which issue this PR fixes

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md

Christian Anton added 8 commits November 18, 2024 20:34
@fibbs fibbs requested a review from aeciopires as a code owner November 25, 2024 13:46
@fibbs fibbs closed this Nov 25, 2024
@fibbs fibbs deleted the sql_schema branch November 25, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant