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

Propose Fix issue #158 #161

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
used $index for naming
Changed naming for ingress and backend service to fix issue  #158
  • Loading branch information
F43RY authored Feb 15, 2022
commit def6abdfd80803d27c41980463f65a7dfa3d9094
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