Skip to content

Commit 4458f0e

Browse files
committed
Applied Quentins changes
1 parent 6aa5e7a commit 4458f0e

File tree

4 files changed

+25
-31
lines changed

4 files changed

+25
-31
lines changed

charts/gateway/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,18 @@ This section specifies external service configuration
113113
| `service.external.type` | Type of load balancer | `ClusterIP` |
114114
| `service.external.ip` | IP to configure | `""` |
115115
| `service.external.annotations` | | `{}` |
116-
| `service.external.labels` | | `{}` |
116+
| `service.external.labels` | Labels to be added to Gateway internal service | `{}` |
117117
| `service.external.admin` | Enable admin exposition on external service | `false` |
118118
| `service.external.jmx` | Enable jmx exposition on external service | `false` |
119119

120120
### Conduktor-gateway internal service configurations
121121

122122
This section specify internal service configuration
123123

124-
| Name | Description | Value |
125-
| ------------------------------ | ----------- | ----- |
126-
| `service.internal.annotations` | | `{}` |
127-
| `service.internal.labels` | | `{}` |
124+
| Name | Description | Value |
125+
| ------------------------------ | ---------------------------------------------- | ----- |
126+
| `service.internal.annotations` | | `{}` |
127+
| `service.internal.labels` | Labels to be added to Gateway internal service | `{}` |
128128

129129
### Gateway ingress configurations
130130

charts/gateway/templates/service-external.yaml

+9-12
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@ metadata:
55
name: {{ include "conduktor-gateway.externalServiceName" . }}
66
namespace: {{ include "common.names.namespace" . | quote }}
77
labels: {{ include "common.labels.standard" . | nindent 4 }}
8-
app.kubernetes.io/component: conduktor-platform
9-
{{- if .Values.service.external.labels }}
10-
{{- include "common.tplvalues.render" ( dict "value" .Values.service.external.labels "context" $) | nindent 4 }}
8+
app.kubernetes.io/component: conduktor-gateway
9+
{{- with .Values.service.external.labels }}
10+
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
1111
{{- end }}
12-
{{- if .Values.commonLabels }}
13-
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
14-
{{- end }}
15-
{{- if .Values.metrics.prometheus.enable }}
16-
metrics.conduktor.io/prometheus: {{ .Values.metrics.prometheus.enable | quote }}
12+
{{- with .Values.commonLabels }}
13+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
1714
{{- end }}
1815
{{- if or .Values.service.external.annotations .Values.commonAnnotations }}
1916
annotations:
20-
{{- if .Values.service.external.annotations }}
21-
{{- include "common.tplvalues.render" ( dict "value" .Values.service.external.annotations "context" $) | nindent 4 }}
17+
{{- with .Values.service.external.annotations }}
18+
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
2219
{{- end }}
23-
{{- if .Values.commonAnnotations }}
24-
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
20+
{{- with .Values.commonAnnotations }}
21+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
2522
{{- end }}
2623
{{- end }}
2724
spec:

charts/gateway/templates/service-internal.yaml

+9-12
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,20 @@ metadata:
44
name: {{ include "conduktor-gateway.internalServiceName" . }}
55
namespace: {{ include "common.names.namespace" . | quote }}
66
labels: {{ include "common.labels.standard" . | nindent 4 }}
7-
app.kubernetes.io/component: conduktor-platform
8-
{{- if .Values.service.internal.labels }}
9-
{{- include "common.tplvalues.render" ( dict "value" .Values.service.internal.labels "context" $) | nindent 4 }}
7+
app.kubernetes.io/component: conduktor-gateway
8+
{{- with .Values.service.internal.labels }}
9+
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
1010
{{- end }}
11-
{{- if .Values.commonLabels }}
12-
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
13-
{{- end }}
14-
{{- if .Values.metrics.prometheus.enable }}
15-
metrics.conduktor.io/prometheus: {{ .Values.metrics.prometheus.enable | quote }}
11+
{{- with .Values.commonLabels }}
12+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
1613
{{- end }}
1714
{{- if or .Values.service.internal.annotations .Values.commonAnnotations }}
1815
annotations:
19-
{{- if .Values.service.internal.annotations }}
20-
{{- include "common.tplvalues.render" ( dict "value" .Values.service.internal.annotations "context" $) | nindent 4 }}
16+
{{- with .Values.service.internal.annotations }}
17+
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
2118
{{- end }}
22-
{{- if .Values.commonAnnotations }}
23-
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
19+
{{- with .Values.commonAnnotations }}
20+
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
2421
{{- end }}
2522
{{- end }}
2623
spec:

charts/gateway/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ service:
202202
ip: ""
203203
## @param service.external.annotations
204204
annotations: {}
205-
## @param service.external.labels
205+
## @param service.external.labels Labels to be added to Gateway internal service
206206
labels: {}
207207
# LoadBalancer externaldns gke support by annotation https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/gke.md#verify-using-an-external-load-balancer
208208
# external-dns.alpha.kubernetes.io/hostname: "{{ required "A valid .Values.gateway.domain is required!" .Values.gateway.domain }}"
@@ -217,7 +217,7 @@ service:
217217
internal:
218218
## @param service.internal.annotations
219219
annotations: {}
220-
## @param service.internal.labels
220+
## @param service.internal.labels Labels to be added to Gateway internal service
221221
labels: {}
222222

223223
## @section Gateway ingress configurations

0 commit comments

Comments
 (0)