-
Notifications
You must be signed in to change notification settings - Fork 24
Support rest config to talk to the control plane #68
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mengqiy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
adb0f74
to
0862e8e
Compare
/cc @DirectXMan12 |
integration/control_plane.go
Outdated
c := &rest.Config{ | ||
Host: f.APIURL().String(), | ||
ContentConfig: rest.ContentConfig{ | ||
NegotiatedSerializer: scheme.Codecs.WithoutConversion(), |
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.
do we actually need this?
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.
e3464df
to
a25dd5b
Compare
/cc @hoegaarden |
That looks great! However, when we started out with this, one of the goals we had was to make this thing be vendor-able into
So we might want to revisit: Do we still need to be vendor-able into
|
This is a hypothetical, right? I didn't see anything currently in k/k using this.
I think this is probably fine in the short term, especially considering the practical chance of non-compatibility is fairly low, depending on how things are structured (i.e. it's not using anything super-intricate) -- for instance, we could use a dynamic client w/ unstructured instead of the generated clients. |
How would you all fell about:
It seems envtest is doing a lot of things to make cc: @apelisse @marun @DirectXMan12 A quick glance over https://cs.k8s.io/?q=testing_frameworks seems to suggest that this package is used in places where controller-runtime is used and it gets pulled in as a transitive dependency. |
@mengqiy: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
I think we're fine with that from the controller-runtime side :-) |
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. |
I will move this PR to controller-runtime. |
fixes #67