Skip to content

Commit

Permalink
CS Falcon Image Analyzer ( IAR ) Helm initial Draft
Browse files Browse the repository at this point in the history
  • Loading branch information
cs-pvyas committed Jan 17, 2024
1 parent 803115c commit 859544e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
10 changes: 0 additions & 10 deletions helm-charts/falcon-image-analyzer/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ runAsGroup: {{ .Values.securityContext.runAsGroup | default 0 }}
{{- define "falcon-image-analyzer.volumeMounts" -}}
{{- if lt (len .Values.volumeMounts) 2 -}}
{{- .Values.volumeMounts | toYaml }}
{{- if .Values.azure.enabled }}
- name: azure-config
mountPath: /etc/kubernetes/azure.json
{{- end }}
{{- if eq .Values.crowdstrikeConfig.agentRunmode "socket" }}
- name: var-run
mountPath: {{ trimPrefix "unix://" (include "falcon-image-analyzer.agentRuntimeSocket" . ) }}
Expand All @@ -99,12 +95,6 @@ runAsGroup: {{ .Values.securityContext.runAsGroup | default 0 }}
{{- define "falcon-image-analyzer.volumes" -}}
{{- if lt (len .Values.volumes) 2 -}}
{{- .Values.volumes | toYaml }}
{{- if .Values.azure.enabled }}
- name: azure-config
hostPath:
path: {{ .Values.azure.azureConfig }}
type: File
{{- end }}
{{- if eq .Values.crowdstrikeConfig.agentRunmode "socket" }}
- name: var-run
hostPath:
Expand Down
10 changes: 10 additions & 0 deletions helm-charts/falcon-image-analyzer/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,22 @@ spec:
{{- end }}
volumeMounts:
{{- (include "falcon-image-analyzer.volumeMounts" .) | nindent 12 }}
{{- if .Values.azure.enabled }}
- name: azure-config
mountPath: /etc/kubernetes/azure.json
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- include "falcon-image-analyzer.volumes" . | nindent 8 }}
{{- if .Values.azure.enabled }}
- name: azure-config
hostPath:
path: {{ .Values.azure.azureConfig }}
type: File
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down
16 changes: 12 additions & 4 deletions helm-charts/falcon-image-analyzer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,23 @@ spec:
name: {{ include "falcon-image-analyzer.fullname" . }}
{{- end }}
volumeMounts:
{{- toYaml .Values.volumeMounts | default "" | nindent 12 }}
{{- toYaml .Values.volumeMounts | default "" | nindent 12 }}
{{- if .Values.azure.enabled }}
- name: azure-config
mountPath: /etc/kubernetes/azure.json
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | default "" | nindent 8 }}
{{- end}}
{{- toYaml .Values.volumes | default "" | nindent 8 }}
{{- if .Values.azure.enabled }}
- name: azure-config
hostPath:
path: {{ .Values.azure.azureConfig }}
type: File
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 859544e

Please sign in to comment.