{{- if .Values.k8s_sensor.deployment.enabled -}} --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: k8sensor labels: {{- include "instana-agent.commonLabels" . | nindent 4 }} roleRef: kind: ClusterRole name: k8sensor apiGroup: rbac.authorization.k8s.io subjects: - kind: ServiceAccount name: k8sensor namespace: {{ .Release.Namespace }} {{- end }}