Skip to content

Commit

Permalink
fix: Add back cluster create/delete for Cilium Nightly Pipeline (#2146)
Browse files Browse the repository at this point in the history
* fix: Add back cluster create/delete

* Addressing Comments
  • Loading branch information
jpayne3506 authored Aug 16, 2023
1 parent caa0c8d commit 9612960
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .pipelines/cni/cilium/nightly-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ pr: none
trigger: none

stages:
- stage: setup
displayName: Setup
jobs:
- job: env
displayName: Setup
pool:
name: "$(BUILD_POOL_NAME_DEFAULT)"
steps:
- script: |
echo "##vso[task.setvariable variable=commitID;isOutput=true]$(make revision)"
name: "EnvironmentalVariables"
displayName: "Set environmental variables"
condition: always()
- stage: init
displayName: "Build and Push Cilium Image"
jobs:
Expand Down Expand Up @@ -40,19 +54,56 @@ stages:
inputs:
containerRegistry: $(CONTAINER_REGISTRY)
command: "logout"

- stage: cilium_nightly
displayName: E2E - Cilium Nightly
dependsOn:
- init
- setup
variables:
GOPATH: "$(Agent.TempDirectory)/go" # Go workspace path
GOBIN: "$(GOPATH)/bin" # Go binaries path
modulePath: "$(GOPATH)/src/github.com/Azure/azure-container-networking"
commitID: $[ stagedependencies.setup.env.outputs['EnvironmentalVariables.commitID'] ]
jobs:
- template: ../../templates/create-cluster.yaml
parameters:
name: cilium_overlay_nightly
displayName: Cilium on AKS Overlay
clusterType: cilium-overlay-up
clusterName: ciliumnightly-$(commitID)
vmSize: Standard_B2ms
k8sVersion: ""
dependsOn: ""
region: $(LOCATION)
- job: cilium_nightly
displayName: Cilium Overlay Nightly E2E
dependsOn:
- cilium_overlay_nightly
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
steps:
- template: ../../singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml
parameters:
name: "cilium_nightly"
testDropgz: ""
clusterName: "ciliumnightly"
clusterName: ciliumnightly-$(commitID)
- job: delete
displayName: Delete Cluster
condition: always()
dependsOn:
- cilium_nightly
pool:
name: "$(BUILD_POOL_NAME_DEFAULT)"
strategy:
matrix:
cilium_nightly:
name: ciliumnightly
clusterName: overlaynightly
steps:
- template: ../../templates/delete-cluster.yaml
parameters:
name: $(name)
clusterName: $(clusterName)-$(commitID)
region: $(LOCATION)

0 comments on commit 9612960

Please sign in to comment.