-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathargo-main.yml
63 lines (63 loc) · 2.08 KB
/
argo-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: orchestration-
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
serviceAccountName: clusterscanner
ttlStrategy:
secondsAfterSuccess: 3600
secondsAfterFailure: 7200
artifactRepositoryRef:
configMap: artifact-repositories
key: default-v1
entrypoint: main
arguments:
parameters:
- name: scanId
value: "{{ workflow.creationTimestamp.Y }}{{ workflow.creationTimestamp.m }}{{ workflow.creationTimestamp.d }}-{{ workflow.creationTimestamp.H }}{{ workflow.creationTimestamp.M }}{{ workflow.creationTimestamp.S }}"
- name: gitSecretName
value: "github"
- name: s3SecretName
value: "api-credentials"
- name: s3ConfigName
value: "api-config"
- name: imageSourceListConfigMapName
value: "image-source-list"
- name: registrySecretName
value: "registry-default"
- name: defectDojoConfigMapName
value: "defectdojo"
- name: slackTokenSecretName
value: "slacktoken"
- name: emailSecretName
value: "email"
- name: enforceSlackChannel
value: "#security-notifications-test"
- name: newVersionImageFilter
value: "quay.io/sdase/|swaggerapi/petstore"
- name: allResultsGitTarget
value: ""# "ssh://[email protected]/SDA-SE/cluster-image-scanner-test-results"
- name: imageRegistryBase
value: "quay.io/sdase"
- name: clusterImageScannerImageTag
value: "###clusterImageScannerImageTag###"
- name: errorTargets
value: '[{ "channel":"#security-notifications-test", "type": "slack"} ]'
templates:
- name: main
steps:
- - name: delete-test-products
templateRef:
name: delete-test-products-template
template: main
- - name: orchestration-job
templateRef:
name: orchestration-job-template
template: main
- - name: test-job
templateRef:
name: test-job-template
template: main