Skip to content

Conversation

@p-strusiewiczsurmacki-mobica
Copy link
Contributor

This PR introduces support for dualstack egress.

Egress service reconciler will create egress services with PreferDualstack IP family policy.

Hook generation will now use svc.Spec.ClusterIPs instead of svc.Spec.ClusterIP which will make this incompatible with k8s older that 1.20.

E2E tests were added and CI updated to reflect the changes.

}

func (r *EgressWatcher) getHook(ctx context.Context, eg *coilv2.Egress, logger *logr.Logger) (nodenet.SetupHook, error) {
func (r *EgressWatcher) getHook(ctx context.Context, eg *coilv2.Egress, logger *logr.Logger) ([]nodenet.SetupHook, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now, this function returns multiple hooks, so let's rename it.

Suggested change
func (r *EgressWatcher) getHook(ctx context.Context, eg *coilv2.Egress, logger *logr.Logger) ([]nodenet.SetupHook, error) {
func (r *EgressWatcher) getHooks(ctx context.Context, eg *coilv2.Egress, logger *logr.Logger) ([]nodenet.SetupHook, error) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

@terassyi
Copy link
Contributor

terassyi commented May 9, 2025

@p-strusiewiczsurmacki-mobica

Almost all of your changes look good to me!
I left a minor comment.

Signed-off-by: Patryk Strusiewicz-Surmacki <patryk.pawel.strusiewicz-surmacki@external.telekom.de>
Copy link
Contributor

@terassyi terassyi 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!

@terassyi terassyi merged commit f96d651 into cybozu-go:main May 12, 2025
29 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.

2 participants