This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #70 from armosec/dev
update helm from dev after testing
- Loading branch information
Showing
16 changed files
with
290 additions
and
13 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
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
53 changes: 53 additions & 0 deletions
53
charts/armo-components/assets/armo-registry-scan-cronjob-ful.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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: {{ .Values.armoRegistryScanScheduler.name }} | ||
namespace: {{ .Values.armoNameSpace }} | ||
labels: | ||
app: {{ .Values.armoRegistryScanScheduler.name }} | ||
tier: {{ .Values.global.namespaceTier}} | ||
armo.tier: "registry-scan" | ||
spec: | ||
schedule: "{{ .Values.armoRegistryScanScheduler.scanSchedule }}" | ||
jobTemplate: | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
armo.tier: "registry-scan" | ||
spec: | ||
containers: | ||
- name: {{ .Values.armoRegistryScanScheduler.name }} | ||
image: "{{ .Values.armoRegistryScanScheduler.image.repository }}:{{ .Values.armoRegistryScanScheduler.image.tag }}" | ||
imagePullPolicy: {{ .Values.armoRegistryScanScheduler.image.pullPolicy }} | ||
args: | ||
- -method=post | ||
- -scheme=http | ||
- -host={{ .Values.armoWebsocket.name }}:{{ .Values.armoWebsocket.service.port }} | ||
- -path=v1/triggerAction | ||
- -headers="Content-Type:application/json" | ||
- -path-body=/home/armo/request-body.json | ||
volumeMounts: | ||
- name: "request-body-volume" | ||
mountPath: /home/armo/request-body.json | ||
subPath: request-body.json | ||
readOnly: true | ||
{{- if .Values.volumeMounts }} | ||
{{ toYaml .Values.volumeMounts | indent 18 }} | ||
{{- end }} | ||
{{- if .Values.armoRegistryScanScheduler.volumeMounts }} | ||
{{ toYaml .Values.armoRegistryScanScheduler.volumeMounts | indent 18 }} | ||
{{- end }} | ||
restartPolicy: Never | ||
automountServiceAccountToken: false | ||
volumes: | ||
- name: "request-body-volume" # placeholder | ||
configMap: | ||
name: {{ .Values.armoRegistryScanScheduler.name }} | ||
{{- if .Values.volumes }} | ||
{{ toYaml .Values.volumes | indent 16 }} | ||
{{- end }} | ||
{{- if .Values.armoRegistryScanScheduler.volumes }} | ||
{{ toYaml .Values.armoRegistryScanScheduler.volumes | indent 16 }} | ||
{{- end }} | ||
|
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
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
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
11 changes: 11 additions & 0 deletions
11
charts/armo-components/templates/armo-registry-scan-recurring-cronjob-config-map.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: {{ .Values.armoNameSpace }} | ||
labels: | ||
app: {{ .Values.global.beConfig }} | ||
tier: {{ .Values.global.namespaceTier }} | ||
name: registry-scan-cronjob-template | ||
data: | ||
cronjobTemplate: |- | ||
{{ tpl (.Files.Get "assets/armo-registry-scan-cronjob-ful.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
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.