Skip to content

Commit 5a05dda

Browse files
authored
Merge pull request #6 from PaloAltoNetworks/fix/otel-bind-openshift
fix(otel): added bind to openshift:scc:anyuid for otel workload
2 parents a08356d + a29a1a2 commit 5a05dda

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

charts/konnector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: konnector
33
description: Deploys Palo Alto Networks' Cortex KSPM connector for advanced Kubernetes security posture management.
44
type: application
5-
version: 1.0.9
5+
version: 1.0.10
66
appVersion: "1.0.0"
77
maintainers:
88
- name: Palo Alto Networks - Cortex KSPM team

charts/konnector/templates/rbac.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,21 @@ roleRef:
6464
name: {{ $roleName }}
6565
apiGroup: rbac.authorization.k8s.io
6666
{{- end }}
67+
68+
{{- range $bindingName, $bindingInfo := .Values.system.extraClusterRoleBindings }}
69+
---
70+
apiVersion: rbac.authorization.k8s.io/v1
71+
kind: ClusterRoleBinding
72+
metadata:
73+
name: {{ $bindingName }}
74+
labels:
75+
{{- include "common.labels" $ | nindent 4 }}
76+
subjects:
77+
- kind: ServiceAccount
78+
name: {{ $sa }}
79+
namespace: {{ $namespace }}
80+
roleRef:
81+
kind: ClusterRole
82+
name: {{ $bindingInfo.roleRef.name }}
83+
apiGroup: rbac.authorization.k8s.io
84+
{{- end }}

charts/konnector/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ system:
176176
resources: ["horizontalpodautoscalers"]
177177
verbs: ["get", "list", "watch"]
178178

179+
extraClusterRoleBindings:
180+
openshift-anyuid-crole-binding:
181+
roleRef:
182+
name: system:openshift:scc:anyuid
183+
179184
# ==========================
180185
# Secrets Resources
181186
# ==========================

0 commit comments

Comments
 (0)