# services/hermes-triage-demo/rbac.yaml # Lets Jenkins agent pods (SA jenkins/jenkins) create and observe the demo # test-runner Job in this namespace only. The Ariadne repair path needs no # grant here: its ariadne-job-spawner ClusterRole already covers Job # create/watch, and the repair pod itself only mounts the fixture PVC. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: demo-test-runner namespace: hermes-triage-demo labels: app.kubernetes.io/part-of: hermes-triage-demo rules: - apiGroups: ["batch"] resources: ["jobs"] verbs: ["create", "get", "list", "watch"] - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["pods/log"] verbs: ["get"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: demo-test-runner-jenkins namespace: hermes-triage-demo labels: app.kubernetes.io/part-of: hermes-triage-demo roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: demo-test-runner subjects: - kind: ServiceAccount name: jenkins namespace: jenkins