-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from QGreenland-Net/argo-garbage-collection-pe…
…rmissions Add role/rolebinding for argo artifact garbage collection
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Role for argo workflow garbage collection that is utilized by the | ||
# `argo-workflow` service account (see `gc-rolebinding.yaml` ). | ||
# This role is copied from the example given here: | ||
# https://argo-workflows.readthedocs.io/en/latest/walk-through/artifacts/#service-accounts-and-annotations | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
annotations: | ||
workflows.argoproj.io/description: | | ||
This is the minimum recommended permissions needed if you want to use artifact GC. | ||
name: artifactgc | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflowartifactgctasks | ||
verbs: | ||
- list | ||
- watch | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- workflowartifactgctasks/status | ||
verbs: | ||
- patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Rolebinding for the argo-workflow service account to the artifactgc role (see | ||
# gc-role.yaml). | ||
# For more information about rolebindings, see | ||
# https://kubernetes.io/docs/reference/access-authn-authz/rbac/#rolebinding-example | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: gc-rolebinding | ||
namespace: qgnet | ||
subjects: | ||
- kind: ServiceAccount | ||
name: argo-workflow | ||
namespace: qgnet | ||
roleRef: | ||
kind: Role | ||
name: artifactgc | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters