kustomize edit add base/resource with remote URL not working

Created on 18 Feb 2020  路  8Comments  路  Source: kubernetes-sigs/kustomize

When I try to do something like
kustomize edit add resource github.com/org/repo//config?ref=master or
kustomize edit add base github.com/org/repo//config?ref=master
I keep getting errors like Error: [URL] does not exist

Is there a way to do this?

Using kustomize version v3.5.4

kinfeature

Most helpful comment

As for now, kustomize edit add only works for local files or dirs. We need to improve it.

All 8 comments

As for now, kustomize edit add only works for local files or dirs. We need to improve it.

I can take a look into this.

/assign

Is there any chance that this problem will be resolved soon?

@timbocau because this is in the porcelain command it is considered less critical than other areas we are focussed on right now.

Would you consider filing a PR to address it? link to edit command

Do you rely upon this command as part of any automated workflows?

@pwittrock The Best Practice for using remote bases / resources recommends usage of explicit references (e.g. Git revisions). On a new revision of the remote resource we want to automatically replace the current revision with the new one in kustomization.yaml. This change should also trigger ArgoCD to update resources in Kubernetes.

Filing a PR would be hard as I am not familiar with the Go Language.

A possible workaround could be clone the base repo first and then use kustomize edit add pointing to the local file.

A possible workaround could be clone the base repo first and then use kustomize edit add pointing to the local file.

I would have thought this more "best practice" rather than a workaround

Was this page helpful?
0 / 5 - 0 ratings

Related issues

natasha41575 picture natasha41575  路  3Comments

mgoodness picture mgoodness  路  4Comments

nabadger picture nabadger  路  4Comments

bcbrockway picture bcbrockway  路  5Comments

Liujingfang1 picture Liujingfang1  路  4Comments