Skip to content

Commit

Permalink
move replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
danielm-codefresh committed May 9, 2022
1 parent 6436960 commit 8fb75c0
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
14 changes: 0 additions & 14 deletions csdp/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,3 @@ configMapGenerator:
literals:
- version=v0.0.316

replacements:
- source:
kind: ConfigMap
name: codefresh-cm
fieldPath: data.version
targets:
- select:
kind: ApplicationSet
name: csdp
fieldPaths:
- spec.generators.0.git.revision
- spec.generators.1.git.revision
- spec.generators.2.git.revision
- spec.template.spec.source.targetRevision
15 changes: 15 additions & 0 deletions csdp/hybrid/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ patches:
- op: replace
path: /spec/template/spec/source/path
value: csdp/hybrid/{{path.basenameNormalized}}
replacements:
- source:
kind: ConfigMap
name: codefresh-cm
fieldPath: data.version
targets:
- select:
kind: ApplicationSet
name: csdp
fieldPaths:
- spec.generators.0.git.revision
- spec.generators.1.git.revision
- spec.generators.2.git.revision
- spec.template.spec.source.targetRevision
15 changes: 15 additions & 0 deletions csdp/managed/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ patches:
- op: replace
path: /spec/template/spec/source/path
value: csdp/managed/{{path.basenameNormalized}}
replacements:
- source:
kind: ConfigMap
name: codefresh-cm
fieldPath: data.version
targets:
- select:
kind: ApplicationSet
name: csdp
fieldPaths:
- spec.generators.0.git.revision
- spec.generators.1.git.revision
- spec.generators.2.git.revision
- spec.template.spec.source.targetRevision

0 comments on commit 8fb75c0

Please sign in to comment.