Skip to content

Commit

Permalink
feat(argocd): add poketwo applicationset
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Jun 18, 2024
1 parent 5f20344 commit f3666a7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions kubernetes/argocd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,38 @@
};
};
};

resources."argoproj.io/v1alpha1".ApplicationSet.poketwo.spec = {
generators = [{
git = {
repoURL = "https://github.com/poketwo/nix.git";
revision = "cluster";
directories = [{ path = "*"; }];
};
}];

template = {
metadata = {
name = "{{.path.basename}}";
namespace = "argocd";
};
spec = {
project = "default";
source = {
repoURL = "https://github.com/poketwo/nix.git";
targetRevision = "cluster";
path = "{{.path.path}}";
};
destination = {
server = "https://kubernetes.default.svc";
namespace = "{{.path.basename}}";
};
syncPolicy = {
automated = { };
syncOptions = [ "CreateNamespace=true" ];
};
};
};
};
};
}

0 comments on commit f3666a7

Please sign in to comment.