From 2954a57872a18d21ebe5c14c44537cd0d0e3c799 Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Wed, 10 Apr 2024 21:50:55 -0700 Subject: [PATCH] (#120) Fix NATS target namespace The upstream nats charts don't specify namespaces for each attribute. This works with helm update, but not helm template which holos uses to render the yaml. The missing namespace causes flux to fail. This patch uses the flux kustomization to add the target namespace to all resources. --- .../platforms/reference/clusters/holos/nats/envs/nats.cue | 8 ++++++-- pkg/version/embedded/patch | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/examples/platforms/reference/clusters/holos/nats/envs/nats.cue b/docs/examples/platforms/reference/clusters/holos/nats/envs/nats.cue index 3b7fe441..dd4cf346 100644 --- a/docs/examples/platforms/reference/clusters/holos/nats/envs/nats.cue +++ b/docs/examples/platforms/reference/clusters/holos/nats/envs/nats.cue @@ -4,10 +4,14 @@ package holos // spec: components: resources: (#ProjectTemplate & {project: Project}).workload.resources // } +let Namespace = "jeff-holos" + +#Kustomization: spec: targetNamespace: Namespace + spec: components: HelmChartList: [ #HelmChart & { metadata: name: "jeff-holos-nats" - namespace: "jeff-holos" + namespace: Namespace _dependsOn: "prod-secrets-stores": _ chart: { name: "nats" @@ -17,7 +21,7 @@ spec: components: HelmChartList: [ }, #HelmChart & { metadata: name: "jeff-holos-nack" - namespace: "jeff-holos" + namespace: Namespace _dependsOn: "jeff-holos-nats": _ chart: { name: "nack" diff --git a/pkg/version/embedded/patch b/pkg/version/embedded/patch index 00750edc..b8626c4c 100644 --- a/pkg/version/embedded/patch +++ b/pkg/version/embedded/patch @@ -1 +1 @@ -3 +4