Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize namespace #105

Open
lebaudantoine opened this issue Jul 5, 2024 · 0 comments
Open

Parametrize namespace #105

lebaudantoine opened this issue Jul 5, 2024 · 0 comments

Comments

@lebaudantoine
Copy link

lebaudantoine commented Jul 5, 2024

I am facing an issue while adding the LiveKit server and Egress to my project. Their Helm charts do not respect the specified namespace and end up running in the default namespace, which is not what I want.

Here is an example of how I usually declare external charts from Bitnami, such as PostgreSQL:

// helmfile.yaml

repositories:
- name: bitnami
  url: registry-1.docker.io/bitnamicharts

releases:
  - name: postgres
    namespace: {{ .Namespace }}
    chart: bitnami/postgresql
    version: 13.1.5
    values:
       ....

I run the following command to deploy:

helmfile -n my-namespace template .

With the Bitnami charts, everything runs properly in the specified my-namespace namespace. Bitnami charts allow passing a namespace value in the template metadata, for example:

// charts/bitnami/postgresql/templates/secrets.yaml
...
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "common.names.fullname" . }}
  namespace: {{ .Release.Namespace | quote }}
...

When reproducing the same approach with LiveKit charts, the LiveKit server and Egress charts do not seem to respect the specified namespace. They end up running in the default namespace.

Is the namespace attribute missing from the charts' metdata? for example:

// livekit-helm/livekit-server/templates/secret.yaml
...
metadata:
  name: {{ include "livekit-server.fullname" . }}
  labels:
    {{- include "livekit-server.labels" . | nindent 4 }}
...

Am I missing something in my current setup? Please find my current Helmfile under this repository.

Should we add a namespace attribute to the LiveKit server and Egress charts? I would be happy to propose a PR to address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant