@@ -2,9 +2,18 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
2
2
kind : Component
3
3
namespace : default
4
4
resources :
5
- - https://github.com/codefresh-io/argo-workflows/releases/download/v3.4.4-cf/install.yaml
6
-
5
+ - https://github.com/codefresh-io/argo-workflows/releases/download/v3.2.6-cap-CR-8697/install.yaml
7
6
patches :
7
+ # reset the crbs to `subject.namespace: default`, so that argo-cd will later change them to the actual ns
8
+ - target :
9
+ group : rbac.authorization.k8s.io
10
+ version : v1
11
+ kind : ClusterRoleBinding
12
+ patch : |-
13
+ - op: replace
14
+ path: /subjects/0/namespace
15
+ value: default
16
+
8
17
- target :
9
18
group : apps
10
19
version : v1
@@ -14,22 +23,29 @@ patches:
14
23
- op: add
15
24
path: /spec/template/spec/containers/0/args/-
16
25
value: --auth-mode=server
17
- - target :
18
- version : v1
19
- kind : ConfigMap
26
+
27
+ patchesStrategicMerge :
28
+ - |
29
+ apiVersion: v1
30
+ kind: ConfigMap
31
+ metadata:
20
32
name: workflow-controller-configmap
21
- patch : |-
22
- - op: add
23
- path: /data
24
- value:
25
- workflowDefaults: |
26
- spec:
27
- ttlStrategy:
28
- secondsAfterCompletion: 86400
29
- secondsAfterSuccess: 86400
30
- secondsAfterFailure: 86400
31
- podGC:
32
- strategy: OnWorkflowCompletion
33
- labelSelector:
34
- matchLabels:
35
- should-be-deleted: "true"
33
+ data:
34
+ # Fields reference can be found here: https://argoproj.github.io/argo-workflows/workflow-controller-configmap.yaml
35
+ workflowDefaults: |
36
+ spec:
37
+ ttlStrategy:
38
+ secondsAfterCompletion: 86400
39
+ secondsAfterSuccess: 86400
40
+ secondsAfterFailure: 86400
41
+ podGC:
42
+ strategy: OnWorkflowCompletion
43
+ labelSelector:
44
+ matchLabels:
45
+ should-be-deleted: "true"
46
+
47
+ configMapGenerator :
48
+ - name : workflow-controller-configmap
49
+ behavior : merge
50
+ literals :
51
+ - containerRuntimeExecutor=emissary
0 commit comments