Repository navigation
🐛 Fix Kind CI dockerhost EndpointSlice IPv6 validation failure - #680
Merged
Merged
Conversation
The `docker network inspect kind` command returns both IPv4 and IPv6 gateways. On recent GitHub runner images (ubuntu-24.04 20260209+), the IPv6 gateway is returned first, causing the EndpointSlice (which declares addressType: IPv4) to fail validation: "fc00:f853:ccd:e793::1": must be a valid IPv4 address Filter gateway addresses with grep to select only IPv4, matching the EndpointSlice addressType. Root cause: latent bug since 13cbe64 (2025-11-26), surfaced when runner images changed IPAM ordering on 2026-02-12. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
4 tasks
11 of 18 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Configure dockerhost service for KindCI step that fails on recent GitHub runner imagesdocker network inspect kindoutput to select only IPv4 gateways, matching the EndpointSliceaddressType: IPv4declarationRoot Cause Analysis
Symptom: All Kind CI runs failing since 2026-02-12 evening with:
Affected runs: PR #679 (
fix-keycloak), two dependabot PRs — 4 consecutive failures on the same step.Root cause:
.github/scripts/common/70-configure-dockerhost.shusesdocker network inspect kind | jq ... | head -1to get the Docker gateway IP. The Kind network has both IPv4 and IPv6 IPAM configs. On recent GitHub runner images (ubuntu-24.04 20260209+), the IPv6 gateway (fc00:f853:ccd:e793::1) is returned first. The EndpointSlice is declared withaddressType: IPv4, so applying an IPv6 address fails validation.Introduced: Latent bug since commit 13cbe64 (2025-11-26, "Add modular deployment scripts for CI and local use"). Surfaced when runner images changed IPAM ordering.
Fix: Add
grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'to filter for IPv4 addresses beforehead -1.Test plan
Deploy & Testjob passes (specificallyConfigure dockerhost service for Kindstep)🤖 Generated with Claude Code