Skip to content

Commit 66937d3

Browse files
committed
allow to override envoy service name
1 parent aaa9968 commit 66937d3

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

charts/envoy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: envoy
33
description: |-
44
Helm chart to deploy [envoy](https://www.envoyproxy.io/).
55
type: application
6-
version: 0.0.16
6+
version: 0.0.17
77
appVersion: "v1.18.2"
88
home: https://github.com/slamdev/helm-charts/tree/master/charts/envoy
99
icon: https://www.envoyproxy.io/docs/envoy/latest/_static/envoy-logo.png

charts/envoy/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ spec:
3838
- path: {{ . }}
3939
{{- if semverCompare "<1.19-0" $.Capabilities.KubeVersion.GitVersion }}
4040
backend:
41-
serviceName: {{ $fullName }}
41+
serviceName: {{ default (include "envoy.fullname" $) ($.Values.service.name) }}
4242
servicePort: {{ $svcPort }}
4343
{{- else }}
4444
pathType: ImplementationSpecific
4545
backend:
4646
service:
47-
name: {{ $fullName }}
47+
name: {{ default (include "envoy.fullname" $) ($.Values.service.name) }}
4848
port:
4949
number: {{ $svcPort }}
5050
{{- end }}

charts/envoy/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: {{ include "envoy.fullname" . }}
4+
name: {{ default (include "envoy.fullname" .) (.Values.service.name) }}
55
namespace: {{ .Release.Namespace }}
66
labels:
77
{{- include "envoy.labels" . | nindent 4 }}

charts/envoy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ podSecurityContext: {}
4040
# fsGroup: 2000
4141

4242
service:
43+
# service.name -- name of the service (defaults to the fullname template)
44+
name: ""
4345
# service.type -- service type
4446
type: ClusterIP
4547
# service.ports -- list of service ports

0 commit comments

Comments
 (0)