Files
diun/ci-deployer.yaml
T

45 lines
976 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: diun-deployer
namespace: diun
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: diun-deployer
namespace: diun
rules:
- apiGroups: [""]
resources: ["configmaps"]
resourceNames: ["diun", "diun-matrix-script"]
verbs: ["get", "patch", "update"]
- apiGroups: ["apps"]
resources: ["deployments"]
resourceNames: ["diun"]
verbs: ["get", "patch", "update", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: diun-deployer
namespace: diun
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: diun-deployer
subjects:
- kind: ServiceAccount
name: diun-deployer
namespace: diun
---
apiVersion: v1
kind: Secret
metadata:
name: diun-deployer-token
namespace: diun
annotations:
kubernetes.io/service-account.name: diun-deployer
type: kubernetes.io/service-account-token