-
Notifications
You must be signed in to change notification settings - Fork 115
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
Handle buggy case for headless Service with no port #366
Conversation
Versions of k8s prior to 1.12.1 have a bug that affects headless Services with no ports specified. These Services do not get Endpoints assigned, which breaks the default awaiter logic. This changeset skips the Pod ready checks for Services affected by this bug.
Regex didn't work for multi-digit numbers.
Hmm, this fixes the bug, but broke unit tests due to a call to ServerVersion (not populated by the test mocks). Working on a fix now. |
Ok, pushed up a change that should fix unit tests, and I'll go back through and pull Patch out of the server version since I ended up not needing it anyway. (I mistakenly thought the bug was fixed in 1.12.1 rather than 1.12.0 initially). |
serverVersion only includes Major.Minor and a separate gitVersion type was created as a fallback option. Added a test for parsing the gitVersion.
@hausdorff Could you give this another look? CI failure is related to #375 - will rerun to get a ✅ |
Fixes #248