# RBAC for CI pipeline — deploy step + self-apply Argo templates apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: ci-deploy namespace: foxhunt labels: app.kubernetes.io/part-of: foxhunt rules: - apiGroups: ["apps"] resources: [deployments] verbs: [get, list, patch] - apiGroups: ["argoproj.io"] resources: [workflowtemplates, eventsources, sensors, eventbus] verbs: [get, list, create, update, patch] - apiGroups: [""] resources: [services, configmaps] verbs: [get, list, create, update, patch] - apiGroups: ["networking.k8s.io"] resources: [networkpolicies] verbs: [get, list, create, update, patch] - apiGroups: ["rbac.authorization.k8s.io"] resources: [roles, rolebindings] verbs: [get, list, create, update, patch, bind, escalate] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: ci-deploy namespace: foxhunt labels: app.kubernetes.io/part-of: foxhunt roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: ci-deploy subjects: - kind: ServiceAccount name: argo-workflow namespace: foxhunt