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 #127

Merged
merged 6 commits into from
Nov 26, 2024

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

@fibbs fibbs requested a review from aeciopires as a code owner November 25, 2024 13:54
Copy link
Member

@aeciopires aeciopires left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @fibbs!

@fibbs fibbs merged commit 0e8319f into zabbix-community:master Nov 26, 2024
1 check passed
@fibbs fibbs deleted the schema branch November 26, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants