|
| 1 | +apiVersion: argoproj.io/v1alpha1 |
| 2 | +kind: AppProject |
| 3 | +metadata: |
| 4 | + annotations: |
| 5 | + argocd.argoproj.io/sync-options: PruneLast=true |
| 6 | + argocd.argoproj.io/sync-wave: "-2" |
| 7 | + creationTimestamp: null |
| 8 | + name: csdp |
| 9 | + namespace: default # replace |
| 10 | +spec: |
| 11 | + clusterResourceWhitelist: |
| 12 | + - group: "*" |
| 13 | + kind: "*" |
| 14 | + description: csdp project |
| 15 | + destinations: |
| 16 | + - namespace: "*" |
| 17 | + server: "*" |
| 18 | + namespaceResourceWhitelist: |
| 19 | + - group: "*" |
| 20 | + kind: "*" |
| 21 | + sourceRepos: |
| 22 | + - "*" |
| 23 | + |
| 24 | +--- |
| 25 | +apiVersion: argoproj.io/v1alpha1 |
| 26 | +kind: ApplicationSet |
| 27 | +metadata: |
| 28 | + annotations: |
| 29 | + argocd.argoproj.io/sync-wave: "0" |
| 30 | + name: csdp |
| 31 | + namespace: default # replace |
| 32 | +spec: |
| 33 | + syncPolicy: |
| 34 | + preserveResourcesOnDeletion: true |
| 35 | + generators: |
| 36 | + - git: |
| 37 | + repoURL: https://github.com/codefresh-io/csdp-official-poc.git |
| 38 | + revision: RUNTIME_VERSION |
| 39 | + directories: |
| 40 | + - path: csdp/hybrid/* |
| 41 | + requeueAfterSeconds: 15 |
| 42 | + template: |
| 43 | + metadata: |
| 44 | + finalizers: |
| 45 | + - resources-finalizer.argocd.argoproj.io |
| 46 | + spec: |
| 47 | + destination: {} |
| 48 | + project: "" |
| 49 | + source: |
| 50 | + repoURL: "" |
| 51 | + - git: |
| 52 | + repoURL: https://github.com/codefresh-io/csdp-official-poc.git |
| 53 | + revision: RUNTIME_VERSION |
| 54 | + directories: |
| 55 | + - path: csdp/hybrid/argo-cd |
| 56 | + requeueAfterSeconds: 15 |
| 57 | + template: |
| 58 | + metadata: {} |
| 59 | + spec: |
| 60 | + destination: {} |
| 61 | + project: "" |
| 62 | + source: |
| 63 | + repoURL: "" |
| 64 | + - git: |
| 65 | + files: |
| 66 | + - path: csdp/hybrid/**/config_dir.json |
| 67 | + repoURL: https://github.com/codefresh-io/csdp-official-poc.git |
| 68 | + requeueAfterSeconds: 15 |
| 69 | + revision: RUNTIME_VERSION |
| 70 | + template: |
| 71 | + metadata: |
| 72 | + finalizers: |
| 73 | + - resources-finalizer.argocd.argoproj.io |
| 74 | + spec: |
| 75 | + destination: {} |
| 76 | + project: "" |
| 77 | + source: |
| 78 | + repoURL: "" |
| 79 | + directory: |
| 80 | + exclude: "{{exclude}}" |
| 81 | + include: "{{include}}" |
| 82 | + recurse: true |
| 83 | + template: |
| 84 | + metadata: |
| 85 | + labels: |
| 86 | + app.kubernetes.io/name: "{{path.basenameNormalized}}" |
| 87 | + codefresh.io/entity: "component" |
| 88 | + codefresh.io/internal: "true" |
| 89 | + name: csdp-{{path.basenameNormalized}} |
| 90 | + namespace: default # replace |
| 91 | + spec: |
| 92 | + destination: |
| 93 | + namespace: default # replace |
| 94 | + server: "https://kubernetes.default.svc" |
| 95 | + ignoreDifferences: |
| 96 | + - group: argoproj.io |
| 97 | + jsonPointers: |
| 98 | + - /status |
| 99 | + kind: Application |
| 100 | + project: csdp |
| 101 | + source: |
| 102 | + path: csdp/hybrid/{{path.basenameNormalized}} |
| 103 | + repoURL: https://github.com/codefresh-io/csdp-official-poc.git |
| 104 | + targetRevision: RUNTIME_VERSION # replace with runtime version |
| 105 | + syncPolicy: |
| 106 | + automated: |
| 107 | + allowEmpty: true |
| 108 | + prune: true |
| 109 | + selfHeal: true |
0 commit comments