Remove chart version from deployments and services selectors (#1562)

Label selectors are immutable; having the chart version part
of the label selectors means that upgrades require a full
recreation of the deployments and services instead of a simple
update.
This branch removes the chart version from the selectors
to allow smooth upgrades.
This commit is contained in:
Aaron Schlesinger
2020-03-05 11:16:54 -08:00
committed by GitHub
parent e42546a2b0
commit e1374bea39
5 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: athens-proxy
version: 0.4.3
version: 0.4.4
appVersion: 0.7.0
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
@@ -12,7 +12,6 @@ spec:
selector:
matchLabels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
template:
metadata:
@@ -13,7 +13,6 @@ spec:
selector:
matchLabels:
app: {{ template "fullname" . }}-jaeger
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
template:
metadata:
@@ -37,6 +37,5 @@ spec:
targetPort: 16686
selector:
app: {{ template "fullname" . }}-jaeger
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
{{- end -}}
@@ -23,5 +23,4 @@ spec:
{{- end }}
selector:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"