-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kustomize doesn't fetch YAML from HTTPS URLs #2068
Comments
AFAIK, remote target is limited to a few git repo URL scheme. You may have a look at https://github.com/kubernetes-sigs/kustomize/blob/master/examples/goGetterGeneratorPlugin.md for your use case. |
+1 .
but referring to one single file based on Github URL doesn't seem possible. |
I was reading this documentation, which made me think that all kinds of go-getter URLs were supported generally. So this sounds like "behaves correctly"? |
@piyushGoyal2 you are right about single file cannot be referenced We may play some trick in go-getter plugin to make it work for generator But it does not apply for transformers like patches. |
@yujunz - Does it always look out for kustomization.yaml in remote repository? My assumption was that using go-getter, it just clones the repo as a sub directory in the current folder and then rest of the kustomize logic applies on top of it. Maybe I don't need to download particular files. I could clone the remote repository with sub folders and then give the path of cloned repo sub folder to include in the patches. Looks like a pretty strong use case to me. What would you suggest? |
The go-getter plugin does not expect kustomization, you may override the command. The builtin resource generator does looking for a directory with |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I would expect to be able to reference a remote resource. |
It should be supported in version >3.5.5 now. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Based on the documentation , I was expecting that I could use a https:// URL as a YAML resource, but kustomize doesn't seem to find it (or doesn't follow the GitHub redirects?).
The text was updated successfully, but these errors were encountered: