Skip to content

Commit

Permalink
fix: use .Values.service.name
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsizer committed Mar 9, 2024
1 parent c019755 commit d0cfcca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $apiVersions := .Capabilities.APIVersions -}}
{{- $serviceName := include "docker-registry.fullname" . -}}
{{- $serviceName := .Values.service.name | default (include "docker-registry.fullname" .) -}}
{{- $servicePort := .Values.service.port -}}
{{- $path := .Values.ingress.path -}}
apiVersion: {{- if $apiVersions.Has "networking.k8s.io/v1" }} networking.k8s.io/v1 {{- else }} networking.k8s.io/v1beta1 {{- end }}
Expand Down
6 changes: 1 addition & 5 deletions templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.service.name }}
name: {{ .Values.service.name }}
{{- else }}
name: {{ template "docker-registry.fullname" . }}
{{- end }}
name: {{ .Values.service.name | default (include "docker-registry.fullname" .) }}
namespace: {{ .Values.namespace | default .Release.Namespace }}
labels:
app: {{ template "docker-registry.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ image:
# imagePullSecrets:
# - name: docker
service:
name: ""
name: ""
type: ClusterIP
# sessionAffinity: None
# sessionAffinityConfig: {}
Expand Down

0 comments on commit d0cfcca

Please sign in to comment.