Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: implements arc e2e tests for AKS #703

Merged
merged 18 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
92777fb
feat: implements arc e2e for AKS
nilekhc Nov 1, 2021
b7b16ef
feat: implements outbound proxy support for arc extension (#695)
nilekhc Nov 1, 2021
a3b5b8b
Merge branch 'master' of https://github.com/Azure/secrets-store-csi-d…
nilekhc Nov 1, 2021
885e3e1
Merge branch 'master' of https://github.com/nilekhc/secrets-store-csi…
nilekhc Nov 1, 2021
a4b0e12
Merge branch 'master' of https://github.com/nilekhc/secrets-store-csi…
nilekhc Nov 1, 2021
5740321
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
064fecb
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
ab8cbb1
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
ef00d23
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
b71cabb
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
4f9c848
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
6142d08
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
6c4a296
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
461a4cb
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
9f76eb4
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 1, 2021
be0437e
Merge branch 'e2e-arc-aks' of https://github.com/nilekhc/secrets-stor…
nilekhc Nov 2, 2021
807929d
Merge branch 'master' of https://github.com/Azure/secrets-store-csi-d…
nilekhc Nov 2, 2021
a090c20
Merge branch 'master' of https://github.com/nilekhc/secrets-store-csi…
nilekhc Nov 2, 2021
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/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