Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4eda65d
unique name for public ip.
galiacheng Jan 16, 2025
5abd8fc
use global resource name sufix.
galiacheng Jan 17, 2025
414f79b
remove var name_appGateway as there is a param for it.
galiacheng Jan 20, 2025
a1e54cb
define _globalResourceNameSufix: _globalResourceNameSufix in the scal…
galiacheng Jan 20, 2025
636c55e
mitigate Bicep warning.
galiacheng Jan 20, 2025
822f165
add location input parameter to workflow for resource creation
galiacheng Jan 20, 2025
b3c355d
use java 11 to build cargotracker.
galiacheng Jan 20, 2025
074e8c0
fix syntax issue
galiacheng Jan 20, 2025
c4f6ef9
add sufix to the uami name.
galiacheng Jan 20, 2025
ba1458d
ensure all the depoyment script deployments have unique name.
galiacheng Jan 20, 2025
52b9d87
ensure key vault permission model is vault access policy.
galiacheng Jan 21, 2025
444027b
enable global uami to access existing key vault.
galiacheng Jan 21, 2025
054f171
create a seperate module to update access policy of key vault.
galiacheng Jan 21, 2025
d84d942
set enableRbacAuthorization with false.
galiacheng Jan 21, 2025
3b718e1
specify location.
galiacheng Jan 22, 2025
ccd9433
fix build error
galiacheng Jan 22, 2025
e98a272
Error BCP035: The specified "object" declaration is missing the follo…
galiacheng Jan 22, 2025
6d1c1f2
set vault sku
galiacheng Jan 22, 2025
896ee0d
rename key vault resource
galiacheng Jan 22, 2025
ad5f038
remove key vault from ui.
galiacheng Feb 5, 2025
1049656
remove key vault
galiacheng Feb 5, 2025
8982ab4
remove key vault validation in fail fast stage.
galiacheng Feb 5, 2025
a641652
update key vault API version
galiacheng Feb 6, 2025
3075c59
Fix "An invalid value was provided for 'accessPolicies[0].Permissions…
galiacheng Feb 6, 2025
73b3847
Set key vault certificate permission.
galiacheng Feb 6, 2025
07b3f68
upgrade jdk version
galiacheng Feb 6, 2025
fcc8e84
Code clean up.
galiacheng Feb 7, 2025
a69ffe8
No key vault info when the App Gateway certificate is uploaded.
galiacheng Feb 7, 2025
42f073f
validate existing aks networking configurations.
galiacheng Feb 10, 2025
51c07fe
upgrade aks to 1.30.7.
galiacheng Feb 10, 2025
dc5a579
On branch wls-aks-redeploy Update names to match what they are naming.
edburns Feb 10, 2025
5832f05
On branch wls-aks-redeploy Fix typo sufix -> suffix
edburns Feb 11, 2025
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
6 changes: 4 additions & 2 deletions .github/actions/setupmaven/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- name: Set up Apache Maven and JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: 'microsoft'
java-version: 21
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME # env variable for username
server-password: MAVEN_TOKEN # env variable for token
Expand Down
32 changes: 23 additions & 9 deletions .github/workflows/testWlsAksWithDependencyCreation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ on:
description: 'The VM size for the AKS pool'
required: true
default: Standard_D2s_v3
location:
description: 'The location for the resources'
required: true
default: eastus
# sample cURL
# curl --verbose -X POST https://api.github.com/repos/<github_user>/weblogic-azure/dispatches -H 'Accept: application/vnd.github.everest-preview+json' -H 'Authorization: token <personal_access_token>' --data '{"event_type": "aks-integration-test-with-dependency-creation", "client_payload": {"gitUserNameForArtifactsLocation": "<github_user>", "testBranchNameForArtifactsLocation": "<branch_name>", "isForDemo": "false"}}'
repository_dispatch:
types: [aks-integration-test-with-dependency-creation,integration-test-all]

env:
azureCredentials: ${{ secrets.AZURE_CREDENTIALS }}
location: eastus
Copy link
Contributor

Choose a reason for hiding this comment

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

So much better to not hard code this!

resourceGroupForWlsAks: wlsd-aks-${{ github.run_id }}-${{ github.run_number }}
dbAdminUser: weblogic
dbPassword: ${{ secrets.DB_PASSWORD }}
Expand All @@ -51,6 +54,7 @@ jobs:
testBranchNameForArtifactsLocation: ${{ steps.setup-env-variables-based-on-dispatch-event.outputs.testBranchNameForArtifactsLocation }}
azCliVersion: ${{steps.set-az-cli-version.outputs.azCliVersion}}
vmSize: ${{ steps.setup-env-variables-based-on-dispatch-event.outputs.vmSize }}
location: ${{ steps.setup-env-variables-based-on-dispatch-event.outputs.location }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
Expand All @@ -72,27 +76,32 @@ jobs:
- name: Setup environment variables
id: setup-env-variables-based-on-dispatch-event
run: |
location=eastus # default value
if [ ${{ github.event_name }} == 'workflow_dispatch' ]; then
isForDemo=${{ github.event.inputs.isForDemo }}
gitUserNameForArtifactsLocation=${{ github.event.inputs.gitUserNameForArtifactsLocation }}
testBranchNameForArtifactsLocation=${{ github.event.inputs.testBranchNameForArtifactsLocation }}
vmSize=${{ github.event.inputs.vmSize }}
location=${{ github.event.inputs.location }}
else
isForDemo=${{ github.event.client_payload.isForDemo }}
gitUserNameForArtifactsLocation=${{ github.event.client_payload.gitUserNameForArtifactsLocation }}
testBranchNameForArtifactsLocation=${{ github.event.client_payload.testBranchNameForArtifactsLocation }}
vmSize=${{ github.event.client_payload.vmSize }}
location=${{ github.event.client_payload.location }}
fi

echo "##[set-output name=isForDemo;]${isForDemo}"
echo "##[set-output name=gitUserNameForArtifactsLocation;]${gitUserNameForArtifactsLocation}"
echo "##[set-output name=testBranchNameForArtifactsLocation;]${testBranchNameForArtifactsLocation}"
echo "##[set-output name=vmSize;]${vmSize}"
echo "##[set-output name=location;]${location}"

echo "isForDemo=${isForDemo}" >> $GITHUB_ENV
echo "gitUserNameForArtifactsLocation=${gitUserNameForArtifactsLocation}" >> $GITHUB_ENV
echo "testBranchNameForArtifactsLocation=${testBranchNameForArtifactsLocation}" >> $GITHUB_ENV
echo "vmSize=${vmSize}" >> $GITHUB_ENV
echo "location=${location}" >> $GITHUB_ENV
- uses: actions/checkout@v2.3.4
- name: Set up Maven with GitHub token
uses: ./.github/actions/setupmaven
Expand Down Expand Up @@ -137,6 +146,7 @@ jobs:
- name: Get AZ CLI Version
run: |
echo "azCliVersion=${{needs.preflight.outputs.azCliVersion}}" >> $GITHUB_ENV
echo "location=${{needs.preflight.outputs.location}}" >> $GITHUB_ENV
- uses: azure/login@v1
id: azure-login
with:
Expand All @@ -147,7 +157,7 @@ jobs:
azcliversion: ${{ env.azCliVersion }}
inlineScript: |
echo "create resource group" ${{ env.resourceGroupForDB }}
az group create --verbose --name ${{ env.resourceGroupForDB }} --location ${{ env.location }}
az group create --verbose --name ${{ env.resourceGroupForDB }} --location $location

- uses: actions/checkout@v2.3.4
- name: Set up PostgreSQL Flexible Server that allows access from Azure services
Expand All @@ -157,7 +167,7 @@ jobs:
dbName: ${{ env.dbName }}
dbPassword: ${{ env.dbPassword }}
dbServerName: ${{ env.dbServerName }}
location: ${{ env.location }}
location: $location
resourceGroupName: ${{ env.resourceGroupForDB }}

deploy-storage-account:
Expand All @@ -167,14 +177,17 @@ jobs:
- name: Get AZ CLI Version
run: |
echo "azCliVersion=${{needs.preflight.outputs.azCliVersion}}" >> $GITHUB_ENV
echo "location=${{needs.preflight.outputs.location}}" >> $GITHUB_ENV
- name: Checkout Azure-Samples/cargotracker-wls-aks
uses: actions/checkout@v2
with:
repository: Azure-Samples/cargotracker-wls-aks
path: cargotracker
- name: Maven build web app
run: |
mvn clean install -PweblogicOnAks --file cargotracker/pom.xml
- uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '11'
- run: mvn clean install -PweblogicOnAks --file cargotracker/pom.xml
- name: Query version string for deployment verification
run: |
PROPERTY_FILE="cargotracker/target/cargo-tracker/WEB-INF/classes/org/eclipse/cargotracker/messages.properties"
Expand All @@ -191,15 +204,15 @@ jobs:
azcliversion: ${{ env.azCliVersion }}
inlineScript: |
echo "create resource group" ${{ env.resourceGroupForStorageAccount }}
az group create --verbose --name ${{ env.resourceGroupForStorageAccount }} --location ${{ env.location }}
az group create --verbose --name ${{ env.resourceGroupForStorageAccount }} --location $location
- name: Create Storage Account
uses: azure/CLI@v1
with:
azcliversion: ${{ env.azCliVersion }}
inlineScript: |
az storage account create --name ${{ env.storageAccountName }} \
--resource-group ${{ env.resourceGroupForStorageAccount }} \
--location ${{ env.location }} \
--location $location \
--sku Standard_LRS \
--kind StorageV2
- name: Create Storage Container
Expand All @@ -221,6 +234,7 @@ jobs:
- name: Get AZ CLI Version
run: |
echo "azCliVersion=${{needs.preflight.outputs.azCliVersion}}" >> $GITHUB_ENV
echo "location=${{needs.preflight.outputs.location}}" >> $GITHUB_ENV
- name: Checkout weblogic-azure
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -261,7 +275,7 @@ jobs:
azcliversion: ${{ env.azCliVersion }}
inlineScript: |
echo "create resource group" ${{ env.resourceGroupForWlsAks }}
az group create --verbose --name ${{ env.resourceGroupForWlsAks }} --location ${{ env.location }}
az group create --verbose --name ${{ env.resourceGroupForWlsAks }} --location $location
- name: Checkout Azure-Samples/cargotracker-wls-aks
uses: actions/checkout@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<properties>
<!-- versions start -->
<!-- weblogic azure aks versions -->
<version.wls-on-aks-azure-marketplace>1.0.86</version.wls-on-aks-azure-marketplace>
<version.wls-on-aks-azure-marketplace>1.0.87</version.wls-on-aks-azure-marketplace>
<!-- weblogic azure vm versions -->
<version.arm-oraclelinux-wls>1.0.30</version.arm-oraclelinux-wls>
<version.arm-oraclelinux-wls-admin>1.0.55</version.arm-oraclelinux-wls-admin>
Expand Down
4 changes: 2 additions & 2 deletions resources/azure-common.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ azure.apiVersionForAvailabilitySets=2023-07-01
# Microsoft.Compute/virtualMachines
azure.apiVersionForVirtualMachines=2023-07-01
# Microsoft.KeyVault/vaults
azure.apiVersionForKeyVault=2023-02-01
azure.apiVersionForKeyVault=2024-11-01
# Microsoft.KeyVault/vaults/secrets
azure.apiVersionForKeyVaultSecrets=2023-02-01
azure.apiVersionForKeyVaultSecrets=2024-11-01
# Microsoft.ManagedIdentity/userAssignedIdentities
azure.apiVersionForIdentity=2023-01-31
# Microsoft.Network/networkInterfaces
Expand Down
Loading