-
Notifications
You must be signed in to change notification settings - Fork 11
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 #10 from DelusionalOptimist/chore/renaming-jobs
chore: strip `accuknox-` from jobs
- Loading branch information
Showing
31 changed files
with
147 additions
and
98 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
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
File renamed without changes.
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
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
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
8 changes: 4 additions & 4 deletions
8
accuknox-cis-k8s/templates/cis-job.yaml → cis-k8s-job/templates/cis-job.yaml
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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Default values for accuknox-cis-job. | ||
# Default values for cis-k8s-job. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
accuknox: | ||
authToken: "NO-TOKEN-SET" | ||
cronTab: "0 */4 * * *" | ||
cronTab: "30 9 * * *" | ||
clusterName: "" | ||
label: "" | ||
clusterId: "" | ||
tenantId: "" | ||
URL: "dev" | ||
URL: "cspm.demo.accuknox.com" |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
accuknox-kubescape-job/Chart.yaml → k8s-risk-assessment-job/Chart.yaml
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
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,32 @@ | ||
# AccuKnox k8s-risk-assessment Job | ||
|
||
A job for scanning cluster misconfiguration through kubescape | ||
|
||
## Helm install | ||
|
||
### Local | ||
|
||
``` | ||
helm upgrade --install k8s-risk-assessment-job -n k8s-risk-assessment --create-namespace --set accuknox.authToken="TOKEN" . | ||
``` | ||
|
||
### Published | ||
|
||
``` | ||
helm upgrade --install k8s-risk-assessment-job oci://public.ecr.aws/k9v9d5v2/k8s-risk-assessment-job -n k8s-risk-assessment --create-namespace --set accuknox.authToken="TOKEN" | ||
``` | ||
|
||
where TOKEN is issued from AccuKnox SaaS. | ||
|
||
### Configuration | ||
|
||
| Helm key | Default Value | Description | Required | | ||
|----------|---------------|-------------| -------- | | ||
| accuknox.authToken | "NO-TOKEN-SET" | Auth token from AccuKnox SaaS | YES (auto-populated by SaaS) | | ||
| accuknox.URL | "cspm.dev.accuknox.com" | URL of the environment | YES (auto-populated by SaaS) | | ||
| accuknox.clusterName | "default" | name of the cluster | YES (auto-populated by SaaS) | | ||
| accuknox.tenantID | "" | ID of AccuKnox tenant | YES (auto-populated by SaaS) | | ||
| accuknox.cronTab | "0 */6 * * *" | cron tab for the job - timezone: UTC | NO | | ||
| accunkox.label | "default" | label of the cluster | NO | | ||
| kubescape.image.repository | "quay.io/kubescape/kubescape-cli" | kubescape image repo | NO | | ||
| kubescape.image.tag | v3.0.8 | kubescape version - taken from appVersion by default | NO | |
2 changes: 1 addition & 1 deletion
2
...-kubescape-job/templates/clusterrole.yaml → ...assessment-job/templates/clusterrole.yaml
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
6 changes: 3 additions & 3 deletions
6
...ape-job/templates/clusterrolebinding.yaml → ...ent-job/templates/clusterrolebinding.yaml
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: kubescape-clusterrole-binding | ||
name: k8s-risk-assessment-job-clusterrole-binding | ||
subjects: | ||
- namespace: {{ .Release.Namespace }} | ||
kind: ServiceAccount | ||
name: kubescape-service-account | ||
name: k8s-risk-assessment-job-service-account | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kubescape-clusterrole | ||
name: k8s-risk-assessment-job-clusterrole |
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
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
2 changes: 1 addition & 1 deletion
2
...bescape-job/templates/serviceaccount.yaml → ...essment-job/templates/serviceaccount.yaml
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kubescape-service-account | ||
name: k8s-risk-assessment-job-service-account | ||
namespace: {{ .Release.Namespace }} |
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
File renamed without changes.
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
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
Oops, something went wrong.