Add helm hook to job-rabbitmq-init of masakari

- Fix that masakari helm hook is not being applied.

story: 2011034
task: 49522
Change-Id: Ibd1b5e97e8abf5f0fbab219226500f03e17d015c
This commit is contained in:
do-gyun 2024-02-05 11:33:58 +09:00 committed by do-gyun kim
parent 3e203c68fa
commit b5d247ed0e
3 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Masakari
name: masakari
version: 0.1.7
version: 0.1.8
home: https://docs.openstack.org/developer/masakari
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Masakari/OpenStack_Project_masakari_vertical.png
sources:

View File

@ -12,7 +12,15 @@ See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- define "metadata.annotations.job.rabbit_init" }}
helm.sh/hook: post-install,post-upgrade
helm.sh/hook-weight: "-4"
{{- end }}
{{- if .Values.manifests.job_rabbit_init }}
{{- $rmqUserJob := dict "envAll" . "serviceName" "masakari" -}}
{{- if .Values.helm3_hook }}
{{- $_ := set $rmqUserJob "jobAnnotations" (include "metadata.annotations.job.rabbit_init" . | fromYaml) }}
{{- end }}
{{ $rmqUserJob | include "helm-toolkit.manifests.job_rabbit_init" }}
{{- end }}

View File

@ -8,4 +8,5 @@ masakari:
- 0.1.5 Added OCI registry authentication
- 0.1.6 Use HTTP probe instead of TCP probe
- 0.1.7 Define service_type in keystone_authtoken to support application credentials with access rules
- 0.1.8 Add helm hook to jobs-rabbitmq-init
...