Skip to content
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

Disconnect gitops from the main branch #177

Open
nacx opened this issue Dec 20, 2022 · 2 comments
Open

Disconnect gitops from the main branch #177

nacx opened this issue Dec 20, 2022 · 2 comments

Comments

@nacx
Copy link
Member

nacx commented Dec 20, 2022

Having gitops in the main branch is a bit inconvenient, as demos that use gitops will end up messing the main git tree.

As an alternative, we could probably better configure gitops to rely on custom branches, or even custom forks, to better disconnect custom temporal tweaks from the main repo. This could be something configurable, defaulting to a demo-configs branch, but still allow the ArgoCD module to configure a fork+branch as an alternative.

@smarunich
Copy link
Collaborator

I am working on re-factoring argocd, i will keep you posted. The goal is to expose the variables to allow to map the "user-defined" applications to the target clusters.

Envision something like this:

    "argocd_applications": {
        "properties": { "url": ""},
        "tsb": {
        },
        "bookinfo": [
            {
                "cloud": "gcp",
                "cluster_id": 0
            },
            {
              "cloud": "gcp",
              "cluster_id": 1
          }
        ],
        "eshop": [
            {
                "cloud": "azure",
                "cluster_id": 0
            },
            {
              "cloud": "azure",
              "cluster_id": 1
          }
        ]
    }

@boeboe
Copy link
Contributor

boeboe commented Dec 24, 2022

May I suggest to use this repo only as a blueprint for gitops driven applications. The TF scripts can spin up a seperate VM with a git server (my suggestion is gogs, a GoLang based lightweight git server) that hosts these apps instead. This way demos doing changes in git-gogs won't affect others and more flexibility is offered in terms of application to cluster mapping.

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

No branches or pull requests

3 participants