-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add kustomize library #12
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiachengxu 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 |
@jiachengxu: The following test failed, say
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. I understand the commands that are listed here. |
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.
Needs a bit more work:
- adding test case
- (maybe not in this PR) moving Nicos staticfs from private to utils repo
- better PR description/commit messages
@@ -2,6 +2,8 @@ module github.com/kubermatic/utils | |||
|
|||
go 1.14 | |||
|
|||
replace k8s.io/client-go => k8s.io/client-go v0.18.5 |
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.
why is this needed? And it worked previously.
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.
I think kustomize somehow depends on client-go? because now code cannot be compiled due to some issues of k8s.io/client-go v11.0.0+incompatible
, and in KubeCarrier we also override the version of client-go to make it properly.
"net/http" | ||
"os" | ||
|
||
statikfs "github.com/thetechnick/statik/fs" |
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.
btw, this should be moved to utils repo as well. It has no business being in private member repo.
@@ -0,0 +1,202 @@ | |||
/* |
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.
Please add a test for this file. In the test, you can use the fact the test working directory is set to the _test.go
directory. And then you use http.Dir
for accessing the test files (it implements the http.FileSystem
interface, read the docs). No need for statik for test cases.
@jiachengxu: PR needs rebase. 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. |
ref kubermatic/bulward#42