Skip to content

Conversation

@nihussmann
Copy link
Contributor

  • 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.

- 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.
@nihussmann nihussmann marked this pull request as draft October 27, 2025 09:16
- extract hardcoded references for example-apps in unit test
@mdroll mdroll force-pushed the feature/extract-example-apps branch from a26830b to 2be7e88 Compare October 27, 2025 14:28
@mdroll mdroll changed the title feat(content): laod example-apps via content-loader functionality feat(content): load example-apps via content-loader functionality Oct 27, 2025
@mdroll mdroll force-pushed the feature/extract-example-apps branch from a3cbc49 to a727683 Compare October 27, 2025 15:46
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"
Copy link
Contributor Author

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
Copy link
Contributor Author

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 {
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants