Skip to content

Commit

Permalink
test: implements arc e2e tests for AKS (#703)
Browse files Browse the repository at this point in the history
* feat: implements arc e2e for AKS

Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
  • Loading branch information
nilekhc authored Nov 3, 2021
1 parent 8a3834b commit e37a205
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pipelines/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ jobs:
- "csi-secrets-store-soak-linux-aks"
- "csi-secrets-store-soak-win-aks"
- template: templates/arc/e2e-test-kind.yaml
- template: templates/arc/e2e-test-aks.yaml
7 changes: 5 additions & 2 deletions .pipelines/templates/aks-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ parameters:

steps:
- script: |
echo "##vso[task.setvariable variable=AZURE_CLUSTER_NAME]sscd-e2e-$(openssl rand -hex 6)"
echo ${AZURE_CLUSTER_NAME}
if [[ -z "${AZURE_CLUSTER_NAME}" ]]; then
clusterName=sscd-arc-e2e-$(openssl rand -hex 6)
echo "##vso[task.setvariable variable=AZURE_CLUSTER_NAME]$clusterName"
echo "AKS cluster name is set to - $clusterName"
fi
displayName: "Set cluster name"
condition: and(succeeded(), eq(variables['CLUSTER_TYPE'], 'aks'))
Expand Down
36 changes: 36 additions & 0 deletions .pipelines/templates/arc/e2e-test-aks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
jobs:
- job: e2e_arc_aks
variables:
- name: CLUSTER_TYPE
value: aks
- name: OS_TYPE
value: linux
- group: csi-secrets-store-e2e
steps:
- template: ../az-login.yaml
- template: setup.yaml
- script: |
echo "##vso[task.setvariable variable=AZURE_LOCATION]${AZURE_CANARY_LOCATION}"
echo "AKS localtion set to: ${AZURE_CANARY_LOCATION}"
make install-helm
displayName: "override AKS location and install dependencies"
condition: succeeded()
- template: ../aks-setup.yaml
- template: ../assign-user-identity.yaml
parameters:
identitySubscriptionID: $(SUBSCRIPTION_ID)
- template: ../role-assignment.yaml
- template: cluster-connect.yaml
- template: extension-create.yaml
parameters:
azureClusterName: $(AZURE_CLUSTER_NAME)
releaseTrain: preview
configurationSettings: "'secrets-store-csi-driver.enableSecretRotation=true' \
'secrets-store-csi-driver.rotationPollInterval=30s' \
'secrets-store-csi-driver.syncSecret.enabled=true'"
- template: ../e2e-test.yaml
parameters:
testName: "arc extension e2e test on AKS"
isArcTest: true
- template: ../teardown.yaml

0 comments on commit e37a205

Please sign in to comment.