Skip to content

Commit a6c1939

Browse files
author
Sheyla Trudo
committed
fixup! Separate Build Changes
1 parent 1945cec commit a6c1939

File tree

14 files changed

+27
-70
lines changed

14 files changed

+27
-70
lines changed

.pipelines/cni/k8s-e2e/k8s-e2e.jobs.yaml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,17 @@ parameters:
88

99
jobs:
1010
- job: CNI_${{ parameters.os }}
11-
condition: and( not(canceled()), not(failed()) )
1211
displayName: CNI k8s E2E ${{ parameters.os }}
1312
dependsOn: ${{ parameters.dependsOn }}
1413
pool:
15-
isCustom: true
16-
type: linux
1714
name: $(BUILD_POOL_NAME_DEFAULT)
18-
variables:
19-
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/output
20-
ob_git_checkout: true
15+
os: linux
2116
steps:
22-
- checkout: ACNReviewChanges
23-
clean: true
24-
2517
- task: AzureCLI@2
2618
inputs:
2719
azureSubscription: ${{ parameters.sub }}
2820
scriptLocation: "inlineScript"
2921
scriptType: "bash"
30-
workingDirectory: $(ACN_DIR)
3122
addSpnToEnvironment: true
3223
inlineScript: |
3324
set -e
@@ -42,9 +33,8 @@ jobs:
4233
# https://github.com/kubernetes/sig-release/blob/master/release-engineering/artifacts.md#content-of-kubernetes-test-system-archtargz-on-example-of-kubernetes-test-linux-amd64targz-directories-removed-from-list
4334
# explictly unzip and strip directories from ginkgo and e2e.test
4435
tar -xvzf kubernetes-test-linux-amd64.tar.gz --strip-components=3 kubernetes/test/bin/ginkgo kubernetes/test/bin/e2e.test
45-
displayName: "Setup Environment"
46-
retryCountOnTaskFailure: 5
4736
37+
displayName: "Setup Environment"
4838
- ${{ if contains(parameters.os, 'windows') }}:
4939
- script: |
5040
set -e
@@ -57,13 +47,11 @@ jobs:
5747
kubectl exec -i -n kube-system $pod -- powershell "Restart-Service kubeproxy"
5848
kubectl exec -i -n kube-system $pod -- powershell "Get-Service kubeproxy"
5949
done
60-
workingDirectory: $(ACN_DIR)
6150
name: kubeproxy
6251
displayName: Restart Kubeproxy on Windows nodes
6352
retryCountOnTaskFailure: 3
64-
6553
- ${{ if eq(parameters.datapath, true) }}:
66-
- template: k8s-e2e.steps.yaml@ACNTools
54+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
6755
parameters:
6856
testName: Datapath
6957
name: datapath
@@ -72,9 +60,8 @@ jobs:
7260
os: ${{ parameters.os }}
7361
processes: 8
7462
attempts: 10
75-
7663
- ${{ if eq(parameters.dns, true) }}:
77-
- template: k8s-e2e.steps.yaml@ACNTools
64+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
7865
parameters:
7966
testName: DNS
8067
name: dns
@@ -83,9 +70,8 @@ jobs:
8370
os: ${{ parameters.os }}
8471
processes: 8
8572
attempts: 3
86-
8773
- ${{ if eq(parameters.portforward, true) }}:
88-
- template: k8s-e2e.steps.yaml@ACNTools
74+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
8975
parameters:
9076
testName: Kubectl Portforward
9177
name: portforward
@@ -94,9 +80,8 @@ jobs:
9480
os: ${{ parameters.os }}
9581
processes: 8
9682
attempts: 3
97-
9883
- ${{ if and( eq(parameters.service, true), contains(parameters.cni, 'cni') ) }}:
99-
- template: k8s-e2e.steps.yaml@ACNTools
84+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
10085
parameters:
10186
testName: Service Conformance
10287
name: service
@@ -105,9 +90,8 @@ jobs:
10590
os: ${{ parameters.os }}
10691
processes: 8
10792
attempts: 3
108-
10993
- ${{ if and( eq(parameters.service, true), contains(parameters.cni, 'cilium') ) }}:
110-
- template: k8s-e2e.steps.yaml@ACNTools
94+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
11195
parameters:
11296
testName: Service Conformance|Cilium
11397
name: service
@@ -116,9 +100,8 @@ jobs:
116100
os: ${{ parameters.os }}
117101
processes: 8
118102
attempts: 3
119-
120103
- ${{ if eq(parameters.hostport, true) }}:
121-
- template: k8s-e2e.steps.yaml@ACNTools
104+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
122105
parameters:
123106
testName: Host Port
124107
name: hostport
@@ -127,9 +110,8 @@ jobs:
127110
os: ${{ parameters.os }}
128111
processes: 1 # Has a short serial test
129112
attempts: 3
130-
131113
- ${{ if and(eq(parameters.hybridWin, true), eq(parameters.os, 'windows')) }}:
132-
- template: k8s-e2e.steps.yaml@ACNTools
114+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
133115
parameters:
134116
testName: Hybrid Network
135117
name: hybrid
@@ -138,9 +120,8 @@ jobs:
138120
os: ${{ parameters.os }}
139121
processes: 8
140122
attempts: 3
141-
142123
- ${{ if and( eq(parameters.dualstack, true), eq(contains(parameters.cni, 'cilium'), false) ) }}:
143-
- template: k8s-e2e.steps.yaml@ACNTools
124+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
144125
parameters:
145126
testName: DualStack Test
146127
name: DualStack
@@ -150,9 +131,8 @@ jobs:
150131
os: ${{ parameters.os }}
151132
processes: 8
152133
attempts: 3
153-
154134
- ${{ if and( eq(parameters.dualstack, true), contains(parameters.cni, 'cilium') ) }}:
155-
- template: k8s-e2e.steps.yaml@ACNTools
135+
- template: ../k8s-e2e/k8s-e2e-step-template.yaml
156136
parameters:
157137
testName: DualStack Test|Cilium
158138
name: DualStack

.pipelines/multitenancy/swiftv2-e2e.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ stages:
4848
pool:
4949
name: $(BUILD_POOL_NAME_DEFAULT)
5050
os: linux
51+
image: acn-runner-vmss-image-1es-v3.0
5152
demands:
52-
- agent.os -equals Linux
5353
- Role -equals $(CUSTOM_E2E_ROLE)
5454
steps:
5555
- template: swiftv2-e2e.steps.yaml

.pipelines/run-pipeline.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ stages:
44
jobs:
55
- job: env
66
displayName: Setup
7-
pool:
8-
name: "$(BUILD_POOL_NAME_DEFAULT)"
9-
os: linux
107
steps:
118
- script: |
129
# To use the variables below, you must make the respective stage's dependsOn have - setup or it will not retain context of this stage
@@ -42,9 +39,6 @@ stages:
4239
displayName: Build Binaries
4340
variables:
4441
STORAGE_ID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.StorageID'] ]
45-
pool:
46-
name: "$(BUILD_POOL_NAME_DEFAULT)"
47-
os: linux
4842
steps:
4943
- task: GoTool@0
5044
inputs:
@@ -83,9 +77,6 @@ stages:
8377
jobs:
8478
- job: containerize_amd64
8579
displayName: Build Images
86-
pool:
87-
name: "$(BUILD_POOL_NAME_LINUX_AMD64)"
88-
os: linux
8980
strategy:
9081
maxParallel: 4
9182
matrix:
@@ -179,9 +170,6 @@ stages:
179170
jobs:
180171
- job: manifest
181172
displayName: Compile Manifests
182-
pool:
183-
name: "$(BUILD_POOL_NAME_DEFAULT)"
184-
os: linux
185173
strategy:
186174
maxParallel: 4
187175
matrix:
@@ -389,9 +377,6 @@ stages:
389377
jobs:
390378
- job: delete_build
391379
displayName: Delete Cluster
392-
pool:
393-
name: "$(BUILD_POOL_NAME_DEFAULT)"
394-
os: linux
395380
strategy:
396381
maxParallel: 4
397382
matrix:
@@ -454,9 +439,6 @@ stages:
454439

455440
- job: delete_test
456441
displayName: Delete Cluster
457-
pool:
458-
name: "$(BUILD_POOL_NAME_DEFAULT)"
459-
os: linux
460442
strategy:
461443
maxParallel: 4
462444
matrix:

.pipelines/singletenancy/aks-swift/aks-swift-e2e.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ stages:
4848
pool:
4949
name: $(BUILD_POOL_NAME_DEFAULT)
5050
os: linux
51+
image: acn-runner-vmss-image-1es-v3.0
5152
demands:
52-
- agent.os -equals Linux
5353
- Role -equals $(CUSTOM_E2E_ROLE)
5454
steps:
5555
- checkout: self

.pipelines/singletenancy/aks/aks-e2e.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ stages:
5050
pool:
5151
name: $(BUILD_POOL_NAME_DEFAULT)
5252
os: linux
53+
image: acn-runner-vmss-image-1es-v3.0
5354
demands:
54-
- agent.os -equals Linux
5555
- Role -equals $(CUSTOM_E2E_ROLE)
5656
steps:
5757
- checkout: self

.pipelines/singletenancy/azure-cni-overlay-stateless/azure-cni-overlay-stateless-e2e.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ stages:
5151
pool:
5252
name: $(BUILD_POOL_NAME_DEFAULT)
5353
os: linux
54+
image: acn-runner-vmss-image-1es-v3.0
5455
demands:
55-
- agent.os -equals Linux
5656
- Role -equals $(CUSTOM_E2E_ROLE)
5757
steps:
5858
- checkout: self

.pipelines/singletenancy/azure-cni-overlay/add-windows-nodepool.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
pool:
1111
name: $(BUILD_POOL_NAME_DEFAULT)
1212
os: linux
13+
image: acn-runner-vmss-image-1es-v3.0
1314
demands:
14-
- agent.os -equals Linux
1515
- Role -equals $(CUSTOM_E2E_ROLE)
1616
timeoutInMinutes: 30
1717
steps:

.pipelines/singletenancy/azure-cni-overlay/azure-cni-overlay-e2e.jobs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ stages:
4545
pool:
4646
name: $(BUILD_POOL_NAME_DEFAULT)
4747
os: linux
48+
image: acn-runner-vmss-image-1es-v3.0
4849
demands:
49-
- agent.os -equals Linux
5050
- Role -equals $(CUSTOM_E2E_ROLE)
5151
steps:
5252
- checkout: self
@@ -72,8 +72,8 @@ stages:
7272
pool:
7373
name: $(BUILD_POOL_NAME_DEFAULT)
7474
os: linux
75+
image: acn-runner-vmss-image-1es-v3.0
7576
demands:
76-
- agent.os -equals Linux
7777
- Role -equals $(CUSTOM_E2E_ROLE)
7878
steps:
7979
- checkout: self

.pipelines/singletenancy/cilium-dualstack-overlay/cilium-dualstackoverlay-e2e.jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ stages:
4545
pool:
4646
name: $(BUILD_POOL_NAME_DEFAULT)
4747
os: linux
48+
image: acn-runner-vmss-image-1es-v3.0
4849
demands:
49-
- agent.os -equals Linux
5050
- Role -equals $(CUSTOM_E2E_ROLE)
5151
steps:
5252
- checkout: self

.pipelines/singletenancy/cilium-nodesubnet/cilium-nodesubnet-e2e.jobs.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ stages:
1717
dependsOn:
1818
- ${{ parameters.dependsOn }}
1919
- setup
20-
pool:
21-
name: $(BUILD_POOL_NAME_DEFAULT)
22-
os: linux
2320
variables:
2421
commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
2522
jobs:
@@ -46,16 +43,15 @@ stages:
4643
- setup
4744
- publish
4845
- ${{ parameters.clusterName }}
49-
pool:
50-
name: $(BUILD_POOL_NAME_DEFAULT)
5146
jobs:
5247
- job: ${{ parameters.name }}
5348
displayName: Nodesubnet with Cilium - (${{ parameters.name }})
5449
timeoutInMinutes: 120
5550
pool:
5651
name: $(BUILD_POOL_NAME_DEFAULT)
52+
os: linux
53+
image: acn-runner-vmss-image-1es-v3.0
5754
demands:
58-
- agent.os -equals Linux
5955
- Role -equals $(CUSTOM_E2E_ROLE)
6056
steps:
6157
- checkout: self

0 commit comments

Comments
 (0)