Skip to content

Commit

Permalink
Added optional logic for CIS
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyaccuknox committed Nov 25, 2024
1 parent 36f3433 commit 9b48a08
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
7 changes: 5 additions & 2 deletions accuknox-jobs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ global:
# Job-specific configurations
accuknox:
cis:
enabled: "false"
enabled: "false" # Default: CIS job is disabled
promptForPlatform: "false" # By default, platform selection is not prompted
toolConfig:
platform: "" # Default platform value (empty unless set)
riskassessment:
enabled: "false"
# k8tls:
# enabled: "false"
kiem:
enabled: "false"
enabled: "false"
4 changes: 4 additions & 0 deletions knox-jobs/cis-k8s-job/templates/cis-cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ spec:
value: {{ .Values.accuknox.tenantId | quote}}
- name: URL
value: {{ .Values.accuknox.url }}
{{- if and .Values.accuknox.cis.enabled .Values.accuknox.cis.promptForPlatform }}
- name: PLATFORM
value: {{ .Values.accuknox.cis.toolConfig.platform | quote }}
{{- end }}
volumeMounts:
- mountPath: /data
name: datapath
Expand Down
4 changes: 4 additions & 0 deletions knox-jobs/cis-k8s-job/templates/cis-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
value: {{ .Values.accuknox.tenantId | quote}}
- name: URL
value: {{ .Values.accuknox.url }}
{{- if and .Values.accuknox.cis.enabled .Values.accuknox.cis.promptForPlatform }}
- name: PLATFORM
value: {{ .Values.accuknox.cis.toolConfig.platform | quote }}
{{- end }}
volumeMounts:
- mountPath: /data
name: datapath
Expand Down
5 changes: 5 additions & 0 deletions knox-jobs/cis-k8s-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ accuknox:
tenantId: ""
url: "cspm.demo.accuknox.com"
secretName: ""
cis:
enabled: ""
promptForPlatform: ""
toolConfig:
platform: ""

0 comments on commit 9b48a08

Please sign in to comment.