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

Convert db init/upgrade job: pre-install/pre-upgrade #142

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

fibbs
Copy link
Contributor

@fibbs fibbs commented Dec 30, 2024

Because of some reported issues with ArgoCD or helm using the --wait flag, a change in the way the initialization job for database access and schema works has been implemented:

  • job is now of type pre-install / pre-upgrade
  • changed to use Kubernetes API access only when upgrading (otherwise serviceAccount would not be available)
  • migrated the images needed for the job + for the HA labels sidecar to be residing in Github Repos inside this same organization (from a private Gitlab) and images being built with Github Actions
  • removed the init containers waiting for database access, these are not needed anymore due to the "pre-install/pre-upgrade" approach

Which issue this PR fixes

Special notes for your reviewer:

Checklist

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

  • DCO signed
  • Variables are documented in values.yaml with Helm-Docs comments, as we build README.md using this utility

Because of some reported issues with ArgoCD or helm using the `--wait`
flag, a change in the way the initialization job for database access and
schema works has been implemented:

- job is now of type pre-install / pre-upgrade
- changed to use Kubernetes API access only when upgrading (otherwise
  serviceAccount would not be available)
- migrated the images needed for the job + for the HA labels sidecar to
  be residing in Github Repos inside this same organization (from a
  private Gitlab) and images being built with Github Actions
- removed the init containers waiting for database access, these are not
  needed anymore due to the "pre-install/pre-upgrade" approach
@fibbs fibbs requested a review from aeciopires as a code owner December 30, 2024 23:18
@aeciopires aeciopires added bug Something isn't working enhancement New feature or request labels Dec 30, 2024
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.

Awesome @fibbs!

@aeciopires aeciopires added the documentation Improvements or additions to documentation label Dec 30, 2024
@fibbs
Copy link
Contributor Author

fibbs commented Dec 31, 2024

I'll merge this one now. Let's wait a little bit until we have #141 fixed as well. I'll going to look into it right now.

@fibbs fibbs merged commit 1d16b7f into zabbix-community:main Dec 31, 2024
1 check passed
@fibbs fibbs deleted the pre-job branch December 31, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants