Skip to content

[CORE-12314] Use two ServiceEndpoint instances for host-network and pod-network#4474

Merged
coutinhop merged 1 commit intotigera:masterfrom
coutinhop:pedro-CORE-12314
Mar 17, 2026
Merged

[CORE-12314] Use two ServiceEndpoint instances for host-network and pod-network#4474
coutinhop merged 1 commit intotigera:masterfrom
coutinhop:pedro-CORE-12314

Conversation

@coutinhop
Copy link
Member

@coutinhop coutinhop commented Feb 25, 2026

Description

Use two separate ServiceEndpoint instances (Endpoint and PodNetworkEndpoint)
instead of a single struct, to distinguish between host-network and pod-network
K8s API server endpoints. Simplify EnvVars() by removing hostNetworked/provider
params — callers pick the appropriate instance. Remove Docker EE proxy.local
special-case, which is now handled implicitly.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Release Note

Split kubernetes-services-endpoint configmap into KUBERNETES_SERVICE_HOST/PORT for host-networked pods (previous behaviour) and KUBERNETES_SERVICE_HOST_POD_NETWORK and KUBERNETES_SERVICE_PORT_POD_NETWORK for pod-networked pods.

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

@coutinhop coutinhop changed the title Split ServiceEndpoint into host-network and pod-network fields [CORE-12314] Use two ServiceEndpoint instances for host-network and pod-network Mar 14, 2026
…od-network

Use two separate ServiceEndpoint instances (Endpoint and PodNetworkEndpoint)
instead of a single struct, to distinguish between host-network and pod-network
K8s API server endpoints. Simplify EnvVars() by removing hostNetworked/provider
params — callers pick the appropriate instance. Remove Docker EE proxy.local
special-case, which is now handled implicitly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coutinhop coutinhop merged commit ca760a0 into tigera:master Mar 17, 2026
6 checks passed
@coutinhop coutinhop deleted the pedro-CORE-12314 branch March 18, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants