flux-kustomize-example icon indicating copy to clipboard operation
flux-kustomize-example copied to clipboard

component=sync-loop err="loading resources from repo: duplicate definition of 'demo:deployment/podinfo'

Open nikhilbalekundargi opened this issue 4 years ago • 4 comments

Forked repo to my github account

Installed flux using below command - helm upgrade -i flux fluxcd/flux --set [email protected]:nikhilbalekundargi/flux-kustomize-example.git --set manifest-generation=true --set git-path=staging --set syncGarbageCollection.enabled=true --namespace flux --set helm.versions=v3 --wait Added the deploy keys.

But getting below error -

ts=2020-06-29T11:39:45.025457267Z caller=loop.go:133 component=sync-loop event=refreshed url=ssh://[email protected]/nikhilbalekundargi/flux-kustomize-example.git branch=master HEAD=6afd0470c3e3638e6be049e4cc092f5181cd4f40
ts=2020-06-29T11:39:45.078872121Z caller=sync.go:73 component=daemon info="trying to sync git changes to the cluster" old= new=6afd0470c3e3638e6be049e4cc092f5181cd4f40
ts=2020-06-29T11:39:45.085088452Z caller=loop.go:107 component=sync-loop err="loading resources from repo: duplicate definition of 'demo:deployment/podinfo' (in base/podinfo-dep.yaml and production/flux-patch.yaml)"

https://github.com/fluxcd/flux/issues/3166

nikhilbalekundargi avatar Jun 29 '20 11:06 nikhilbalekundargi

do we have any update on the above mentioned issue

Pradeepadtricon avatar Jul 01 '20 06:07 Pradeepadtricon

There is no --set manifest-generation=truesee https://github.com/fluxcd/flux/blob/master/chart/flux/values.yaml#L290

stefanprodan avatar Jul 01 '20 07:07 stefanprodan

There is no --set manifest-generation=truesee https://github.com/fluxcd/flux/blob/master/chart/flux/values.yaml#L290

@stefanprodan thank you for the clarification. As the example repo https://github.com/fluxcd/flux-kustomize-example its manifest-generation.

nikhilbalekundargi avatar Jul 01 '20 10:07 nikhilbalekundargi

That's the command flag name, the Helm chart uses a different naming scheme.

stefanprodan avatar Jul 01 '20 11:07 stefanprodan