Skip to content

Commit

Permalink
(#120) Fix NATS target namespace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeffmccune committed Apr 11, 2024
1 parent df705bd commit 2954a57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/embedded/patch
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3
4

0 comments on commit 2954a57

Please sign in to comment.