Skip to content

Example | ApplicationSet Git Generator #80

Open
dag-andersen wants to merge 1 commit intomainfrom
git-generator-example
Open

Example | ApplicationSet Git Generator #80
dag-andersen wants to merge 1 commit intomainfrom
git-generator-example

Conversation

@dag-andersen
Copy link
Owner

@dag-andersen dag-andersen commented Dec 22, 2024

This example is based on this ApplicationSet that looks at files in examples/git-generator/resources/**

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: git-generator-example-appset
  namespace: argocd
spec:
  goTemplate: true
  goTemplateOptions: ["missingkey=error"]
  generators:
    - git:
        repoURL: https://github.com/dag-andersen/argocd-diff-preview.git
        revision: HEAD
        directories:
          - path: examples/git-generator/resources/**
        values:
          name: "{{ index .path.segments 3 }}"
  template:
    metadata:
      name: "{{ .values.name }}"
    spec:
      source:
        repoURL: https://github.com/dag-andersen/argocd-diff-preview.git
        path: "{{ .path.path }}"
      ...

@github-actions
Copy link
Contributor

github-actions bot commented Dec 22, 2024

Argo CD Diff Preview

Summary:

Total: 1 files changed

Added (1):
+ folder3 (+19)
folder3 (examples/git-generator/app/app-set.yaml)
@@ Application added: folder3 (examples/git-generator/app/app-set.yaml) @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: deploy-from-folder-three
+spec:
+  replicas: 2
+  selector:
+    matchLabels:
+      app: myapp
+  template:
+    metadata:
+      labels:
+        app: myapp
+    spec:
+      containers:
+      - image: dag-andersen/myapp:latest
+        name: myapp
+        ports:
+        - containerPort: 80

Stats:
[Applications: 45], [Full Run: 1m6s], [Rendering: 11s], [Cluster: 24s], [Argo CD: 31s]

@dag-andersen dag-andersen force-pushed the git-generator-example branch 2 times, most recently from 29b242c to 5d9cd3e Compare January 1, 2025 13:55
@dag-andersen dag-andersen force-pushed the git-generator-example branch 2 times, most recently from f5cb51c to e9ca869 Compare January 9, 2025 15:48
@dag-andersen dag-andersen force-pushed the git-generator-example branch from e9ca869 to f6c988a Compare January 13, 2025 20:31
@dag-andersen dag-andersen force-pushed the git-generator-example branch from f6c988a to 085442c Compare January 23, 2025 20:27
@dag-andersen dag-andersen force-pushed the main branch 2 times, most recently from cd8e422 to 15a1941 Compare February 15, 2025 12:08
@dag-andersen dag-andersen force-pushed the main branch 2 times, most recently from 3f0fb2f to 4030e15 Compare March 6, 2025 16:47
@dag-andersen dag-andersen force-pushed the git-generator-example branch 2 times, most recently from 8a7dc5c to 5987450 Compare March 17, 2025 21:35
@dag-andersen dag-andersen force-pushed the git-generator-example branch from 5987450 to 1f9e51c Compare April 30, 2025 18:34
@dag-andersen dag-andersen force-pushed the git-generator-example branch 2 times, most recently from eb707db to 196fe44 Compare July 16, 2025 17:19
@dag-andersen dag-andersen force-pushed the git-generator-example branch from 196fe44 to 05f0a72 Compare July 31, 2025 16:26
@dag-andersen dag-andersen force-pushed the git-generator-example branch from 05f0a72 to 7d7cae7 Compare August 30, 2025 11:44
@dag-andersen dag-andersen force-pushed the git-generator-example branch from 91c803f to dadfc8a Compare January 4, 2026 19:38
@dag-andersen dag-andersen force-pushed the git-generator-example branch from dadfc8a to 0014a23 Compare January 24, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant