Skip to content

Commit

Permalink
used $index for service name
Browse files Browse the repository at this point in the history
introduced commit to fix sonatype#158
  • Loading branch information
F43RY authored Feb 15, 2022
1 parent def6abd commit 184f2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/nexus-repository-manager/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ spec:
{{- end }}

{{- if .Values.nexus.docker.enabled }}
{{- range $registry := .Values.nexus.docker.registries }}
{{- range $index, $registry := .Values.nexus.docker.registries }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "nexus.fullname" $ | trunc 49 }}-docker-{{ $registry.port }}
name: {{ include "nexus.fullname" $ | trunc 46 }}-{{ $index }}-docker-{{ $registry.port }}
{{- if $.Values.service.annotations }}
annotations:
{{ toYaml $.Values.service.annotations | indent 4 }}
Expand Down

0 comments on commit 184f2c8

Please sign in to comment.