-
Notifications
You must be signed in to change notification settings - Fork 19
/
kustomization.yaml
38 lines (34 loc) · 1 KB
/
kustomization.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
namePrefix: bike-rental-app-
patches:
- patch: |-
- op: replace
path: /spec/template/metadata/name
value: '{{name}}-bike-rental-app'
- op: replace
path: /spec/template/spec/source/path
value: acm/odh-edge/apps/bike-rental-app
- op: replace
path: /spec/template/spec/destination/namespace
value: bike-rental-app
- op: replace
path: /spec/template/metadata/annotations/apps.open-cluster-management.io~1ocm-managed-cluster-app-namespace
value: openshift-gitops
target:
group: argoproj.io
version: v1alpha1
kind: ApplicationSet
replacements:
- source:
kind: Placement
group: cluster.open-cluster-management.io
fieldPath: metadata.name
targets:
- select:
group: argoproj.io
kind: ApplicationSet
fieldPaths:
- spec.generators.0.clusterDecisionResource.labelSelector.matchLabels.cluster\.open-cluster-management\.io/placement