From ff09cd38b1dff73b8e2247b5471793123f97cfce Mon Sep 17 00:00:00 2001 From: David Landry Date: Sun, 21 Jan 2024 22:50:16 -0500 Subject: [PATCH] chore(project): add game project --- projects/games.yaml | 93 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 projects/games.yaml diff --git a/projects/games.yaml b/projects/games.yaml new file mode 100644 index 0000000..1daa4b0 --- /dev/null +++ b/projects/games.yaml @@ -0,0 +1,93 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + annotations: + argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc + argocd.argoproj.io/sync-options: PruneLast=true + argocd.argoproj.io/sync-wave: "-2" + creationTimestamp: null + name: games + namespace: argocd +spec: + clusterResourceWhitelist: + - group: "*" + kind: "*" + description: games project + destinations: + - namespace: "*" + server: "*" + namespaceResourceWhitelist: + - group: "*" + kind: "*" + sourceRepos: + - "*" +status: {} + +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + annotations: + argocd.argoproj.io/sync-wave: "0" + creationTimestamp: null + name: games + namespace: argocd +spec: + generators: + - git: + files: + - path: apps/**/games/config.json + repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + - git: + files: + - path: apps/**/games/config_dir.json + repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git + requeueAfterSeconds: 20 + revision: "" + template: + metadata: {} + spec: + destination: {} + project: "" + source: + directory: + exclude: "{{ exclude }}" + include: "{{ include }}" + jsonnet: {} + recurse: true + repoURL: "" + syncPolicy: {} + template: + metadata: + labels: + app.kubernetes.io/managed-by: argocd-autopilot + app.kubernetes.io/name: "{{ appName }}" + name: games-{{ userGivenName }} + namespace: argocd + spec: + destination: + namespace: "{{ destNamespace }}" + server: "{{ destServer }}" + ignoreDifferences: + - group: argoproj.io + jsonPointers: + - /status + kind: Application + project: games + source: + path: "{{ srcPath }}" + repoURL: "{{ srcRepoURL }}" + targetRevision: "{{ srcTargetRevision }}" + syncPolicy: + automated: + allowEmpty: true + prune: true + selfHeal: true +status: {}