Skip to content

fix(otel): added bind to openshift:scc:anyuid for otel workload #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/konnector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: konnector
description: Deploys Palo Alto Networks' Cortex KSPM connector for advanced Kubernetes security posture management.
type: application
version: 1.0.9
version: 1.0.10
appVersion: "1.0.0"
maintainers:
- name: Palo Alto Networks - Cortex KSPM team
Expand Down
18 changes: 18 additions & 0 deletions charts/konnector/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,21 @@ roleRef:
name: {{ $roleName }}
apiGroup: rbac.authorization.k8s.io
{{- end }}

{{- range $bindingName, $bindingInfo := .Values.system.extraClusterRoleBindings }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ $bindingName }}
labels:
{{- include "common.labels" $ | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ $sa }}
namespace: {{ $namespace }}
roleRef:
kind: ClusterRole
name: {{ $bindingInfo.roleRef.name }}
apiGroup: rbac.authorization.k8s.io
{{- end }}
5 changes: 5 additions & 0 deletions charts/konnector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ system:
resources: ["horizontalpodautoscalers"]
verbs: ["get", "list", "watch"]

extraClusterRoleBindings:
openshift-anyuid-crole-binding:
roleRef:
name: system:openshift:scc:anyuid

# ==========================
# Secrets Resources
# ==========================
Expand Down