Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
roi-codefresh committed May 2, 2022
1 parent f88aed9 commit 1cb03b0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 270 deletions.
109 changes: 0 additions & 109 deletions csdp/hybrid/appset.yaml

This file was deleted.

34 changes: 10 additions & 24 deletions csdp/hybrid/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- appset.yaml
- ../base

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: csdp-runtime-version
behavior: create
literals:
- version=v0.0.312

replacements:
- source:
kind: ConfigMap
name: csdp-runtime-version
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
patches:
- target:
version: v1alpha1
group: argoproj.io
kind: ApplicationSet
patch: |-
- op: replace
path: /spec/template/spec/source/path
value: csdp/hybrid/{{path.basenameNormalized}}
109 changes: 0 additions & 109 deletions csdp/managed/appset.yaml

This file was deleted.

38 changes: 10 additions & 28 deletions csdp/managed/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- appset.yaml
- ../base

generatorOptions:
disableNameSuffixHash: true

configMapGenerator:
- name: codefresh-cm
behavior: create
options:
labels:
app.kubernetes.io/managed-by: codefresh
codefresh.io/entity: runtimeDef
literals:
- version=v0.0.313

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
patches:
- target:
version: v1alpha1
group: argoproj.io
kind: ApplicationSet
patch: |-
- op: replace
path: /spec/template/spec/source/path
value: csdp/managed/{{path.basenameNormalized}}

0 comments on commit 1cb03b0

Please sign in to comment.