maybe maybe baby
Some checks failed
Check Kubernetes YAMLs / scan (push) Failing after 19s

This commit is contained in:
Lee 2024-09-24 04:03:42 +01:00
parent d6917fece0
commit b53eb881ad

@ -2,7 +2,7 @@ kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: drone name: drone
namespace: public-services namespace: drone-ci
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -29,12 +29,42 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: drone name: drone
namespace: public-services namespace: drone-ci
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: default name: default
namespace: public-services namespace: drone-ci
roleRef: roleRef:
kind: Role kind: Role
name: drone name: drone
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: drone-deploy-sa
namespace: public-services
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: public-services
name: drone-deployment-manager
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "create", "update", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: drone-deployment-manager-binding
namespace: public-services
subjects:
- kind: ServiceAccount
name: drone-deploy-sa
namespace: public-services
roleRef:
kind: Role
name: drone-deployment-manager
apiGroup: rbac.authorization.k8s.io