Skip to content

Commit 090166f

Browse files
committed
Made all gateway resources use conduktor-gateway.labels
1 parent 3046073 commit 090166f

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

charts/gateway/templates/deployment.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ include "conduktor-gateway.fullname" . }}
5-
labels: {{- include "conduktor-gateway.labels" . | nindent 4 }}
6-
{{- with .Values.commonLabels }}
7-
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
8-
{{- end }}
5+
labels: {{ include "conduktor-gateway.labels" . | nindent 4 }}
96
annotations:
107
{{- with .Values.commonAnnotations }}
118
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
@@ -34,9 +31,6 @@ spec:
3431
{{- with .Values.gateway.podLabels }}
3532
{{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }}
3633
{{- end }}
37-
{{- with .Values.commonLabels }}
38-
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 8 }}
39-
{{- end }}
4034
spec:
4135
containers:
4236
- name: gateway

charts/gateway/templates/ingress.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ metadata:
55
name: {{ template "common.names.fullname" . }}
66
namespace: {{ include "common.names.namespace" . | quote }}
77
labels: {{- include "conduktor-gateway.labels" . | nindent 4 }}
8-
{{- with .Values.commonLabels }}
9-
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
10-
{{- end }}
118
{{- if or .Values.ingress.annotations .Values.commonAnnotations }}
129
annotations:
1310
{{- if .Values.ingress.annotations }}

charts/gateway/templates/service-external.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ kind: Service
44
metadata:
55
name: {{ include "conduktor-gateway.externalServiceName" . }}
66
namespace: {{ include "common.names.namespace" . | quote }}
7-
labels: {{ include "common.labels.standard" . | nindent 4 }}
7+
labels: {{ include "conduktor-gateway.labels" . | nindent 4 }}
88
app.kubernetes.io/component: conduktor-gateway
99
{{- with .Values.service.external.labels }}
1010
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
1111
{{- end }}
12-
{{- with .Values.commonLabels }}
13-
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
14-
{{- end }}
1512
{{- if or .Values.service.external.annotations .Values.commonAnnotations }}
1613
annotations:
1714
{{- with .Values.service.external.annotations }}

charts/gateway/templates/service-internal.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ metadata:
88
{{- with .Values.service.internal.labels }}
99
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 4 }}
1010
{{- end }}
11-
{{- with .Values.commonLabels }}
12-
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
13-
{{- end }}
1411
{{- if .Values.metrics.prometheus.enable }}
1512
metrics.conduktor.io/prometheus: {{ .Values.metrics.prometheus.enable | quote }}
1613
{{- end }}

charts/gateway/templates/serviceaccount.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ metadata:
55
name: {{ template "conduktor-gateway.serviceAccountName" . }}
66
namespace: {{ include "common.names.namespace" . | quote }}
77
labels: {{ include "conduktor-gateway.labels" . | nindent 4 }}
8-
{{- if .Values.commonLabels }}
9-
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
10-
{{- end }}
118
{{- if or .Values.serviceAccount.annotations .Values.commonAnnotations }}
129
annotations:
1310
{{- if .Values.commonAnnotations }}

0 commit comments

Comments
 (0)