Skip to content

Commit

Permalink
docs: update RBAC config guide
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and vvagaytsev committed Sep 28, 2023
1 parent 42e7e71 commit ad1f9ea
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions docs/k8s-plugins/advanced/rbac-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ metadata:
namespace: garden-system
name: user-<username>-common
rules:
# Allow port forward to build-sync services
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
# Note: An upcoming release will remove the requirement
- apiGroups: [""]
resources: ["pods/portforward"]
verbs: ["get", "list", "create"]
# Allow storing and reading test results
- apiGroups: [""]
resources: ["configmaps"]
Expand All @@ -114,9 +106,6 @@ rules:
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "rolebindings"]
verbs: ["get", "list"]
- apiGroups: ["extensions", "apps"]
resources: ["deployments", "daemonsets"]
verbs: ["get", "list"]
# Note: We do not store anything sensitive in secrets, aside from registry auth,
# which users anyway need to be able to read and push built images.
- apiGroups: [""]
Expand All @@ -138,38 +127,3 @@ subjects:
- namespace: <service-accounts-namespace>
kind: ServiceAccount
name: user-<username>

---

# Allow building with kaniko in-cluster
# Note: An upcoming release will remove this required role
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: garden-system
name: user-<username>-kaniko
rules:
- apiGroups: [""]
resources: ["pods"]
verbs:
- "get"
- "list"
- "create"
- "delete"

---

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: user-<username>-kaniko
namespace: garden-system
roleRef:
kind: Role
name: user-<username>-kaniko
apiGroup: ""
subjects:
- namespace: <service-accounts-namespace>
kind: ServiceAccount
name: user-<username>
```

0 comments on commit ad1f9ea

Please sign in to comment.