Skip to content

Commit eae2073

Browse files
committed
service annotations to values
1 parent 4d28eab commit eae2073

8 files changed

Lines changed: 38 additions & 5 deletions

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 1.1.4
3+
version: 1.1.5

charts/synapse/templates/admin-service.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: admin
6+
{{- with .Values.admin.service.annotations }}
67
annotations:
7-
cloud.google.com/neg: '{"ingress":false}'
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
810
spec:
911
selector:
1012
app: admin

charts/synapse/templates/envoy-service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: synapse-client-reader-envoy
66
labels:
77
{{- include "synapse-client-reader-envoy.selectorLabels" . | nindent 4 }}
8+
{{- with .Values.envoyProxy.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
type: {{ .Values.envoyProxy.service.type }}
1014
ports:

charts/synapse/templates/matrix-authentication-service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ metadata:
66
name: matrix-authentication
77
labels:
88
{{- include "matrix-authentication.selectorLabels" . | nindent 4 }}
9+
{{- with .Values.matrixAuthentication.service.annotations }}
10+
annotations:
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
913
spec:
1014
type: {{ .Values.matrixAuthentication.service.type }}
1115
ports:

charts/synapse/templates/pgbouncer-service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
name: synapse-pgbouncer
66
labels:
77
app: synapse-pgbouncer
8+
{{- with .Values.synapse.pgbouncer.service.annotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
selector:
1014
app: synapse-pgbouncer

charts/synapse/templates/synapse-service.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ apiVersion: v1
66
kind: Service
77
metadata:
88
name: synapse-{{ $name }}
9+
{{- with $.Values.synapse.service.annotations }}
910
annotations:
10-
cloud.google.com/neg: '{"ingress":false}'
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
1113
spec:
1214
clusterIP: None
1315
selector:
@@ -25,8 +27,10 @@ apiVersion: v1
2527
kind: Service
2628
metadata:
2729
name: synapse-client-reader-headless
30+
{{- with $.Values.synapse.service.annotations }}
2831
annotations:
29-
cloud.google.com/neg: '{"ingress":false}'
32+
{{- toYaml . | nindent 4 }}
33+
{{- end }}
3034
labels:
3135
{{- include "synapse-client-reader.selectorLabels" . | nindent 4 }}
3236
spec:

charts/synapse/templates/well-known-service.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
name: well-known
6+
{{- with .Values.wellKnown.service.annotations }}
67
annotations:
7-
cloud.google.com/neg: '{"ingress":false}'
8+
{{- toYaml . | nindent 4 }}
9+
{{- end }}
810
spec:
911
selector:
1012
app: well-known

charts/synapse/values.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ synapse:
196196
# secretKeyRef:
197197
# key: my-secret-key
198198
# name: my-secret
199+
service:
200+
annotations: {}
199201
pgbouncerExporter:
200202
enabled: false
201203
podMonitor: false
@@ -220,6 +222,9 @@ synapse:
220222
requests:
221223
cpu: 30m
222224
memory: 40Mi
225+
service:
226+
annotations:
227+
cloud.google.com/neg: '{"ingress":false}'
223228

224229
redis:
225230
enabled: true
@@ -487,6 +492,9 @@ admin:
487492
tolerations: []
488493
affinity: {}
489494
updateStrategy: {}
495+
service:
496+
annotations:
497+
cloud.google.com/neg: '{"ingress":false}'
490498

491499
envoyProxy:
492500
enabled: true
@@ -496,6 +504,7 @@ envoyProxy:
496504
service:
497505
type: ClusterIP
498506
port: 80
507+
annotations: {}
499508
replicaCount: 2
500509
podDisruptionBudget:
501510
enabled: true
@@ -539,6 +548,7 @@ matrixAuthentication:
539548
service:
540549
type: ClusterIP
541550
port: 80
551+
annotations: {}
542552
replicaCount: 2
543553
podDisruptionBudget:
544554
enabled: true
@@ -671,6 +681,9 @@ wellKnown:
671681
tolerations: []
672682
affinity: {}
673683
updateStrategy: {}
684+
service:
685+
annotations:
686+
cloud.google.com/neg: '{"ingress":false}'
674687
ingress:
675688
commonAnnotations:
676689
nginx.ingress.kubernetes.io/use-regex: "true"

0 commit comments

Comments
 (0)