Skip to content

Commit efb9bc7

Browse files
lexfreiclaude
andcommitted
fix(harbor): use Release.Name for default host to avoid conflicts
Multiple Harbor instances in the same namespace would get the same default hostname when derived from namespace host. Use Release.Name instead for unique hostnames per instance. Co-Authored-By: Claude <[email protected]> Signed-off-by: Aleksei Sviridkin <[email protected]>
1 parent 0e6ae28 commit efb9bc7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/apps/harbor/templates/harbor.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- $ingress := .Values._namespace.ingress }}
22
{{- $host := .Values._namespace.host }}
3-
{{- $harborHost := .Values.host | default (printf "harbor.%s" $host) }}
3+
{{- $harborHost := .Values.host | default (printf "harbor.%s" .Release.Name) }}
44

55
{{- $existingSecret := lookup "v1" "Secret" .Release.Namespace (printf "%s-credentials" .Release.Name) }}
66
{{- $adminPassword := randAlphaNum 16 }}

‎packages/apps/harbor/templates/ingress.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- $ingress := .Values._namespace.ingress }}
22
{{- $host := .Values._namespace.host }}
3-
{{- $harborHost := .Values.host | default (printf "harbor.%s" $host) }}
3+
{{- $harborHost := .Values.host | default (printf "harbor.%s" .Release.Name) }}
44
{{- $issuerType := (index .Values._cluster "clusterissuer") | default "http01" }}
55
---
66
apiVersion: networking.k8s.io/v1

0 commit comments

Comments
 (0)