Skip to content

Commit

Permalink
fix: fix default applicationset
Browse files Browse the repository at this point in the history
  • Loading branch information
diogosilva30 committed Aug 7, 2024
1 parent 0469d13 commit 905dd73
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions projects/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ spec:
goTemplate: true
goTemplateOptions: ["missingkey=error"]
generators:
- matrix:
generators:
- clusters:
selector:
# Target all clusters
matchLabels:
argocd.argoproj.io/secret-type: "cluster"
- git:
repoURL: &repo https://github.com/diogosilva30/k3s.dsilva.dev.git
revision: HEAD
directories:
- path: apps/*
- git:
repoURL: &repo https://github.com/diogosilva30/k3s.dsilva.dev.git
revision: HEAD
directories:
- path: apps/*
template:
metadata:
name: "{{ .name }}-{{ .path.basenameNormalized }}"
Expand All @@ -32,13 +25,13 @@ spec:
kustomize:
# Need to manually set annotations for now: https://github.com/argoproj/argo-cd/issues/11213
commonAnnotations:
dns: "{{.metadata.annotations.dns}}"
name: "{{.metadata.annotations.name}}"
environment: "{{ .nameNormalized }}"
dns: lab.local
name: LAB
environment: LAB
# Integration with external-dns
external-dns.alpha.kubernetes.io/target: "{{ .metadata.annotations.dns }}"
external-dns.alpha.kubernetes.io/target: lab.local
destination:
server: "{{ .server }}"
server: https://kubernetes.default.svc
namespace: "{{ .path.basenameNormalized }}"
syncPolicy:
automated:
Expand Down

0 comments on commit 905dd73

Please sign in to comment.