Skip to content

Commit

Permalink
add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed May 21, 2024
1 parent 4449a46 commit 4829e9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: kpack.io/v1alpha2
kind: Build
metadata:
name: sample3
kubero.dev/app: example
kubero.dev/phase: dev
kubero.dev/pipeline: pipelinename
#kubero.dev/app: example
#kubero.dev/phase: dev
#kubero.dev/pipeline: pipelinename
spec:
tags:
- registry.kubero.linode.shoks.ch/kapck/example:latest
Expand Down
22 changes: 21 additions & 1 deletion secrets.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,24 @@ secrets:
- name: git-ssh-auth
imagePullSecrets:
- name: registry-user-pass
---
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kpack-role
rules:
- apiGroups: ["kpack.io"]
resources: ["builds", "images"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kpack-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kpack-role
subjects:
- kind: ServiceAccount
name: kpack-sa

0 comments on commit 4829e9c

Please sign in to comment.