diff --git a/stable/instana-agent/Chart.yaml b/stable/instana-agent/Chart.yaml index 61105fd1ff..eb40c4e90f 100644 --- a/stable/instana-agent/Chart.yaml +++ b/stable/instana-agent/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: instana-agent -version: 1.0.15 +version: 1.0.16 appVersion: 1.0 description: Instana Agent for Kubernetes home: https://www.instana.com/ diff --git a/stable/instana-agent/templates/clusterrole.yaml b/stable/instana-agent/templates/clusterrole.yaml index e7b0b668d8..6ccfa72db4 100644 --- a/stable/instana-agent/templates/clusterrole.yaml +++ b/stable/instana-agent/templates/clusterrole.yaml @@ -42,7 +42,7 @@ rules: - "endpoints" verbs: ["create", "update", "patch"] {{- if .Values.podSecurityPolicy.enable}} -- apiGroups: ["extensions"] +- apiGroups: ["policy"] resources: ["podsecuritypolicies"] verbs: ["use"] resourceNames: diff --git a/stable/instana-agent/templates/daemonset.yaml b/stable/instana-agent/templates/daemonset.yaml index a53f571af8..4fa8ca00ba 100644 --- a/stable/instana-agent/templates/daemonset.yaml +++ b/stable/instana-agent/templates/daemonset.yaml @@ -1,6 +1,6 @@ {{- if .Values.agent.key -}} {{- if or .Values.zone.name .Values.cluster.name -}} -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: DaemonSet metadata: name: {{ template "instana-agent.fullname" . }} diff --git a/stable/instana-agent/templates/podsecuritypolicy.yaml b/stable/instana-agent/templates/podsecuritypolicy.yaml index f5816b0254..3a812bc7f9 100644 --- a/stable/instana-agent/templates/podsecuritypolicy.yaml +++ b/stable/instana-agent/templates/podsecuritypolicy.yaml @@ -1,7 +1,7 @@ {{- if .Values.rbac.create -}} {{- if (and .Values.podSecurityPolicy.enable (not .Values.podSecurityPolicy.name)) -}} kind: PodSecurityPolicy -apiVersion: extensions/v1beta1 +apiVersion: policy/v1beta1 metadata: name: {{ template "instana-agent.podSecurityPolicyName" . }} labels: