---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: ai-bot
  namespace: ai
---
apiVersion: v1
kind: Secret
metadata:
  name: ai-bot-token
  namespace: ai
  annotations:
    kubernetes.io/service-account.name: ai-bot
type: kubernetes.io/service-account-token
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: ai-bot-full-access
  namespace: ai
rules:
- apiGroups: ["*"]
  resources: ["*"]
  verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: ai-bot-full-access-binding
  namespace: ai
subjects:
- kind: ServiceAccount
  name: ai-bot
  namespace: ai
roleRef:
  kind: Role
  name: ai-bot-full-access
  apiGroup: rbac.authorization.k8s.io
