Entry resources
from kustomization.yaml supports only relative and absolute paths
#254
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/documentation
Categorizes issue or PR as related to documentation.
Problem
The documentation is misleading. We can read that in the
kustomization.yaml
file under the resources entry we can have:Source:
https://github.com/kubernetes-sigs/kustomize/blob/v1.0.6/pkg/types/kustomization.go#L42-L45
but unfortunately, it's not true.
Here is a logic which loads the files from the resources entry:
https://github.com/kubernetes-sigs/kustomize/blob/v1.0.6/pkg/resmap/resmap.go#L154
and underlying/finally it always calls the
ioutil.ReadFile
from the standard libraryhttps://github.com/kubernetes-sigs/kustomize/blob/v1.0.6/pkg/loader/fileloader.go#L104-L111
So URL will not be supported at all. Also, regex are also not supported, for example:
In the kubectl the have more complex logic for handling that, see: https://github.com/kubernetes/kubernetes/blob/v1.11.2/pkg/kubectl/genericclioptions/resource/builder.go#L190-L196.
Tested version
Expectation
The documentation is adjusted and present the correct state with some examples, or the logic from the kubectl is ported to the kustomize repo.
The text was updated successfully, but these errors were encountered: