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

Helm chart: add preinstall hook to env-configmap #9250

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

alafanechere
Copy link
Contributor

@alafanechere alafanechere commented Jan 3, 2022

What

The bootloader Pod requires value from the airbyte-env ConfigMap.
The bootloader has pre-install and pre-upgrade hooks but the airbyte-env doesn't. On a fresh install, the ConfigMap is missing when the bootloader starts.

How

  • Add pre-install and pre-upgrade hooks to airbyte-env ConfigMap
  • Define hook-weight annotation on airbyte-env and bootloader to make sure the ConfigMap is created before the bootloader pod runs.

This fix comes from a bug detected in this Slack conversion.

Recommended reading order

  1. charts/airbyte/templates/env-configmap.yaml
  2. charts/airbyte/templates/bootloader/pod.yaml

🚨 User Impact 🚨

No user impact.

@github-actions github-actions bot added area/platform issues related to the platform kubernetes labels Jan 3, 2022
@alafanechere alafanechere requested a review from davinchia January 3, 2022 16:18
@davinchia
Copy link
Contributor

Cool!

@alafanechere alafanechere merged commit b8c17f6 into master Jan 4, 2022
@alafanechere alafanechere deleted the augustin/helm/env-configmap-in-preinstall branch January 4, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform kubernetes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants