-
Notifications
You must be signed in to change notification settings - Fork 51
feat(content): load example-apps via content-loader functionality #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Move example-app definitions from `argocd/example-apps` and `applications/` into `examples/example-apps-via-content-loader` - Adjust Dockerfile to initialize example-apps folder as standalone git repo for content-loader - Update `GitopsPlaygroundCli` to include content examples via `--content.examples` flag - Extend config merging logic (`MapUtils.deepMerge`) to support additional example content source - Update schema, configurator, and tests to handle example-apps path and validation - Clean up redundant templates and adjust paths accordingly This refactor isolates example application definitions into a dedicated content-loader directory, simplifying configuration handling and enabling dynamic content loading via the CLI.
- extract hardcoded references for example-apps in unit test
a26830b to
2be7e88
Compare
…back to main for test evaluation
a3cbc49 to
a727683
Compare
…edentials verification parts
| source: | ||
| path: argocd/ | ||
| repoURL: ${scmm.repoUrl}argocd/example-apps<#if config.scmm.provider == "gitlab">.git</#if> | ||
| repoURL: "http://scmm.${config.application.namePrefix}scm-manager.svc.cluster.local/scm/repo/${config.application.namePrefix}argocd/example-apps" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example apps would only work with the SCM-Manager instance running internally on the same Kubernetes cluster. This setup would not support an external SCM-Manager.
| apiVersion: argoproj.io/v1alpha1 | ||
| kind: Application | ||
| metadata: | ||
| name: misc-example-apps-production |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess this will only work in non dedicated instances.
| } | ||
| } | ||
|
|
||
| static class ImagesSchema { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readme.md still lists this params.
argocd/example-appsandapplications/intoexamples/example-apps-via-content-loaderGitopsPlaygroundClito include content examples via--content.examplesflagMapUtils.deepMerge) to support additional example content sourceThis refactor isolates example application definitions into a dedicated content-loader directory, simplifying configuration handling and enabling dynamic content loading via the CLI.