Skip to content

Commit

Permalink
fix: fixing stateles cni yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
behzad-mir committed Aug 22, 2024
1 parent edb58e4 commit e03eaed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ steps:

- ${{ if eq(parameters.os, 'windows') }}:
- script: |
echo "Start Integration Tests on Overlay Cluster"
kubectl get po -owide -A
sudo -E env "PATH=$PATH" make test-load SCALE_UP=32 OS_TYPE=windows CNI_TYPE=stateless VALIDATE_STATEFILE=true INSTALL_CNS=true INSTALL_AZURE_VNET_STATELESS=true VALIDATE_V4OVERLAY=true AZURE_IPAM_VERSION=$(make azure-ipam-version) CNS_VERSION=$(make cns-version) CNI_VERSION=$(make cni-version) CLEANUP=true
nodeList=`kubectl get node -owide | grep Windows | awk '{print $1}'`
for node in $nodeList; do
taint=`kubectl describe node $node | grep Taints | awk '{print $2}'`
if [ $taint == "node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule" ]; then
kubectl taint nodes $node node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule-
fi
done
sudo -E env "PATH=$PATH" make test-load SCALE_UP=32 OS_TYPE=windows CNI_TYPE=stateless VALIDATE_STATEFILE=true INSTALL_CNS=true INSTALL_AZURE_VNET_STATELESS=true VALIDATE_V4OVERLAY=true CNS_VERSION=$(make cns-version) CNI_VERSION=$(make cni-version) CLEANUP=true
name: "WindowsOverlayControlPlaneScaleTests"
displayName: "Windows v4Overlay ControlPlane Scale Tests"
retryCountOnTaskFailure: 2
name: "integrationTest"
displayName: "Run CNS Integration Tests on AKS Overlay"
- task: AzureCLI@1
inputs:
Expand Down Expand Up @@ -95,19 +100,6 @@ steps:
name: "WireserverMetadataConnectivityTests"
displayName: "Run Wireserver and Metadata Connectivity Tests"
- script: |
nodeList=`kubectl get node -owide | grep Windows | awk '{print $1}'`
for node in $nodeList; do
taint=`kubectl describe node $node | grep Taints | awk '{print $2}'`
if [ $taint == "node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule" ]; then
kubectl taint nodes $node node.cloudprovider.kubernetes.io/uninitialized=true:NoSchedule-
fi
done
sudo -E env "PATH=$PATH" make test-load SCALE_UP=32 OS_TYPE=windows CNI_TYPE=stateless VALIDATE_STATEFILE=true INSTALL_CNS=true INSTALL_AZURE_VNET_STATELESS=true VALIDATE_V4OVERLAY=true CNS_VERSION=$(make cns-version) CNI_VERSION=$(make cni-version) CLEANUP=true
name: "WindowsOverlayControlPlaneScaleTests"
displayName: "Windows v4Overlay ControlPlane Scale Tests"
retryCountOnTaskFailure: 2
- script: |
echo "IPv4 Overlay DataPath Test"
cd test/integration/datapath
Expand Down
14 changes: 7 additions & 7 deletions test/validate/windows_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ var windowsChecksMap = map[string][]check{
},
},
"stateless": {
{
name: "hns",
stateFileIPs: hnsStateFileIPs,
podLabelSelector: privilegedLabelSelector,
podNamespace: privilegedNamespace,
cmd: hnsEndPointCmd,
},
//{
// name: "hns",
// stateFileIPs: hnsStateFileIPs,
// podLabelSelector: privilegedLabelSelector,
// podNamespace: privilegedNamespace,
// cmd: hnsEndPointCmd,
//},
{
name: "cns",
stateFileIPs: cnsManagedStateFileIps,
Expand Down

0 comments on commit e03eaed

Please sign in to comment.