Files
open-cluster-management/manifests/cluster-manager/hub/addon-manager/token-role.yaml
Yang Le f6dec25bdf
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 5m33s
Post / images (amd64, addon-manager) (push) Failing after 5m56s
Post / images (amd64, placement) (push) Failing after 55s
Post / images (amd64, registration-operator) (push) Failing after 46s
Post / images (amd64, work) (push) Failing after 44s
Post / images (arm64, addon-manager) (push) Failing after 46s
Post / images (arm64, placement) (push) Failing after 44s
Post / images (arm64, registration) (push) Failing after 47s
Post / images (arm64, registration-operator) (push) Failing after 45s
Post / images (amd64, registration) (push) Failing after 5m37s
Post / images (arm64, work) (push) Failing after 46s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 41m15s
Close stale issues and PRs / stale (push) Successful in 7s
add contoller to support token infrastructure (#1340)
Signed-off-by: Yang Le <yangle@redhat.com>
2026-01-27 13:06:21 +00:00

18 lines
537 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: "{{ .AddonName }}-token-role"
namespace: "{{ .ClusterName }}"
labels:
addon.open-cluster-management.io/name: "{{ .AddonName }}"
addon.open-cluster-management.io/token-infrastructure: "true"
rules:
- apiGroups: [""]
resources: ["serviceaccounts/token"]
resourceNames: ["{{ .AddonName }}-agent"]
verbs: ["create"]
# Allow gRPC client to connect to the gRPC server on hub
- apiGroups: [""]
resources: ["serviceaccounts/token"]
verbs: ["subscribe"]