From f42e74a309c8b6a076627f4990da8811b2dc4888 Mon Sep 17 00:00:00 2001
From: josebb <jose.bautista.barato@gmail.com>
Date: Fri, 10 Dec 2021 12:28:33 +0200
Subject: [PATCH] Change helm hook weight of bootstrap job in heat

All deployments have bootstrap job as a static dependency in the default value.
The current weight 5 is not proper.

Change-Id: Ic2dccb049f74e6eb971bc8ea947e4ee9baee3237
---
 heat/Chart.yaml                   | 2 +-
 heat/templates/job-bootstrap.yaml | 1 -
 releasenotes/notes/heat.yaml      | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/heat/Chart.yaml b/heat/Chart.yaml
index 691706dd6e..ea11b534ae 100644
--- a/heat/Chart.yaml
+++ b/heat/Chart.yaml
@@ -14,7 +14,7 @@ apiVersion: v1
 appVersion: v1.0.0
 description: OpenStack-Helm Heat
 name: heat
-version: 0.2.17
+version: 0.2.18
 home: https://docs.openstack.org/heat/latest/
 icon: https://www.openstack.org/themes/openstack/images/project-mascots/Heat/OpenStack_Project_Heat_vertical.png
 sources:
diff --git a/heat/templates/job-bootstrap.yaml b/heat/templates/job-bootstrap.yaml
index 0230a2ac2c..e5157dae8e 100644
--- a/heat/templates/job-bootstrap.yaml
+++ b/heat/templates/job-bootstrap.yaml
@@ -14,7 +14,6 @@ limitations under the License.
 
 {{- define "metadata.annotations.job.bootstrap" }}
 helm.sh/hook: post-install,post-upgrade
-helm.sh/hook-weight: "5"
 {{- end }}
 
 {{- if and .Values.manifests.job_bootstrap .Values.bootstrap.enabled }}
diff --git a/releasenotes/notes/heat.yaml b/releasenotes/notes/heat.yaml
index f07ea2b342..5de5204e9d 100644
--- a/releasenotes/notes/heat.yaml
+++ b/releasenotes/notes/heat.yaml
@@ -24,4 +24,5 @@ heat:
   - 0.2.15 Distinguish between port number of internal endpoint and binding port number
   - 0.2.16 Support TLS endpoints
   - 0.2.17 Use HTTP probe instead of TCP probe
+  - 0.2.18 Change hook weight for bootstrap job
 ...