Skip to content

Conversation

@avetgit
Copy link
Contributor

@avetgit avetgit commented Dec 19, 2025

This PR refactors the ArgoCD feature to move the former argocd/argocd repository into argocd/cluster-resources/apps. All other applications have also been relocated under argocd/cluster-resources/apps to align with the new GitOps repository layout.

Introduced multi-source Applications for Helm + misc manifests

avetgit and others added 25 commits November 28, 2025 14:25
…oovy and remove setup of argocd/argocd in GitHandler
-set variables to private final
-use repoPath instead of clusterResourcesInitializationAction.repo.getAbsoluteLocalRepoTmpDir()
-set variables to private final
-use repoPath instead of clusterResourcesInitializationAction.repo.getAbsoluteLocalRepoTmpDir()
…rom RepoInitializationAction in order to copy only contents that are relevant for activated features
…e repoName the deployer get and based on this name ArgoCDStrategy deploy misc folder within this repo; Bug fix subdirs copy in repo initialization
…e>/, otherwise argocd will be templating these;

Bug fix multiTenant
…-structure

# Conflicts:
#	src/main/groovy/com/cloudogu/gitops/cli/GitopsPlaygroundCliMainScripted.groovy
#	src/main/groovy/com/cloudogu/gitops/features/ScmManagerSetup.groovy
#	src/main/groovy/com/cloudogu/gitops/features/argocd/ArgoCD.groovy
username: '${config.application.namePrefix}metrics'
password_file: '/etc/prometheus/secrets/prometheus-metrics-creds-scmm/password'
</#if>
<#if jenkins?? && jenkins?is_hash>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better check for config.jenkins.active

withOrgPrefix(namePrefix, "argocd/argocd"),
"GitOps repo for administration of ArgoCD"
)
if (includeClusterResources) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (includeClusterResources) {
gitProvider.createRepository(
withOrgPrefix(namePrefix, "argocd/cluster-resources"),
"GitOps repo for basic cluster-resources")


Boolean internal = true

String releaseName = "scmm"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release name shouldn’t be configurable until all hardcoded bindings (such as URLs) are removed, e.g. in ApplicationConfigurator:128.

@Override
Path writeTempFile(Map mapValues) {
println "TOP-LEVEL KEYS: ${mapValues.keySet()}"
println "GRAFANA NODE: ${mapValues.grafana}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helm values directly in the applications root folder. Other features->using template folder.

private Config config
private GitHandler gitHandler

Closure afterCopyHook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used here

// - ref: values → wird in valueFiles als $values verwendet
// - path: apps/<feature>/misc → zusätzliche Manifeste

def miscRepoUrl = "${clusterResourcesRepo.gitProvider.repoPrefix()}argocd/cluster-resources.git".toString()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repoPrefix returns->/scm//[]

when prefix is set we have to make sure it get returned with / otherwise we will have /argocd/cluster-resources.git.

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.

3 participants