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
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
Most helpful comment
As for now,
kustomize edit addonly works for local files or dirs. We need to improve it.