Skip to content

Commit

Permalink
remove windows 2025 build from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Jun 21, 2024
1 parent fb174aa commit bd741ef
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 21 deletions.
14 changes: 2 additions & 12 deletions .pipelines/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ stages:
name: azure-ipam
os: windows
os_version: ltsc2022
cni_dropgz_windows2025_amd64:
arch: amd64
name: cni-dropgz
os: windows
os_version: ltsc2022-KB5035857
cni_linux_amd64:
arch: amd64
name: cni
Expand Down Expand Up @@ -255,11 +250,6 @@ stages:
name: cns
os: windows
os_version: ltsc2022
cns_windows2025_amd64:
arch: amd64
name: cns
os: windows
os_version: win2025
ipv6_hp_bpf_linux_amd64:
arch: amd64
name: ipv6-hp-bpf
Expand Down Expand Up @@ -375,11 +365,11 @@ stages:
platforms: linux/amd64 linux/arm64 windows/amd64
cni_dropgz:
name: cni-dropgz
os_versions: ltsc2019 ltsc2022 ltsc2022-KB5035857
os_versions: ltsc2019 ltsc2022
platforms: linux/amd64 linux/arm64 windows/amd64
cns:
name: cns
os_versions: ltsc2019 ltsc2022 win2025
os_versions: ltsc2019 ltsc2022
platforms: linux/amd64 linux/arm64 windows/amd64
ipv6_hp_bpf:
name: ipv6-hp-bpf
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ GOOSES ?= "linux windows" # To override at the cli do: GOOSES="\"darwin bsd\""
GOARCHES ?= "amd64 arm64" # To override at the cli do: GOARCHES="\"ppc64 mips\""
ltsc2019 = "10.0.17763.4010"
ltsc2022 = "10.0.20348.643"
ltsc2022-KB5035857 = "10.0.26100.1"
win2025 = "10.0.26100.1"

# Windows specific extensions
# set these based on the GOOS, not the OS
Expand Down
2 changes: 1 addition & 1 deletion cni/network/invoker_cns.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ func (invoker *CNSIPAMInvoker) Add(addConfig IPAMAddConfig) (IPAMAddResult, erro
}

// Add secondary interface info from podIPInfo to ipamAddResult
info.hostSubnet = response.PodIPInfo[i].HostPrimaryIPInfo.Subnet
info.hostPrimaryIP = response.PodIPInfo[i].HostPrimaryIPInfo.PrimaryIP
info.hostGateway = response.PodIPInfo[i].HostPrimaryIPInfo.Gateway
logger.Info("vnet ip and gateway", zap.String("vnet ip", info.hostPrimaryIP), zap.String("vnet gateway", info.hostGateway))

if err := configureSecondaryAddResult(&info, &addResult, &response.PodIPInfo[i].PodIPConfig, key); err != nil {
return IPAMAddResult{}, err
Expand Down
3 changes: 0 additions & 3 deletions cns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ FROM mcr.microsoft.com/windows/servercore@sha256:6fdf140282a2f809dae9b13fe441635
# intermediate for win-ltsc2022
FROM mcr.microsoft.com/windows/servercore@sha256:45952938708fbde6ec0b5b94de68bcdec3f8c838be018536b1e9e5bd95e6b943 as ltsc2022

# intermediate for win2025
FROM mcr.microsoft.com/windows/servercore:ltsc2022-KB5035857-amd64 as win2025

FROM ${OS_VERSION} as windows
COPY --from=builder /azure-container-networking/cns/kubeconfigtemplate.yaml kubeconfigtemplate.yaml
COPY --from=builder /azure-container-networking/npm/examples/windows/setkubeconfigpath.ps1 setkubeconfigpath.ps1
Expand Down
3 changes: 1 addition & 2 deletions cns/middlewares/k8sSwiftV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ func (k *K8sSWIFTv2Middleware) getIPConfig(ctx context.Context, podInfo cns.PodI
NICType: nicType,
SkipDefaultRoutes: false,
HostPrimaryIPInfo: cns.HostIPInfo{
Gateway: interfaceInfo.GatewayIP,
PrimaryIP: interfaceInfo.PrimaryIP,
Gateway: interfaceInfo.GatewayIP,
},
}
}
Expand Down
1 change: 0 additions & 1 deletion network/network_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ func (nm *networkManager) configureHcnNetwork(nwInfo *EndpointInfo, extIf *exter

// Populate subnets.
for _, subnet := range nwInfo.Subnets {
logger.Info("NextHop is", zap.String("NextHop", subnet.Gateway.String()))
hnsSubnet := hcn.Subnet{
IpAddressPrefix: subnet.Prefix.String(),
// Set the Gateway route
Expand Down

0 comments on commit bd741ef

Please sign in to comment.