Skip to content
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

ci: dual-stack support for kind cluster #4301

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Conversation

juwon8891
Copy link
Contributor

feat: dual-stack support for kind cluster

What type of PR is this?
feat: Add dual-stack (IPv4 and IPv6) support for kind cluster

What this PR does / why we need it:
This PR implements dual-stack (IPv4 and IPv6) support for our kind cluster setup. It modifies the create-cluster.sh script to enable both IPv4 and IPv6 networking in the kind cluster and configures MetalLB to use address pools for both protocols. This enhancement allows for testing and development in environments that require both IP protocols, improving our cluster's versatility and compatibility with modern network configurations.

Key changes:

  1. Enable dual-stack networking in the kind cluster configuration
  2. Calculate both IPv4 and IPv6 address ranges from the Docker network
  3. Update MetalLB configuration to support both IPv4 and IPv6 address pools

Which issue(s) this PR fixes:
Related #184

Additional context:
This change modifies the tools/hack/create-cluster.sh script to:

  • Add ipFamily: dual to the kind cluster configuration
  • Calculate IPv4 and IPv6 address ranges based on the Docker network IPAM
  • Update the MetalLB IPAddressPool to include both IPv4 and IPv6 ranges

These modifications ensure that our development environment can support and test dual-stack networking scenarios, which is crucial for modern Kubernetes deployments and aligns with the goals outlined in issue #184.

Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.68%. Comparing base (697fbed) to head (653254d).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4301   +/-   ##
=======================================
  Coverage   65.68%   65.68%           
=======================================
  Files         197      197           
  Lines       23565    23565           
=======================================
  Hits        15478    15478           
  Misses       6979     6979           
  Partials     1108     1108           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zirain zirain changed the title feat: dual-stack support for kind cluster ci: dual-stack support for kind cluster Sep 22, 2024
zirain
zirain previously approved these changes Sep 22, 2024
Copy link
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks!

@zirain zirain merged commit cbcc1fd into envoyproxy:main Sep 24, 2024
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants