Skip to content

Commit f013b0f

Browse files
danielm-codefreshdaniel-codefresh
authored andcommitted
Revert "upgrade argo-workflows to 3.4 (#144)"
This reverts commit ce2330b.
1 parent 31a0e1d commit f013b0f

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

csdp/base_components/apps/argo-workflows/_components/codefresh-base/kustomization.yaml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,18 @@ apiVersion: kustomize.config.k8s.io/v1alpha1
22
kind: Component
33
namespace: default
44
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
76
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+
817
- target:
918
group: apps
1019
version: v1
@@ -14,22 +23,29 @@ patches:
1423
- op: add
1524
path: /spec/template/spec/containers/0/args/-
1625
value: --auth-mode=server
17-
- target:
18-
version: v1
19-
kind: ConfigMap
26+
27+
patchesStrategicMerge:
28+
- |
29+
apiVersion: v1
30+
kind: ConfigMap
31+
metadata:
2032
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

Comments
 (0)