Namespace inconsistencies #623

Open
opened 2024-03-02 08:48:07 +00:00 by absolutejam · 3 comments

Hey!

First off, I have to say what an awesome product Gitea is! 👏

I'm currently deploying Gitea to a local cluster and I noticed that the helm chart will not apply the Helm release namespace to the actual Gitea deployment, meaning that it ends up in the default namespace unless applied with a namespace flag.

Since I'm using cdk8s, my resulting manifests have no namespace, and I can override this when applying, but there's some inconsistency as other components do apply the namespace:

I know that different projects provided different means for this (.Release.Namespace, .Values.namespaceOverride, etc.) but I think most projects have standardised on .Release.Namespace now.

Hey! First off, I have to say what an awesome product Gitea is! 👏 I'm currently deploying Gitea to a local cluster and I noticed that the helm chart will not apply the Helm release namespace to the actual Gitea deployment, meaning that it ends up in the default namespace unless applied with a namespace flag. Since I'm using `cdk8s`, my resulting manifests have no namespace, and I can override this when applying, but there's some inconsistency as other components do apply the namespace: - [Gitea deployment](https://gitea.com/gitea/helm-chart/src/branch/main/templates/gitea/deployment.yaml) - No namespace - [Service account](https://gitea.com/gitea/helm-chart/src/branch/main/templates/gitea/serviceaccount.yaml) - Respects the relesae namspace (`{{ .Release.Namespace | quote }}`) - Bitnami [postgres](https://github.com/bitnami/charts/blob/main/bitnami/postgresql/templates/primary/statefulset.yaml) & redis child charts - Respect the release namespace. I know that different projects provided different means for this (`.Release.Namespace`, `.Values.namespaceOverride`, etc.) but I think most projects have standardised on `.Release.Namespace` now.
Member

Fair point. If you can, please open a PR to fix this.

Fair point. If you can, please open a PR to fix this.
Author

More than happy to, just wanted to check if this is something you wanted me to pursue first.

More than happy to, just wanted to check if this is something you wanted me to pursue first.

Check #630 for expanded use case for the implementation @absolutejam if you get to the PR before me please take it into account. Otherwise I believe my straw man solution should help you as well.

Check #630 for expanded use case for the implementation @absolutejam if you get to the PR before me please take it into account. Otherwise I believe my straw man solution should help you as well.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/helm-chart#623
No description provided.