diff --git a/stable/coredns/Chart.yaml b/stable/coredns/Chart.yaml index f7045e9519..da6b05e335 100644 --- a/stable/coredns/Chart.yaml +++ b/stable/coredns/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: coredns -version: 1.8.1 +version: 1.8.2 appVersion: 1.6.6 description: CoreDNS is a DNS server that chains plugins and provides Kubernetes DNS Services keywords: diff --git a/stable/coredns/templates/podsecuritypolicy.yaml b/stable/coredns/templates/podsecuritypolicy.yaml index d673f3372b..754943fe5b 100644 --- a/stable/coredns/templates/podsecuritypolicy.yaml +++ b/stable/coredns/templates/podsecuritypolicy.yaml @@ -1,9 +1,9 @@ {{- if .Values.rbac.pspEnable }} -{{- if .Capabilities.APIVersions.Has "extensions/v1beta1" -}} -apiVersion: extensions/v1beta1 -{{- else if .Capabilities.APIVersions.Has "policy/v1beta1" -}} +{{ if .Capabilities.APIVersions.Has "policy/v1beta1" }} apiVersion: policy/v1beta1 -{{- end -}} +{{ else }} +apiVersion: extensions/v1beta1 +{{ end -}} kind: PodSecurityPolicy metadata: name: {{ template "coredns.fullname" . }}