openstack-armada-app/openstack-helm-infra/files/0025-Update-templates-syntax-for-fluxcd-helm-v3.patch
Thales Elero Cervi 3d8844ef7e Making mariadb (osh-i) char helm v3 compatible
The patch added by this change will make openstack-helm-infra
mariadb chart syntax compatible with FluxCD (helmv3).
Tests done with osh-i charts as they were used on our armada app
failed with helm release render errors.

Test Plan:
PASS - build-helm-charts.sh builds a basic FluxCD and a complete Armada
       app tarball
PASS - application upload and overrides generated
PASS - application apply/remove/delete

Closes-Bug: 1987705

Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Change-Id: Ie26ebd10833e797652e24d4736d15d8c89cba1e4
2022-08-29 11:44:32 -03:00

30 lines
1.6 KiB
Diff

From cd93bff5ca808e5a58c10f5f7e9b882357188923 Mon Sep 17 00:00:00 2001
From: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Date: Mon, 8 Aug 2022 16:42:03 -0300
Subject: [PATCH] Update templates syntax for fluxcd helm v3
The code changes here are needed in order for the stx-openstack
application to work after the FluxCD migration.
Some parsing/rendering differences were noticed between
Armada (helmv2) and FluxCD (helmv3).
Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
---
mariadb/templates/configmap-services-tcp.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mariadb/templates/configmap-services-tcp.yaml b/mariadb/templates/configmap-services-tcp.yaml
index 5b3a7afd..0cd6cb1e 100644
--- a/mariadb/templates/configmap-services-tcp.yaml
+++ b/mariadb/templates/configmap-services-tcp.yaml
@@ -20,5 +20,5 @@ kind: ConfigMap
metadata:
name: mariadb-services-tcp
data:
- {{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}: "{{ .Release.Namespace }}/{{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}:{{ tuple "oslo_db" "direct" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}"
+ {{ tuple "oslo_db" "internal" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}: "{{ .Release.Namespace }}/{{ tuple "oslo_db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}:{{ tuple "oslo_db" "direct" "mysql" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}"
{{- end }}
--
2.25.1