Skip to content

Refactor namespace handling in Docker registry Helm chart #158

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bwdmr
Copy link

@bwdmr bwdmr commented Mar 15, 2025

  • Create a reusable helper template "docker-registry.namespace" in _helpers.tpl
  • Replace all instances of "{{ .Values.namespace | default .Release.Namespace }}" with "{{ include "docker-registry.namespace" . }}" for consistency
  • Apply this change across all resource templates (deployment, service, configmap, secret, cronjob, pvc, etc.)

This refactoring improves maintainability and ensures consistent namespace handling throughout the chart, particularly for multi-namespace deployments in combined charts.

- Create a reusable helper template "docker-registry.namespace" in _helpers.tpl
- Replace all instances of "{{ .Values.namespace | default .Release.Namespace }}"
  with "{{ include "docker-registry.namespace" . }}" for consistency
- Apply this change across all resource templates (deployment, service,
  configmap, secret, cronjob, pvc, etc.)

This refactoring improves maintainability and ensures consistent namespace
handling throughout the chart, particularly for multi-namespace deployments
in combined charts.

Signed-off-by: bwdmr <[email protected]>
@bwdmr bwdmr force-pushed the compatreleasenamespace branch from cb49b7f to 8b705eb Compare March 15, 2025 09:01
@joshsizer joshsizer self-assigned this Mar 27, 2025
@joshsizer joshsizer self-requested a review March 27, 2025 00:48
@joshsizer joshsizer removed their assignment Mar 27, 2025
@joshsizer
Copy link
Collaborator

@bwdmr Please sign your commits! Otherwise I won't be able to merge this in

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.

2 participants