Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #11 from armosec/dev
Browse files Browse the repository at this point in the history
add service account to support on demand Kubescape [cron]job
  • Loading branch information
slashben authored Jan 20, 2022
2 parents a978ccb + d593ef2 commit 606bb7a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/armo-components/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.5.0
version: 1.6.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v1.5.0"
appVersion: "v1.6.0"

maintainers:
- name: Ben Hirschberg
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Values.global.armoServiceAccountName }}-role-binding
namespace: {{ .Values.armoNameSpace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Values.global.armoServiceAccountName }}-roles
subjects:
- kind: ServiceAccount
name: {{ .Values.global.armoServiceAccountName }}
namespace: {{ .Values.armoNameSpace }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ .Values.global.armoServiceAccountName }}-roles
namespace: {{ .Values.armoNameSpace }}
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["get", "list", "describe"]
- apiGroups: ["batch"]
resources: ["jobs", "cronjobs"]
verbs: ["*"]

0 comments on commit 606bb7a

Please sign in to comment.