[incubator/kube-registry-proxy] Update DaemonSet apiVersion to 'apps/v1' - Mandatory for K8s 1.16 (#20892)

* [incubator/kube-registry-proxy] Update DaemonSet apiVersion to 'apps/v1' - Mandatory for K8s 1.16

Signed-off-by: Jacky Jiang <t83714@gmail.com>

* As of Kubernetes 1.8, you must specify a pod selector that matches the labels of the .spec.template.
This fix the issue with creating DaemonSet through new `apps/v1` api.

Signed-off-by: Jacky Jiang <t83714@gmail.com>
This commit is contained in:
Jacky Jiang
2020-06-02 05:16:14 -07:00
committed by GitHub
parent d676c5a40d
commit 2cea7e068c
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: kube-registry-proxy
home: https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/registry
version: 0.3.1
version: 0.3.2
appVersion: 0.4
description: Installs the kubernetes-registry-proxy cluster addon.
maintainers:
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ template "kube-registry-proxy.fullname" . }}
@@ -7,6 +7,9 @@ metadata:
release: {{ .Release.Name | quote }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
selector:
matchLabels:
app: {{ template "kube-registry-proxy.fullname" . }}
template:
metadata:
name: {{ template "kube-registry-proxy.fullname" . }}