Skip to content

Commit

Permalink
Avoid changing Ingress name unnecessarily (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock authored Jun 5, 2024
1 parent 9f2c038 commit 00b968b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/webservice/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: webservice
description: OSC webservice bootstrap Helm Chart
type: application
version: 0.35.1
version: 0.35.2
appVersion: "0.1.0"
maintainers:
- name: treydock
Expand Down
4 changes: 4 additions & 0 deletions charts/webservice/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
{{- if eq (len $root.Values.containers) 1 }}
name: {{ include "webservice.name" $root }}
{{- else }}
name: {{ include "webservice.name" $root }}-{{ tpl $container.name $root }}
{{- end }}
labels:
{{- include "webservice.labels" $root | nindent 4 }}
{{- if (include "webservice.alert.receiver" $root) }}
Expand Down

0 comments on commit 00b968b

Please sign in to comment.