Skip to content

Windows ingress support#1514

Open
makhov wants to merge 1 commit into
k0sproject:mainfrom
makhov:windows-ingress
Open

Windows ingress support#1514
makhov wants to merge 1 commit into
k0sproject:mainfrom
makhov:windows-ingress

Conversation

@makhov

@makhov makhov commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Switching to traefik which supports windows

@makhov
makhov force-pushed the windows-ingress branch 8 times, most recently from c26a6ac to 612b2c8 Compare July 15, 2026 07:51
@makhov
makhov force-pushed the windows-ingress branch 6 times, most recently from 76579bf to 37b823f Compare July 17, 2026 10:22
@makhov
makhov force-pushed the windows-ingress branch from 37b823f to 1029660 Compare July 17, 2026 12:30
@makhov
makhov marked this pull request as ready for review July 17, 2026 13:32
@makhov
makhov requested a review from a team as a code owner July 17, 2026 13:32

@apedriza apedriza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

has the TestWindowsIngressProvisioning been executed succesfully? We could manually trigger before merge it as currently will not run until it is on main

Name: kmc.GetIngressManifestsConfigMapName(),
},
Secret: &corev1.SecretVolumeSource{
SecretName: kmc.GetIngressManifestsConfigMapName(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
SecretName: kmc.GetIngressManifestsConfigMapName(),
SecretName: kmc.GetIngressManifestsSecret(),

Now that it is stored as a secret

Anyway, this name is used in several places not related to configmaps/secrets. I would use something mroe general like GetIngressManifestsResourceName or something like that

_ = kcontrollerutil.SetExternalOwnerReference(kmc, &configMap, scope.client.Scheme(), scope.externalOwner)
err = scope.reconcileResource(ctx, kmc, &configMap)

configMap, err := scope.generateIngressManifestsConfigMap(kmc, proxyCert, proxyKey, caCert)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not create the secret directly instead of creating it from a non-stored ConfigMap?

Comment on lines +228 to +233
err := kmcScope.ensureHAProxyCerts(ctx, kmc)
if err != nil {
return ctrl.Result{Requeue: true, RequeueAfter: time.Minute}, fmt.Errorf("error generating ingress certificates: %w", err)
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we move this within reconcileIngress? I would encapsulate all the old logic support/considerations deeper, otherwise can be a bit confusing from a high-level POV and rename cert from ingress-haproxy to ingress-proxy, just in case proxy implementation is changed in the future

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