fluxcd / flux2-kustomize-helm-example

A GitOps workflow example for multi-env deployments with Flux, Kustomize and Helm.
https://fluxcd.io
Apache License 2.0
935 stars 992 forks source link

✗ sync path configuration ("./clusters/staging") would overwrite path ("./clusters/my-cluster") of existing Kustomization #23

Closed karthik012 closed 3 years ago

karthik012 commented 3 years ago

The following error occurs during the bootstrap: Any hints on this ?

$ flux bootstrap github --owner=${GITHUB_USER} --repository=${GITHUB_REPO} --branch=master --path=clusters/staging --personal ► connecting to github.com ✔ repository "https://github.com/xxxxxxx/flux2-kustomize-helm-example" created ► cloning branch "master" from Git repository "https://github.com/xxxxxxx/flux2-kustomize-helm-example.git" ✔ cloned repository ► generating component manifests ✔ generated component manifests ✔ committed sync manifests to "master" ("60adc00a8e500b024dc6059cbcb605297e10aa5c") ► pushing component manifests to "https://github.com/xxxxxx/flux2-kustomize-helm-example.git" ✔ reconciled components ► determining if source secret "flux-system/flux-system" exists ✔ source secret up to date ✗ sync path configuration ("./clusters/staging") would overwrite path ("./clusters/my-cluster") of existing Kustomization

stefanprodan commented 3 years ago

You can’t change the path of an existing install, so either uninstall flux or use the same path as before to upgrade.

karthik012 commented 3 years ago

I am on a windows machine, and had unzipped this release flux_0.12.3_windows_386.zip and added to the path. Could you please let me know what you meant by Uninstalling ? because removal of this exe would not recognize flux or what is the upgrade you have mentioned above ?

stefanprodan commented 3 years ago

You have Flux running on your cluster already, the error message tells you that you can’t change it to a new path.

karthik012 commented 3 years ago

@stefanprodan thanks for pointing it out. Missed it. Works fine now.!

raptordzuricsko commented 2 years ago

also had this issue, coming from a previous tutorial. might be worthwhile to include something like "if flux is already installed or coming from the main tutorial (which links here), please `flux uninstall"