Skip to content

Commit

Permalink
used $index for naming
Browse files Browse the repository at this point in the history
Changed naming for ingress and backend service to fix issue  sonatype#158
  • Loading branch information
F43RY authored Feb 15, 2022
1 parent 2efe12c commit def6abd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions charts/nexus-repository-manager/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ spec:
number: 8081

{{ if .Values.nexus.docker.enabled }}
{{ range $registry := .Values.nexus.docker.registries }}
{{ range $index, $registry := .Values.nexus.docker.registries }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName | trunc 49 }}-docker-{{ $registry.port }}
name: {{ $fullName | trunc 46 }}-{{ $index }}-docker-{{ $registry.port }}
labels:
{{- include "nexus.labels" $ | nindent 4 }}
{{- if $.Values.nexus.extraLabels }}
Expand All @@ -74,7 +74,7 @@ spec:
pathType: Prefix
backend:
service:
name: {{ $fullName | trunc 49 }}-docker-{{ $registry.port }}
name: {{ $fullName | trunc 46 }}-{{ $index }}-docker-{{ $registry.port }}
port:
number: {{ $registry.port }}
{{- end }} {{- /* range of nexus.docker.registries */ -}}
Expand Down

0 comments on commit def6abd

Please sign in to comment.