Skip to content

Commit

Permalink
Merge pull request #8 from krancour/charts-fixes
Browse files Browse the repository at this point in the history
chart: remove duplicate labels and fix selectors
  • Loading branch information
krancour committed Sep 1, 2021
2 parents ab1871d + 66f5cf0 commit 34190f3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: {{ include "gateway.fullname" . }}-cert
labels:
{{- include "gateway.labels" . | nindent 4 }}
{{- include "gateway.labels" . | nindent 4 }}
type: Opaque
data:
{{- if .Values.tls.generateSelfSignedCert }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
name: {{ include "gateway.fullname" . }}-config
labels:
{{- include "gateway.labels" . | nindent 4 }}
{{- include "gateway.labels" . | nindent 4 }}
type: Opaque
stringData:
source-tokens.json: |
Expand Down
3 changes: 0 additions & 3 deletions charts/brigade-cloudevents-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ metadata:
name: {{ include "gateway.fullname" . }}
labels:
{{- include "gateway.labels" . | nindent 4 }}
{{- include "gateway.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
{{- include "gateway.selectorLabels" . | nindent 6 }}
{{- include "gateway.labels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "gateway.selectorLabels" . | nindent 8 }}
{{- include "gateway.labels" . | nindent 8 }}
annotations:
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
checksum/config-secret: {{ include (print $.Template.BasePath "/config-secret.yaml") . | sha256sum }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: {{ include "gateway.fullname" . }}-ingress-cert
labels:
{{- include "gateway.labels" . | nindent 4 }}
{{- include "gateway.labels" . | nindent 4 }}
type: Opaque
data:
{{- if .Values.ingress.tls.generateSelfSignedCert }}
Expand Down
1 change: 0 additions & 1 deletion charts/brigade-cloudevents-gateway/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ metadata:
name: {{ include "gateway.fullname" . }}
labels:
{{- include "gateway.labels" . | nindent 4 }}
{{- include "gateway.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
1 change: 0 additions & 1 deletion charts/brigade-cloudevents-gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ spec:
protocol: TCP
selector:
{{- include "gateway.selectorLabels" . | nindent 8 }}
{{- include "gateway.labels" . | nindent 8 }}

0 comments on commit 34190f3

Please sign in to comment.