Expand RBAC: allow openclaw SA to create/update secrets in openclaw namespace

This commit is contained in:
2026-04-12 08:00:59 +00:00
parent 1c0399ac09
commit b8ff432e35

View File

@@ -4,8 +4,6 @@ metadata:
name: openclaw
namespace: openclaw
---
# Minimal Role/RoleBinding placeholder.
# Adjust permissions once we know what OpenClaw needs (MCP, secrets read, etc.)
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
@@ -15,6 +13,9 @@ rules:
- apiGroups: [""]
resources: ["pods", "pods/log"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding