Skip to content

Refactor ArgoCD: move GitOps repository logic into ArgoCDRepoSetup#366

Merged
nihussmann merged 22 commits intomainfrom
feature/restructure-argocd
Feb 24, 2026
Merged

Refactor ArgoCD: move GitOps repository logic into ArgoCDRepoSetup#366
nihussmann merged 22 commits intomainfrom
feature/restructure-argocd

Conversation

@avetgit
Copy link
Copy Markdown
Contributor

@avetgit avetgit commented Feb 20, 2026

ArgoCD previously combined ArgoCD feature setup with GitOps repository management. This change extracts repository-related logic into ArgoCDRepoSetup, making the codebase easier to maintain and extend.

ArgoCD focuses on ArgoCD configuration/setup

ArgoCDRepoSetup owns GitOps repository initialization and preparation steps

Reduced complexity and improved unit test coverage potential

…rgocd

# Conflicts:
#	src/main/groovy/com/cloudogu/gitops/features/PrometheusStack.groovy
#	src/main/groovy/com/cloudogu/gitops/features/argocd/ArgoCD.groovy
#	src/main/groovy/com/cloudogu/gitops/features/deployment/ArgoCdApplicationStrategy.groovy
#	src/test/groovy/com/cloudogu/gitops/features/argocd/ArgoCDTest.groovy
…rgocd

# Conflicts:
#	src/main/groovy/com/cloudogu/gitops/features/Monitoring.groovy
#	src/main/groovy/com/cloudogu/gitops/features/argocd/RepoLayout.groovy
…rgocd

# Conflicts:
#	src/test/groovy/com/cloudogu/gitops/features/MonitoringTest.groovy
#	src/test/groovy/com/cloudogu/gitops/features/argocd/ArgoCDTest.groovy
private static final String APPS_MAILHOG_REL = 'apps/mail'
private static final String APPS_SCMMANAGER_REL = 'apps/scm-manager'
private static final String APPS_ARGOCD_REL = 'apps/argocd'
class RepoLayout {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we should rename it to ClusterResourceRepoLayout, since it’s a rather specific repository layout and not intended for general use.

deployHelmChart('prometheusstack', 'kube-prometheus-stack', namespace, config.features.monitoring.helm, HELM_VALUES_PATH, config)
}
// Remove dashboards for features that are not enabled
cleanupUnusedDashboards(clusterResourcesRepo)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cleanup -> remove? more explicit?

@nihussmann nihussmann merged commit 0487ef4 into main Feb 24, 2026
1 check passed
@nihussmann nihussmann deleted the feature/restructure-argocd branch February 24, 2026 11:55
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.

2 participants