Skip to content

Conversation

@matmerr
Copy link
Member

@matmerr matmerr commented May 4, 2022

Reason for Change:

Need to run cyclonus on Windows pipelines

Issue Fixed:

Requirements:

Notes:

set -xv

cyclonusProfile="./install-cyclonus.yaml"
if [ -z "$1" == "windows"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the -z to check $1 is empty before comparison?

@huntergregory huntergregory added the npm Related to NPM. label May 9, 2022
@matmerr matmerr requested a review from a team as a code owner May 24, 2022 22:03
@matmerr matmerr requested review from huntergregory and removed request for a team May 24, 2022 22:03
@matmerr matmerr force-pushed the cyclonuswindowsjob branch 11 times, most recently from 3dae0f7 to 0f588a8 Compare May 26, 2022 22:18
@matmerr
Copy link
Member Author

matmerr commented May 27, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@matmerr matmerr force-pushed the cyclonuswindowsjob branch 3 times, most recently from fe28fdd to d13bcd2 Compare June 30, 2022 18:33
@matmerr matmerr force-pushed the cyclonuswindowsjob branch from aef57e4 to 1a5135e Compare July 22, 2022 17:07
--name awin22 \
--os-type Windows \
--os-sku Windows2022 \
--node-count 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node count --> 3?

az aks get-credentials -g $CLUSTER_NAME -n $CLUSTER_NAME --overwrite-existing
- task: AzureCLI@2
displayName: "Deploy NPM to Test Cluster"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

task above has same name

./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:linux-amd64-$(TAG)
# swap NPM profile with one specified as parameter
./kubectl --kubeconfig=./kubeconfig apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/profiles/$(PROFILE).yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for ws22, having PROFILE as "v2-default-ws22" has unintended effect of failing to apply a configmap here

./kubectl --kubeconfig=./kubeconfig set image daemonset/azure-npm -n kube-system azure-npm=$IMAGE_REGISTRY/azure-npm:windows-amd64-$(TAG)
# swap NPM profile with one specified as parameter
./kubectl --kubeconfig=./kubeconfig apply -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not applying any file here. Should probably do the following steps:

  1. apply both linux and windows yaml
  2. swap profile
  3. restart both win and linux ds

chmod +x kubectl
# deploy azure-npm
./kubectl --kubeconfig=./kubeconfig apply -f https://raw.githubusercontent.com/Azure/azure-container-networking/master/npm/azure-npm.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add windows yaml too in case it's the ws22 matrix strat

@matmerr
Copy link
Member Author

matmerr commented Jul 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

export CLUSTER_NAME=$(RESOURCE_GROUP)-$(PROFILE)
echo "Creating resource group named $CLUSTER_NAME"
az group create --name $CLUSTER_NAME -l $(LOCATION) -o table
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is location ever set?

@matmerr
Copy link
Member Author

matmerr commented Jul 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@matmerr
Copy link
Member Author

matmerr commented Jul 27, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@matmerr matmerr force-pushed the cyclonuswindowsjob branch from 9a0f720 to 20cf2c5 Compare July 27, 2022 18:12
@matmerr matmerr force-pushed the cyclonuswindowsjob branch from 6a4c64d to 4d311ca Compare July 28, 2022 18:00
@matmerr matmerr force-pushed the cyclonuswindowsjob branch from 4d311ca to c51063c Compare July 28, 2022 18:20
@matmerr matmerr force-pushed the cyclonuswindowsjob branch from 9a2ece7 to a241da5 Compare July 28, 2022 23:32
@matmerr
Copy link
Member Author

matmerr commented Jul 29, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vakalapa vakalapa disabled auto-merge August 8, 2022 17:43
@vakalapa vakalapa merged commit ef95e7d into Azure:master Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants