Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Add unique name to bootstrap jobs #40

Merged
merged 3 commits into from
Jun 23, 2022
Merged

Add unique name to bootstrap jobs #40

merged 3 commits into from
Jun 23, 2022

Conversation

izaaklauer
Copy link
Contributor

Prior to this, upgrades would fail attempting to modify the spec.template of the bootstrap job. Job templates in kubernetes are immutable.

The workaround here is to add a random string to the job name, creating a new job per helm install. This has the downside of leaving around jobs from previous installations.

Example pod name after this change:

$ kubectl get jobs
NAME                              COMPLETIONS   DURATION   AGE
waypoint-bootstrap-0.8.2-acdcig   0/1           2s         2s

@izaaklauer izaaklauer merged commit d2f6de6 into main Jun 23, 2022
@izaaklauer izaaklauer deleted the bootstrap-job-name branch June 23, 2022 15:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants