-
Notifications
You must be signed in to change notification settings - Fork 54
Optimize repo structure #335
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
…oovy and remove setup of argocd/argocd in GitHandler
…thin cluster-resources
-set variables to private final -use repoPath instead of clusterResourcesInitializationAction.repo.getAbsoluteLocalRepoTmpDir()
-set variables to private final -use repoPath instead of clusterResourcesInitializationAction.repo.getAbsoluteLocalRepoTmpDir()
…s ArgoCDRepoLayout
…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
…d petclinic-plain
… into feature/optimize-repo-structure
…-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> |
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.
better check for config.jenkins.active
| withOrgPrefix(namePrefix, "argocd/argocd"), | ||
| "GitOps repo for administration of ArgoCD" | ||
| ) | ||
| if (includeClusterResources) { |
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.
| if (includeClusterResources) { | |
| gitProvider.createRepository( | |
| withOrgPrefix(namePrefix, "argocd/cluster-resources"), | |
| "GitOps repo for basic cluster-resources") |
|
|
||
| Boolean internal = true | ||
|
|
||
| String releaseName = "scmm" |
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.
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}" |
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.
can be removed
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.
helm values directly in the applications root folder. Other features->using template folder.
| private Config config | ||
| private GitHandler gitHandler | ||
|
|
||
| Closure afterCopyHook |
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.
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() |
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.
repoPrefix returns->/scm//[]
when prefix is set we have to make sure it get returned with / otherwise we will have /argocd/cluster-resources.git.
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