commit bc0e97dfbe4d9dc85561cbe45322d53d51aaa93d Author: dvirlabs <114520947+dvirlabs@users.noreply.github.com> Date: Sun Jul 27 18:22:20 2025 +0300 Initial commit diff --git a/applicationSet.yaml b/applicationSet.yaml new file mode 100644 index 0000000..6494914 --- /dev/null +++ b/applicationSet.yaml @@ -0,0 +1,33 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: net-envs-appset + namespace: argocd +spec: + generators: + - git: + repoURL: https://git.dvirlabs.com/app-definition.git + revision: HEAD + files: + - path: net-envs/*/metadata.yaml + extract: + env: '{{.env}}' + project: '{{.project}}' + namespace: '{{.namespace}}' + template: + metadata: + name: net-env-{{env}} + spec: + project: '{{project}}' + source: + repoURL: https://git.dvirlabs.com/app-definition.git + path: env-sets + directory: + recurse: true + destination: + server: https://kubernetes.default.svc + namespace: '{{namespace}}' + syncPolicy: + automated: + selfHeal: true + prune: true diff --git a/env-sets/dev/applicationSet.yaml b/env-sets/dev/applicationSet.yaml new file mode 100644 index 0000000..b5d06ad --- /dev/null +++ b/env-sets/dev/applicationSet.yaml @@ -0,0 +1,31 @@ +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: dev-ms-apps + namespace: argocd +spec: + generators: + - git: + repoURL: https://github.com/your-org/apps-config.git + revision: HEAD + files: + - path: net-envs/dev/*.yaml + template: + metadata: + name: dev-{{basenameNormalized}} + spec: + project: default + source: + repoURL: https://git.dvirlabs.com/dvirlabs/app-provision.git + targetRevision: HEAD + chart: charts/nginx-message + helm: + valueFiles: + - env-sets/dev/values.yaml + destination: + server: https://kubernetes.default.svc + namespace: dev + syncPolicy: + automated: + selfHeal: true + prune: true diff --git a/env-sets/dev/metadata.yaml b/env-sets/dev/metadata.yaml new file mode 100644 index 0000000..e69de29 diff --git a/env-sets/int/applicationSet.yaml b/env-sets/int/applicationSet.yaml new file mode 100644 index 0000000..e69de29 diff --git a/env-sets/int/metadata.yaml b/env-sets/int/metadata.yaml new file mode 100644 index 0000000..e69de29 diff --git a/env-sets/prod/applicationSet.yaml b/env-sets/prod/applicationSet.yaml new file mode 100644 index 0000000..e69de29 diff --git a/env-sets/prod/metadata.yaml b/env-sets/prod/metadata.yaml new file mode 100644 index 0000000..e69de29