-
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
Allow loading file from http #2167
Conversation
a8df26c
to
609c910
Compare
09732d7
to
f80c574
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replied inline.
@monopole -- FYI - this looks like something that would pretty clearly be nice to have |
d50634c
to
0d900fa
Compare
Made minor change to scheme check and added unit test @pwittrock |
/lgtm |
Thanks @yujunz ! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pwittrock, yujunz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test kustomize-presubmit-master |
/ok-to-test |
``` | ||
|
||
Kustomize will try loading resource as a file either from local or http. If it | ||
fails, try to load it as a directory or git repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "load it as a directory or git repository" mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Example of load as a directory or git repository:
resources:
- ../base
- github.com/kustless/kustomize-examples
It is not possible to tell if it is a file before trying to load.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So that example is now valid? The documentation only mentions loading via http[s]://
urls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example should be valid at 300dd10 but might be broken on 0b1ad03 , see #2264 .
github.com/kustless/kustomize-examples
is supported by the original git cloner. http loader is for single yaml file only as given in the example. It does not apply for git repository or http archive. When failed to load file, it will fallback to original directory loader and git cloner.
#2169 try to solve the remote get problem with go-getter but it was merged by accident before completely tested...
So it's not working anymore? Way too hard to find out anything with so many discussions |
hey @yellowmegaman, you can always check whether a merged commit is contained in a tagged version by navigating to the commit itself like here. As you can see, as of writing, there is no kustomize version that contains this commit, which means that this change is not really in any release yet, so it's not going to work yet. |
will this work for configuations blocks? |
Fix #970 #2068 #2156 #2161