-
Notifications
You must be signed in to change notification settings - Fork 1
UID2-6321 Add AKS related e2e test steps back #201
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
Merged
+338
−60
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e81e8df
Add AKS related e2e test steps back
cYKatherine 44f4a1c
Create AKS cluster every time for the e2e test
cYKatherine ebc68ef
Use relative paths rather than hardcoded uid2-shared-actions/scripts …
cYKatherine 50250c4
Set subscription to 63e97a70-d825-4b08-af6d-c0d8ad98bed3
cYKatherine c515d2b
Update k8s version
cYKatherine 95f6451
Stop AKS operator
cYKatherine f42d72c
Update AKS_CLUSTER_NAME name
cYKatherine f1147eb
Wait for managed identity to be available
cYKatherine f9a1b00
Use kcc-UID2-6321-reenable-aks-e2e to checkout shared repo
cYKatherine a9e5616
Use kcc-UID2-6321-reenable-aks-e2e
cYKatherine 79ed936
Check if AKS cluster already exists and skips creation if it does
cYKatherine 01ad9be
Change from ssh to https
cYKatherine 80220f0
Create new AKS cluster if duplicated
cYKatherine 7ff6aa7
Fix soft delete vaults
cYKatherine ef65e62
Revert suffix change
cYKatherine d1cdad2
Use westus temporarly
cYKatherine 952f180
Add runid to deployment to avoid delayed deletion
cYKatherine c137cd1
Add run_id as a suffix to the aks clusters
cYKatherine 301cf21
Wait for public IP address to be assigned
cYKatherine e1f3696
Add missing run_id
cYKatherine d47142f
Revert ${{ github.action_path }}/../../ change
cYKatherine 4869c74
Use actions from the same commit as the workflow file itself
cYKatherine f92beaf
Use kcc-UID2-6321-reenable-aks-e2e
cYKatherine be53d34
Update location to eastus
cYKatherine 1a6e40d
Fix core/optout bore url bugs
cYKatherine 2a0bac2
Change location to westus
cYKatherine 5515aa2
Revert back to v3
cYKatherine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Start AKS Cluster | ||
| description: Creates the AKS cluster and infrastructure | ||
|
|
||
| inputs: | ||
| azure_credentials: | ||
| description: The Azure credentials | ||
| required: true | ||
| run_id: | ||
| description: Unique run identifier for resource naming | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
||
| steps: | ||
| - name: Log in to Azure | ||
| uses: azure/login@v2 | ||
| with: | ||
| creds: ${{ inputs.azure_credentials }} | ||
| enable-AzPSSession: true | ||
|
|
||
| - name: Start AKS cluster | ||
| id: start_aks | ||
| shell: bash | ||
| env: | ||
| RUN_ID: ${{ inputs.run_id }} | ||
| run: | | ||
| bash uid2-shared-actions/scripts/aks/start_aks_cluster.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| #!/usr/bin/env bash | ||
| # Common AKS environment variables used by multiple scripts | ||
|
|
||
| # Set the correct subscription for AKS E2E tests | ||
| az account set --subscription "63e97a70-d825-4b08-af6d-c0d8ad98bed3" | ||
|
|
||
| # RUN_ID should be set by the caller (e.g., github.run_id) | ||
| # Use short suffix to stay within Azure naming limits (e.g., Key Vault max 24 chars) | ||
| if [ -z "${RUN_ID}" ]; then | ||
| echo "Warning: RUN_ID not set, using default names (may cause conflicts)" | ||
| RUN_SUFFIX="" | ||
| else | ||
| # Use last 8 digits of RUN_ID to keep names short | ||
| RUN_SUFFIX="-${RUN_ID: -8}" | ||
| fi | ||
|
|
||
| export RESOURCE_GROUP="opr-e2e-aks${RUN_SUFFIX}" | ||
| export LOCATION="westus" | ||
| export VNET_NAME="opr-e2e-vnet${RUN_SUFFIX}" | ||
| export PUBLIC_IP_ADDRESS_NAME="opr-e2e-ip${RUN_SUFFIX}" | ||
| export NAT_GATEWAY_NAME="opr-e2e-nat${RUN_SUFFIX}" | ||
| export AKS_CLUSTER_NAME="opr-e2e-cluster${RUN_SUFFIX}" | ||
| export KEYVAULT_NAME="opre2evault${RUN_SUFFIX}" | ||
| export KEYVAULT_SECRET_NAME="opr-key${RUN_SUFFIX}" | ||
| export MANAGED_IDENTITY="opr-e2e-id${RUN_SUFFIX}" | ||
| export AKS_NODE_RESOURCE_GROUP="MC_${RESOURCE_GROUP}_${AKS_CLUSTER_NAME}_${LOCATION}" | ||
| export SUBSCRIPTION_ID="$(az account show --query id --output tsv)" | ||
| export DEPLOYMENT_ENV="integ" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.