Skip to content

Refactor namespace handling in Docker registry Helm chart - #158

Open
bwdmr wants to merge 1 commit into
twuni:mainfrom
bwdmr:compatreleasenamespace
Open

Refactor namespace handling in Docker registry Helm chart#158
bwdmr wants to merge 1 commit into
twuni:mainfrom
bwdmr:compatreleasenamespace

Conversation

@bwdmr

@bwdmr bwdmr commented Mar 15, 2025

Copy link
Copy Markdown
  • 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 <pbwo@protonmail.ch>
@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
Copy Markdown
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