Skip to content

Commit

Permalink
Add role to README, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dennischristmann authored and DrPsychick committed May 6, 2024
1 parent 370fb24 commit f5b6e01
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sickhub/cronjobs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cronjobs
description: A generic helm cronjob chart for kubernetes
type: application
version: 0.2.0
version: 0.3.0
appVersion: latest
home: https://github.com/SickHub
icon: https://raw.githubusercontent.com/SickHub/charts/master/sickhub/cronjobs/icon.png
Expand Down
12 changes: 12 additions & 0 deletions sickhub/cronjobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ secrets:
id-rsa.pub: ci/files/id-rsa.pub
```

### Kubernetes API Permissions
By default, a Kubernetes ServiceAccount object is created and used by the Pods that are generated by the Cronjobs/Jobs.
Optionally, you can attach a Role or ClusterRole to this ServiceAccount in order to grant permissions within Kubernetes, e.g., to restart deployments.

```yaml
role:
create: true
rules:
- apiGroups: ["", "extensions", "apps"]
resources: ["deployments", "replicasets", "pods", "pods/attach", "pods/exec", "pods/log"]
verbs: ["list", "get", "watch", "create", "update", "patch", "delete"]
```

## Missing features - help appreciated
* [ ] allow overwriting `nodeSelector, affinity, resources, ...`
Expand Down

0 comments on commit f5b6e01

Please sign in to comment.