Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions examples/use-cases/appset-refactoring/appsets/my-app-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- list:
elements:
- env: production
- env: staging
- git:
repoURL: https://github.com/rklonner/argocd-diff-preview
revision: HEAD
directories:
- path: 'examples/use-cases/appset-refactoring/my-service/overlay/*'
template:
metadata:
name: 'refactoring-appset-example-{{.env}}'
name: 'refactoring-appset-example-{{.path.basename}}'
spec:
project: default
destination:
name: in-cluster
namespace: 'refactoring-appset-example-{{.env}}'
namespace: 'refactoring-appset-example-{{.path.basename}}'
source:
repoURL: https://github.com/dag-andersen/argocd-diff-preview
repoURL: https://github.com/rklonner/argocd-diff-preview
targetRevision: HEAD
path: 'examples/use-cases/appset-refactoring/my-service/overlay/{{.env}}/'
path: 'examples/use-cases/appset-refactoring/my-service/overlay/{{.path.basename}}/'
syncPolicy:
automated:
prune: true
Expand Down