-
Notifications
You must be signed in to change notification settings - Fork 166
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
Remove special handling for services when building the proxy URL #323
Conversation
I tested on 1.10 and 1.7 and they both worked. I don't have an older k8s cluster version to test on. |
Thanks for the detailed research, and the fix! LGTM if we are ok to drop <1.2, which we probably are. @moolitayer what do you think? Do we even have a documented min supported kubernetes version? |
We currently have this note in the README https://github.com/abonas/kubeclient#supported-kubernetes-versions. I'm okay with dropping kubetnetes versions who are no longer receiving patches. I think 1.7 is the oldest supported one. Should be documented. |
cc @pravi ^^ |
GKE doesn't support anything older than 1.7, according to their documentation (updated a week ago). That said, I checked the reported valid versions (for create or update) on a zone in each region and they consistently report only 1.8 and 1.9 for master and 1.5, 1.6, 1.7, 1.8, and 1.9 for nodes. I assume we only need to concern ourselves with master here because this related to the API connection. |
I changed the supported version text to be the last 3 versions. Hopefully this can get into a release soon, as I would expect 1.10 to be available in GKE soon. |
README.md
Outdated
@@ -301,7 +301,7 @@ puts config.context.namespace | |||
|
|||
### Supported kubernetes versions | |||
|
|||
For 1.1 only the core api v1 is supported, all api groups are supported in later versions. | |||
The last 3 minor versions are supported, although older versions may also work. This matches the [official support policy for Kubernetes](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#supported-releases-and-component-skew). | |||
|
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.
Maybe something like "We try to support the last 3 minor version bla bla" + "known unsupport are pre v1.2"
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.
Updated, let me know if this works.
Sorry for delay silence. This looks good, but I can't escape the conclusion that while minor, a known deliberate incompatibility to k8s version that used to work requires a major version bump. |
Sorry, this was long overdue. I'll try to release soon. |
Sorry again, I really dropped the ball on this. Finally releasing today (#344). One thing I wasted too much time on is running old k8s versions and recording discovery info. For the record, IF we wanted to make this backward-compatible, it may be possible to choose old vs new URL format from discovery info: So, did new format appear in 1.3 as we thought or already 1.2? Is 1.2 broken or only <=1.1? Anyway, if it's impractical to test 1.2, it's good to declare it unsupported :-) |
PSA: As you can see my response time is not good lately :-(. Mooli has switched to a new job and likely won't have time for kubeclient. I'd be happy if anyone wants to join as maintainer. |
this testing process sounds useful, can you document how you do this ?
(tools to spin up old clusters / what to test etc ... ideally that would be
automated, but docs would be a good step forward)
…On Mon, Jul 23, 2018 at 5:07 AM Beni Cherniavsky-Paskin < ***@***.***> wrote:
PSA: As you can my response time is not good lately. Mooli has switched to
a new job and likely won't have time for kubeclient. I'd be happy if anyone
wants to join as maintainer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#323 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAsZySL_nHbnWOv7c9GseuamTGSMrcKks5uJbySgaJpZM4T6ejX>
.
|
I can do some PR review/discuss issue etc small things if it helps.
…On Mon, Jul 23, 2018 at 7:24 AM Michael Grosser ***@***.***> wrote:
this testing process sounds useful, can you document how you do this ?
(tools to spin up old clusters / what to test etc ... ideally that would
be automated, but docs would be a good step forward)
On Mon, Jul 23, 2018 at 5:07 AM Beni Cherniavsky-Paskin <
***@***.***> wrote:
> PSA: As you can my response time is not good lately. Mooli has switched
> to a new job and likely won't have time for kubeclient. I'd be happy if
> anyone wants to join as maintainer.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#323 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAsZySL_nHbnWOv7c9GseuamTGSMrcKks5uJbySgaJpZM4T6ejX>
> .
>
|
I think that's perfectly reasonable. Can travis be scripted to spin up a matrix of openshift, minkube, and gke clusters to run e2e tests? Would RedHat be willing to provide commercial support? I don't expect the costs to be that high, but it might exceed the free tiers at some point. I am not sure if I'm of much help because I don't really know anything about the Kubernetes API. Happy to be a resource for GKE as time allows. |
The scripts at https://github.com/cben/kubernetes-discovery-samples/tree/master/tools spin up a all-in-one openshift / minikube, run scrape.sh, and take them down. Comment out the "down" at the end and you can interact with the "cluster". I hope to start consuming these recorded discovery jsons from multiple versions in kubeclient unit tests (via webmock?).
In theory yes, Travis in VM mode has docker, which allows minikube in |
This removes the special handling that is present when building the proxy URL for everything except pods. The proxy endpoint has been removed in 1.10, based on this PR: kubernetes/kubernetes#59884
From the PR, it seems like versions 1.2 and above should be compatible with the new URL scheme, although I don't have access to clusters that old to test.
Fixes #322