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

Refactor namespace handling in Docker registry Helm chart #158

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
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