-
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
Directory expected error for resource 'https://github.com/projectcalico/calico/manifests/tigera-operator.yaml?ref=v3.24.4' #4862
Comments
@jameshearttech: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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. |
We recently ran into this issue as well from yesterday and it magically resolved itself a few minutes ago. Curious if there was a root cause |
The URL provided doesn't work for me with or without the ref. By default, Kustomize treats remote references as bases that it should clone. To reference a file, you need to provide a URL that directly provides content, i.e. for Github the raw URL. For example: https://raw.githubusercontent.com/projectcalico/calico/v3.24.5/manifests/tigera-operator.yaml This is one of the topics where our docs are fragmented (#4338), and the individual file support seems to only be explained here: https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md#remote-files. /kind support |
@KnVerey: 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. |
Describe the bug
When a kustomization resource is a yaml file in github and ?ref= is used I get an error that a directory was expected. When I use the permanent link instead of the ref it works as expected.
Files that can reproduce the issue
examples.tar.gz
Expected output
Actual output
Kustomize version
I'm not sure which version is included with kubectl 1.25.3. Is it 4.20?
Platform
OS: Ubuntu 22.04.1
Kubernetes: 1.25.3
Additional context
The text was updated successfully, but these errors were encountered: