This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add the ability to exclude files when using the git file genera…
…tor (#468) Signed-off-by: Adam Johnson <adamjohnson01@gmail.com>
- Loading branch information
1 parent
2e8d85e
commit 2db748f
Showing
15 changed files
with
211 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
examples/git-generator-files-discovery/cluster-config/engineering/test/config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"aws_account": "123456", | ||
"asset_id": "11223344", | ||
"cluster": { | ||
"owner": "cluster-admin@company.com", | ||
"name": "engineering-test", | ||
"address": "http://1.2.3.4" | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/git-generator-files-discovery/excludes/git-generator-files.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ApplicationSet | ||
metadata: | ||
name: guestbook | ||
spec: | ||
generators: | ||
- git: | ||
repoURL: https://github.com/argoproj/applicationset.git | ||
revision: HEAD | ||
files: | ||
- path: "examples/git-generator-files-discovery/cluster-config/**/config.json" | ||
- path: "examples/git-generator-files-discovery/cluster-config/**/config.json" | ||
exclude: true | ||
template: | ||
metadata: | ||
name: '{{cluster.name}}-guestbook' | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/argoproj/applicationset.git | ||
targetRevision: HEAD | ||
path: "examples/git-generator-files-discovery/apps/guestbook" | ||
destination: | ||
server: https://kubernetes.default.svc | ||
#server: '{{cluster.address}}' | ||
namespace: guestbook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.