File tree Expand file tree Collapse file tree 4 files changed +64
-29
lines changed
base_components/bootstrap
hybrid/_components/bootstrap Expand file tree Collapse file tree 4 files changed +64
-29
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ configMapGenerator:
11
11
- name : codefresh-cm
12
12
behavior : create
13
13
literals :
14
- - version=0.0.487
14
+ - version=0.0.488
Original file line number Diff line number Diff line change 44
44
kustomize :
45
45
forceNamespace : true
46
46
47
- - git :
48
- files :
49
- - path : csdp/base_components/git-sources/**/config_dir.json # replaced by specific flavor
50
- repoURL : https://github.com/codefresh-io/csdp-official.git
51
- requeueAfterSeconds : 15
52
- revision : RUNTIME_VERSION
53
- template :
54
- metadata :
55
- labels :
56
- codefresh.io/entity : " {{labels.codefresh_io_entity}}"
57
- codefresh.io/internal : " {{labels.codefresh_io_internal}}"
58
- finalizers :
59
- - resources-finalizer.argocd.argoproj.io
60
- spec :
61
- destination : {}
62
- project : " "
63
- source :
64
- repoURL : " {{srcRepoURL}}"
65
- path : " {{srcPath}}"
66
- targetRevision : " {{srcTargetRevision}}"
67
- directory :
68
- exclude : " {{exclude}}"
69
- include : " {{include}}"
70
- recurse : true
71
47
template :
72
48
metadata :
73
49
labels :
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ configMapGenerator:
12
12
- name : codefresh-cm
13
13
behavior : create
14
14
literals :
15
- - version=0.0.487 # Runtime version
16
- - bootstrapRevision=0.0.487 # Tag to use for bootstrap
15
+ - version=0.0.488 # Runtime version
16
+ - bootstrapRevision=0.0.488 # Tag to use for bootstrap
17
17
- appsetRequeueTime=15
18
18
19
19
replacements :
@@ -29,5 +29,4 @@ replacements:
29
29
fieldPaths :
30
30
- spec.generators.0.git.revision
31
31
- spec.generators.1.git.revision
32
- - spec.generators.2.git.revision
33
32
- spec.template.spec.source.targetRevision
Original file line number Diff line number Diff line change 1
1
apiVersion : kustomize.config.k8s.io/v1alpha1
2
2
kind : Component
3
- # Placeholder for future patches
3
+
4
+ # Add marketplace git-source
5
+ patches :
6
+ - target :
7
+ version : v1alpha1
8
+ group : argoproj.io
9
+ kind : ApplicationSet
10
+ patch : |-
11
+ - op: add
12
+ path: /spec/generators/-
13
+ value: {
14
+ "git": {
15
+ "files": [
16
+ {
17
+ "path": "csdp/base_components/git-sources/**/config_dir.json"
18
+ }
19
+ ],
20
+ "repoURL": "https://github.com/codefresh-io/csdp-official.git",
21
+ "requeueAfterSeconds": 15,
22
+ "revision": "RUNTIME_VERSION",
23
+ "template": {
24
+ "metadata": {
25
+ "labels": {
26
+ "codefresh.io/entity": "{{labels.codefresh_io_entity}}",
27
+ "codefresh.io/internal": "{{labels.codefresh_io_internal}}"
28
+ },
29
+ "finalizers": [
30
+ "resources-finalizer.argocd.argoproj.io"
31
+ ]
32
+ },
33
+ "spec": {
34
+ "destination": {},
35
+ "project": "",
36
+ "source": {
37
+ "repoURL": "{{srcRepoURL}}",
38
+ "path": "{{srcPath}}",
39
+ "targetRevision": "{{srcTargetRevision}}",
40
+ "directory": {
41
+ "exclude": "{{exclude}}",
42
+ "include": "{{include}}",
43
+ "recurse": true
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ replacements :
52
+ # template the version from the configmap into the applicationset generators
53
+ # ** make sure the generator index is correct **
54
+ - source :
55
+ kind : ConfigMap
56
+ name : codefresh-cm
57
+ fieldPath : data.bootstrapRevision
58
+ targets :
59
+ - select :
60
+ kind : ApplicationSet
61
+ name : csdp
62
+ fieldPaths :
63
+ - spec.generators.2.git.revision
You can’t perform that action at this time.
0 commit comments