Skip to content

Conversation

@on2e
Copy link

@on2e on2e commented Apr 3, 2025

Setting the namespace of the OpenProject Helm chart with helm template is not possible since the OP namespaced resources have no templated namespace properties. If you run:

$ cd charts/openproject
$ helm template myrelease -n myns . 2>/dev/null | grep namespace: | wc -l
8

you will notice that only the PostgreSQL and Memcached subchart resources are getting the specified namespace.

If you run:

helm template -n myns ... | kubectl apply -f -

the subchart resources will be deployed in the myns namespace but the OP resources will be deployed in the default namespace.

To fix this, since the OP Helm chart already depends on the Bitnami common library chart, we can use its common.names.namespace template for namespace overriding, e.g. namespace: {{ include "common.names.namespace" . }}. Now the OP resources are also getting the myns namespace:

$ helm template myrelease -n myns . 2>/dev/null | grep namespace: | wc -l
20

Template the `namespace` property to enable overriding the namespace
with `helm template`.

Signed-off-by: Georgios Thomadakis <[email protected]>
@changeset-bot
Copy link

changeset-bot bot commented Apr 3, 2025

⚠️ No Changeset found

Latest commit: 27cfb6a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant