hashicorp / waypoint-helm

Helm chart to install Waypoint and other associated components.
Mozilla Public License 2.0
29 stars 14 forks source link

Add unique name to bootstrap jobs #40

Closed izaaklauer closed 2 years ago

izaaklauer commented 2 years ago

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