Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pipelines/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsof
RUN sudo dpkg -i packages-microsoft-prod.deb
RUN add-apt-repository ppa:longsleep/golang-backports
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
RUN curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
RUN apt-get install -y git golang-go=2:1.13~1longsleep1+xenial iptables ipset iproute2 ebtables python-pip gcc zip dotnet-sdk-2.2 azure-cli
RUN sudo pip install coverage
RUN if [ -f Gopkg.toml ]; then curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh ; fi
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/e2e-job-template.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
name: ""
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.4"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.6"
clusterDefinition: ""
clusterDefinitionCniTypeKey: ""
clusterDefinitionCniBuildOS: ""
Expand Down
6 changes: 2 additions & 4 deletions .pipelines/e2e-step-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ steps:
export CNI_URL=https://$(ARTIFACT_STORAGE).blob.core.windows.net/acn-$(CommitHash)/azure-vnet-cni-${{ parameters.clusterDefinitionCniBuildOS }}-amd64-$(Tag)${{ parameters.clusterDefinitionCniBuildExt }}
export CNI_TYPE=${{ parameters.clusterDefinitionCniTypeKey }}
echo CNI type is $CNI_TYPE
#sed -i "s|\"$CNI_TYPE\":\".*\"|\"$CNI_TYPE\":$CNI_URL|g" '${{ parameters.clusterDefinition }}'
# sed -i "s|\"$CNI_TYPE\":\".*\"|\"$CNI_TYPE\":$CNI_URL|g" '${{ parameters.clusterDefinition }}'
cat '${{ parameters.clusterDefinition }}' | jq --arg cnikey $CNI_TYPE --arg cniurl $CNI_URL '.properties.orchestratorProfile.kubernetesConfig[$cnikey]= $cniurl' > '${{ parameters.clusterDefinition }}'.tmp #
# sed -i "s|\"azureCNIVersion\":\".*\"|\"azureCNIVersion\":\"$(Tag)\"|g" '${{ parameters.clusterDefinition }}'
#sed -i "s|\"azureCNIVersion\":\".*\"|\"azureCNIVersion\":\"$(Tag)\"|g" '${{ parameters.clusterDefinition }}'
cat '${{ parameters.clusterDefinition }}'.tmp | jq --arg tag $(Tag) '.properties.orchestratorProfile.kubernetesConfig.azureCNIVersion = $tag' > '${{ parameters.clusterDefinition }}'
cat '${{ parameters.clusterDefinition }}' | jq --arg npmimage containernetworking/azure-npm:$(Tag) '.properties.orchestratorProfile.kubernetesConfig.addons[0].containers[0].image = $npmimage' > '${{ parameters.clusterDefinition }}'.tmp
mv '${{ parameters.clusterDefinition }}'.tmp '${{ parameters.clusterDefinition }}'
echo "Running E2E tests against a cluster built with the following API model:"
cat '${{ parameters.clusterDefinition }}'
cp ${{ parameters.clusterDefinition }} clusterDefinition.json
Expand Down
23 changes: 12 additions & 11 deletions .pipelines/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stages:
demands: agent.os -equals Linux

container:
image: containernetworking/pipeline-ci:1.0.4
image: containernetworking/pipeline-ci:1.0.6
options: "--privileged"

# Go setup for the vmImage:
Expand Down Expand Up @@ -66,9 +66,6 @@ stages:

- script: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
fi
go get github.com/docker/libnetwork/driverapi
go get github.com/gorilla/mux
go get github.com/jstemmer/go-junit-report
Expand All @@ -82,10 +79,14 @@ stages:
- script: |
echo Building in $(pwd)
echo Build tag is $(EnvironmentalVariables.Tag)
export GOOS=linux
make all-binaries VERSION=$(EnvironmentalVariables.Tag)
export GOOS=windows
make all-binaries VERSION=$(EnvironmentalVariables.Tag)
export GOOS=linux
make all-binaries VERSION=$(EnvironmentalVariables.Tag)
sudo make azure-npm-image VERSION=$(EnvironmentalVariables.Tag)
echo '$(DOCKER_PASSWORD)' | docker login -u '$(DOCKER_USERNAME)' --password-stdin
docker tag containernetworking.azurecr.io/public/containernetworking/azure-npm:$(EnvironmentalVariables.Tag) containernetworking/azure-npm:$(EnvironmentalVariables.Tag)
docker push containernetworking/azure-npm:$(EnvironmentalVariables.Tag)
cd output
sudo find . -mindepth 2 -type f -regextype posix-extended ! -iregex '.*\.(zip|tgz)$' -delete
sudo find . -mindepth 2 -type f -print -exec mv {} . \;
Expand Down Expand Up @@ -158,7 +159,7 @@ stages:
- template: e2e-job-template.yaml
parameters:
name: "ubuntu_16_04_linux_e2e"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.5"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.6"
clusterDefinition: "cniLinux1604.json"
clusterDefinitionCniTypeKey: "azureCNIURLLinux"
clusterDefinitionCniBuildOS: "linux"
Expand All @@ -167,7 +168,7 @@ stages:
- template: e2e-job-template.yaml
parameters:
name: "ubuntu_18_04_linux_e2e"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.5"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.6"
clusterDefinition: "cniLinux1804.json"
clusterDefinitionCniTypeKey: "azureCNIURLLinux"
clusterDefinitionCniBuildOS: "linux"
Expand All @@ -176,7 +177,7 @@ stages:
- template: e2e-job-template.yaml
parameters:
name: "windows_18_09_e2e"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.5"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.6"
clusterDefinition: "cniWindows1809.json"
clusterDefinitionCniTypeKey: "azureCNIURLWindows"
clusterDefinitionCniBuildOS: "windows"
Expand All @@ -185,7 +186,7 @@ stages:
- template: e2e-job-template.yaml
parameters:
name: "windows_19_03_e2e"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.5"
pipelineBuildImage: "containernetworking/pipeline-ci:1.0.6"
clusterDefinition: "cniWindows1903.json"
clusterDefinitionCniTypeKey: "azureCNIURLWindows"
clusterDefinitionCniBuildOS: "windows"
Expand All @@ -199,7 +200,7 @@ stages:
name: Networking-ContainerNetworking
demands: agent.os -equals Linux
container:
image: containernetworking/pipeline-ci:1.0.4
image: containernetworking/pipeline-ci:1.0.6
variables:
Tag: $[ dependencies.unit_tests.outputs['EnvironmentalVariables.Tag'] ]
condition: always()
Expand Down
16 changes: 14 additions & 2 deletions test/e2e/kubernetes/cniLinux1604.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.14",
"orchestratorRelease": "1.16",
"kubernetesConfig": {
"networkPlugin": "azure",
"networkPolicy": "azure",
Expand All @@ -12,7 +12,19 @@
"apiServerConfig": {
"--tls-min-version": "VersionTLS12",
"--tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
}
},
"addons": [
{
"name": "azure-npm-daemonset",
"enabled": true,
"containers": [
{
"name": "azure-npm-daemonset",
"image": ""
}
]
}
]
}
},
"masterProfile": {
Expand Down
16 changes: 14 additions & 2 deletions test/e2e/kubernetes/cniLinux1804.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.14",
"orchestratorRelease": "1.16",
"kubernetesConfig": {
"networkPlugin": "azure",
"networkPolicy": "azure",
Expand All @@ -12,7 +12,19 @@
"apiServerConfig": {
"--tls-min-version": "VersionTLS12",
"--tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
}
},
"addons": [
{
"name": "azure-npm-daemonset",
"enabled": true,
"containers": [
{
"name": "azure-npm-daemonset",
"image": ""
}
]
}
]
}
},
"masterProfile": {
Expand Down
20 changes: 16 additions & 4 deletions test/e2e/kubernetes/cniWindows1809.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.14",
"orchestratorRelease": "1.16",
"kubernetesConfig": {
"networkPlugin": "azure",
"networkPolicy": "azure",
Expand All @@ -12,7 +12,19 @@
"apiServerConfig": {
"--tls-min-version": "VersionTLS12",
"--tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
}
},
"addons": [
{
"name": "azure-npm-daemonset",
"enabled": true,
"containers": [
{
"name": "azure-npm-daemonset",
"image": ""
}
]
}
]
}
},
"masterProfile": {
Expand Down Expand Up @@ -40,9 +52,9 @@
"enableAutomaticUpdates": false,
"sshEnabled": true,
"windowsPublisher": "MicrosoftWindowsServer",
"windowsOffer": "WindowsServer",
"windowsOffer": "WindowsServerSemiAnnual",
"windowsSku": "Datacenter-Core-1809-with-Containers-smalldisk",
"imageVersion": "1809.0.20190603"
"imageVersion": "1809.0.20190826"
},
"linuxProfile": {
"adminUsername": "azureuser",
Expand Down
16 changes: 14 additions & 2 deletions test/e2e/kubernetes/cniWindows1903.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.14",
"orchestratorRelease": "1.16",
"kubernetesConfig": {
"networkPlugin": "azure",
"networkPolicy": "azure",
Expand All @@ -12,7 +12,19 @@
"apiServerConfig": {
"--tls-min-version": "VersionTLS12",
"--tls-cipher-suites": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
}
},
"addons": [
{
"name": "azure-npm-daemonset",
"enabled": true,
"containers": [
{
"name": "azure-npm-daemonset",
"image": ""
}
]
}
]
}
},
"masterProfile": {
Expand Down