From 2cea7e068c7f5c8fcda96350f564e59e7e689ecb Mon Sep 17 00:00:00 2001 From: Jacky Jiang Date: Tue, 2 Jun 2020 22:16:14 +1000 Subject: [PATCH] [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 * 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 --- incubator/kube-registry-proxy/Chart.yaml | 2 +- incubator/kube-registry-proxy/templates/daemon.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/incubator/kube-registry-proxy/Chart.yaml b/incubator/kube-registry-proxy/Chart.yaml index f00235c53ff2..e390e20e95d0 100644 --- a/incubator/kube-registry-proxy/Chart.yaml +++ b/incubator/kube-registry-proxy/Chart.yaml @@ -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: diff --git a/incubator/kube-registry-proxy/templates/daemon.yaml b/incubator/kube-registry-proxy/templates/daemon.yaml index fcfa4ea186b0..2c29885bc66c 100644 --- a/incubator/kube-registry-proxy/templates/daemon.yaml +++ b/incubator/kube-registry-proxy/templates/daemon.yaml @@ -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" . }}