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

Enable Workload Identity #254

Merged
merged 124 commits into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
3246efc
Moving to workload identity
danielscholl Nov 14, 2024
7aca360
Updated Chart
danielscholl Nov 14, 2024
2f417c4
Updated Chart
danielscholl Nov 14, 2024
5aa97d2
Updated Chart
danielscholl Nov 14, 2024
f0909de
Testing services with workload identity.
danielscholl Nov 14, 2024
7d4858a
Moved entitlements back to sp
danielscholl Nov 14, 2024
8431985
Revert Storage
danielscholl Nov 15, 2024
c610ace
Revert Storage
danielscholl Nov 15, 2024
1b3051f
backout entitlements
danielscholl Nov 18, 2024
f020e84
migrated storage
danielscholl Nov 18, 2024
cd53ca1
regress storage
danielscholl Nov 18, 2024
45a736f
Entitlements only.
danielscholl Nov 18, 2024
09509c2
change
danielscholl Nov 18, 2024
615d041
change
danielscholl Nov 18, 2024
5f2a4d4
change
danielscholl Nov 19, 2024
0fd556f
change
danielscholl Nov 19, 2024
f9a46c6
Changed
danielscholl Nov 19, 2024
2f49166
Changed
danielscholl Nov 19, 2024
051edc7
Changed
danielscholl Nov 19, 2024
ad07fc4
Changed
danielscholl Nov 19, 2024
d9f45bd
Changed
danielscholl Nov 19, 2024
cd1a4c2
Changed
danielscholl Nov 19, 2024
0eef162
Changed
danielscholl Nov 19, 2024
9afc880
Changed
danielscholl Nov 19, 2024
3727285
Updated Chart
danielscholl Nov 19, 2024
8930663
Updated Chart
danielscholl Nov 19, 2024
2a637a8
Updated Chart
danielscholl Nov 19, 2024
2874189
Add Entitlements
danielscholl Nov 19, 2024
8207cc2
Add Entitlements
danielscholl Nov 19, 2024
ebde890
Add Entitlements
danielscholl Nov 19, 2024
828ec14
Updated the Envoy Filter.
danielscholl Nov 19, 2024
f285d3c
Updated the Envoy Filter.
danielscholl Nov 21, 2024
ebc5e86
Moved to internal registry.
danielscholl Nov 25, 2024
27ead9d
added ACR pull to AKS
danielscholl Nov 25, 2024
b63368d
added ACR pull to AKS
danielscholl Nov 25, 2024
271bc83
Enabled local ACR pulling.
danielscholl Nov 27, 2024
f69ffd6
Regress to OSDU repo
danielscholl Nov 27, 2024
22b45ef
Updated entitlements
danielscholl Nov 27, 2024
8ce39ef
Add in the job.
danielscholl Nov 27, 2024
144f18a
Added app insights
danielscholl Nov 27, 2024
b7b97e1
Updated entitlements
danielscholl Nov 27, 2024
772f445
Updated override repo
danielscholl Nov 27, 2024
fd8b708
Added registry to configmap
danielscholl Nov 27, 2024
71ccbee
Added configuration for workload identity.
danielscholl Nov 30, 2024
564b49b
Added configuration for workload identity.
danielscholl Nov 30, 2024
26faccf
Updated Envoy with debugging and modified request-authentication for …
danielscholl Dec 1, 2024
2eeab0c
Added an additional audience.
danielscholl Dec 2, 2024
8c29297
Moved back to SP
danielscholl Dec 3, 2024
6abb744
Moved to Workload Identity.
danielscholl Dec 3, 2024
ba97786
Changed auth method in partition init.
danielscholl Dec 3, 2024
30ecdb2
Updated secrets and bitnami chart location.
danielscholl Dec 4, 2024
4c7f227
Moved to v1 api from source.toolkit.fluxcd.io/v1beta2.
danielscholl Dec 4, 2024
1dd3f1a
Changing partition job to different scope for managed identity.
danielscholl Dec 4, 2024
bffc397
Updated job
danielscholl Dec 4, 2024
11d4c8c
Updated jobs
danielscholl Dec 4, 2024
0046ca3
Updated job
danielscholl Dec 4, 2024
9b94e1d
change to workload identity.
danielscholl Dec 4, 2024
9c75af0
Added back user init.
danielscholl Dec 5, 2024
3be5bca
Added default scope to scripts.
danielscholl Dec 5, 2024
1d92b9f
Removed ./default to scripts.
danielscholl Dec 5, 2024
fb2ad16
Reworked user-init script.
danielscholl Dec 5, 2024
cff3fde
Reworked user-init script.
danielscholl Dec 5, 2024
f4d0736
Reworked user-init script.
danielscholl Dec 5, 2024
a30270f
Reworked user-init script.
danielscholl Dec 5, 2024
d620b9c
Added sp user capability.
danielscholl Dec 5, 2024
53f1ea6
Added sp user capability.
danielscholl Dec 5, 2024
ca303e2
Added sp user capability.
danielscholl Dec 5, 2024
c184c2f
Added sp user capability.
danielscholl Dec 5, 2024
1005ff7
Added indexer-queue.
danielscholl Dec 21, 2024
1bce139
Merge rebase
danielscholl Jan 3, 2025
439e474
Added legal coo upload back.
danielscholl Jan 3, 2025
f80b941
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
7fcd4e7
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
1f853d4
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
1a36780
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
8d32cb8
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
e9b361b
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
74057e0
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
a78d021
Updated blob-upload chart to use workload identity.
danielscholl Jan 3, 2025
3d218e2
Added indexer and schema.
danielscholl Jan 3, 2025
47e649c
Renabled Indexer-Queue
danielscholl Jan 3, 2025
7c1ca44
Renabled Indexer-Queue
danielscholl Jan 3, 2025
a7e4787
Fixing schema init.
danielscholl Jan 3, 2025
f56ae59
Fixing schema init.
danielscholl Jan 3, 2025
8126dc3
Fixing schema init.
danielscholl Jan 3, 2025
1e5cc1f
Adding in additional services.
danielscholl Jan 3, 2025
aec2d94
Added workflow init.
danielscholl Jan 3, 2025
b9f98fe
Added workflow init.
danielscholl Jan 3, 2025
f9a7f45
Removed init users.
danielscholl Jan 3, 2025
ee999d5
Added back user
danielscholl Jan 4, 2025
97be15c
Reworked the init scripts.
danielscholl Jan 4, 2025
6379d10
Updated userInit values.
danielscholl Jan 4, 2025
9bea6eb
Added sp user init.
danielscholl Jan 4, 2025
b37c2b9
Rework Envoy Filter.
danielscholl Jan 6, 2025
7f17e79
Work fix for possible issuer problem.
danielscholl Jan 6, 2025
4b70f8f
Envoy Filter fixes
danielscholl Jan 6, 2025
973bf02
Envoy Filter fixes
danielscholl Jan 6, 2025
35204c0
Envoy Filter fixes
danielscholl Jan 6, 2025
f771f16
Envoy Filter fixes
danielscholl Jan 6, 2025
579b91a
Envoy Filter fixes
danielscholl Jan 6, 2025
bbfc99f
Envoy Filter fixes
danielscholl Jan 6, 2025
c88e0b0
Envoy Filter fixes
danielscholl Jan 6, 2025
f5ab91d
Removed init users.
danielscholl Jan 6, 2025
f8b8968
Debug entitlements init
danielscholl Jan 6, 2025
9e110cc
Debug entitlements init
danielscholl Jan 6, 2025
8880f2e
Debug entitlements init
danielscholl Jan 6, 2025
d6b4297
Debug
danielscholl Jan 6, 2025
9ba9122
Debug
danielscholl Jan 6, 2025
204ce29
Debug
danielscholl Jan 6, 2025
f7db9d2
Debug
danielscholl Jan 6, 2025
01d95ed
Debug
danielscholl Jan 6, 2025
50839ee
Debug
danielscholl Jan 6, 2025
2ca426a
Debug
danielscholl Jan 6, 2025
784675b
Adjusted log levels
danielscholl Jan 6, 2025
4f00285
Added back legal.
danielscholl Jan 6, 2025
817c86d
Working Admin of Entitlements issues.
danielscholl Jan 6, 2025
bab66f1
New location for Legal_COO
danielscholl Jan 6, 2025
5fea007
Readd services.
danielscholl Jan 6, 2025
e1caa4d
Fixes for indexing properly.
danielscholl Jan 6, 2025
0533108
adding WI to airflow pod template.
danielscholl Jan 7, 2025
79a9242
Merge branch 'main' into identity
danielscholl Jan 25, 2025
06c2dd4
Upgrade bicep providers and modules. Configure custom vm sizes.
danielscholl Jan 26, 2025
52bca17
Updated documentation.
danielscholl Jan 26, 2025
52d6634
Fixing validate step to remove client secret.
danielscholl Jan 26, 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
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ on:
required: false
region:
description: "Region (needs to be same as byo vnet location)"
default: "eastus2"
default: "centralus"
type: string
required: false
doStandards:
Expand Down Expand Up @@ -74,7 +74,7 @@ env:
AZCLIVERSION: 2.63.0 # https://github.com/Azure/azure-cli/issues/29828
ParamFilePath: ".github/parameters.json"
DEPNAME: "dep${{ github.run_number }}"

jobs:
Standards:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
if [ -z "${{ github.event.inputs.region }}" ]
then
echo "Region parameter not available through GitHub event data, setting default"
REGION="eastus2"
REGION="centralus"
else
echo "Region parameter found in GitHub event (${{ github.event.inputs.region }})"
REGION="${{ github.event.inputs.region }}"
Expand Down Expand Up @@ -270,8 +270,8 @@ jobs:
azcliversion: ${{ env.AZCLIVERSION }}
inlineScript: |
DEPNAME='Dep${{ github.run_number }}'
PARAMS='${{ steps.imperitiveparams.outputs.PARAMOVERRIDES }} applicationClientId=${{ env.AZURE_CLIENT_ID }} applicationClientSecret=${{ secrets.AZURE_CLIENT_SECRET }} applicationClientPrincipalOid=${{ env.AZURE_CLIENT_PRINCIPAL_OID }} emailAddress=${{ secrets.EMAIL_ADDRESS }}'

PARAMS='${{ steps.imperitiveparams.outputs.PARAMOVERRIDES }} applicationClientId=${{ env.AZURE_CLIENT_ID }} applicationClientPrincipalOid=${{ env.AZURE_CLIENT_PRINCIPAL_OID }} emailAddress=${{ secrets.EMAIL_ADDRESS }}'
echo $PARAMS
az deployment group validate -f bicep/main.bicep -g $RESOURCE_GROUP -p ${{ env.ParamFilePath }} -p $PARAMS --verbose

Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:

- name: Install azd
uses: Azure/[email protected]

- name: Log in with Azure (Federated Credentials)
if: ${{ env.AZURE_CLIENT_ID != '' }}
run: |
Expand Down
297 changes: 155 additions & 142 deletions bicep/main.bicep

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions bicep/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"emailAddress": {
"value": "${EMAIL_ADDRESS}"
},
"customVMSize": {
"value": "${CLUSTER_VM_SIZE}"
},
"ingressType": {
"value": "${CLUSTER_INGRESS}"
},
Expand All @@ -33,6 +30,13 @@
"enableLockDown": "${ENABLE_LOCK_DOWN}"
}
},
"serverConfiguration": {
"value": {
"systemPool": "${VMSIZE_SYSTEM_POOL}",
"zonePool": "${VMSIZE_ZONE_POOL}",
"userPool": "${VMSIZE_USER_POOL}"
}
},
"vnetConfiguration": {
"value": {
"group": "${VIRTUAL_NETWORK_GROUP}",
Expand Down
53 changes: 37 additions & 16 deletions bicep/modules/blade_cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,30 @@ param enableTelemetry bool
@description('The workspace resource Id for diagnostics')
param workspaceResourceId string

@description('A Custom VM Size for Internal Pool')
param vmSize string
// D4pds v5 with 4 vCPUs and 16 GiB of memory. Available in 22 regions starting from $88.18 per month.
// D4s_v5 with 4 vCPUs and 16 GiB of memory. Available in 50 regions starting from $140.16 per month.
@description('A Custom VM Size for System Pool (4x8 ARM:true)')
param vmSizeSystemPool string = 'Standard_D4pds_v6'

// D2pds v5 with 2 vCPUs and 8 GiB of memory. Available in 22 regions starting from $44.09 per month.
// D2s_v5 with 2 vCPUs and 8 GiB of memory. Available in 50 regions starting from $70.08 per month.
@description('A Custom VM Size for Zone Pool (2x8 ARM:true)')
param vmSizeZonePool string = 'Standard_D2pds_v6'

// B4s_v2 with 4 vCPUs and 16 GiB of memory. Available in 49 regions starting from $16.64 per month.
// D4s_v5 with 4 vCPUs and 16 GiB of memory. Available in 50 regions starting from $140.16 per month.
@description('A Custom VM Size for User Pool (2x8 ARM:false BURST:true)')
param vmSizeUserPool string = 'Standard_B4s_v2'

@minLength(9)
@maxLength(18)
@description('The address range to use for services')
param serviceCidr string = '172.16.0.0/16'
param serviceCidr string = '10.0.0.0/16'

@minLength(7)
@maxLength(15)
@description('The IP address to reserve for DNS')
param dnsServiceIP string = '172.16.0.10'
param dnsServiceIP string = '10.0.0.10'

@description('The id of the subnet to deploy the AKS nodes')
param aksSubnetId string
Expand All @@ -51,6 +63,8 @@ param enablePrivateCluster bool = true
@description('Feature Flag to Enable Node Resource Group Lock Down')
param nodeResourceGroupLockDown bool = true



/////////////////////////////////
// Configuration
/////////////////////////////////
Expand All @@ -61,15 +75,18 @@ var serviceLayerConfig = {
}
cluster: {
tier: 'Standard'
sku: 'Base'
aksVersion: '1.30'

// D2pds v5 with 2 vCPUs and 8 GiB of memory. Available in 22 regions starting from $44.09 per month.
// D4pds v5 with 4 vCPUs and 16 GiB of memory. Available in 22 regions starting from $88.18 per month.
// D2s_v5 with 2 vCPUs and 8 GiB of memory. Available in 50 regions starting from $70.08 per month.
// D4s_v5 with 4 vCPUs and 16 GiB of memory. Available in 50 regions starting from $140.16 per month.
vmSize: 'Standard_D4pds_v5'
poolSize: 'Standard_D2pds_v5'
defaultSize: 'Standard_D4s_v5' // OSDU Java Services don't run on ARM?
// // D2pds v5 with 2 vCPUs and 8 GiB of memory. Available in 22 regions starting from $44.09 per month.
// // D4pds v5 with 4 vCPUs and 16 GiB of memory. Available in 22 regions starting from $88.18 per month.
// // D2s_v5 with 2 vCPUs and 8 GiB of memory. Available in 50 regions starting from $70.08 per month.
// // D4s_v5 with 4 vCPUs and 16 GiB of memory. Available in 50 regions starting from $140.16 per month.
// // D4ps_v5 with 4 vCPUs and 16 GiB of memory. Available in 23 regions, starting from $73.73 per month.
// // B4s_v2 with 4 vCPUs and 16 GiB of memory. Available in 49 regions starting from $16.64 per month.
// vmSize: 'Standard_D4pds_v6'
// poolSize: 'Standard_D2pds_v6'
// defaultSize: 'Standard_B4s_v2' // OSDU Java Services don't run on ARM?
}
}

Expand All @@ -96,6 +113,7 @@ module cluster './managed-cluster/main.bicep' = {
name: '${replace(bladeConfig.sectionName, '-', '')}${uniqueString(resourceGroup().id, bladeConfig.sectionName)}'
location: location
skuTier: serviceLayerConfig.cluster.tier
skuName: serviceLayerConfig.cluster.sku
kubernetesVersion: serviceLayerConfig.cluster.aksVersion

// Assign Tags
Expand Down Expand Up @@ -209,7 +227,7 @@ module cluster './managed-cluster/main.bicep' = {
{
name: 'system'
mode: 'System'
vmSize: empty(vmSize) ? serviceLayerConfig.cluster.vmSize : vmSize
vmSize: vmSizeSystemPool
enableAutoScaling: !enableNodeAutoProvisioning
count: enableNodeAutoProvisioning ? 2 : null
minCount: enableNodeAutoProvisioning ? null : 2
Expand Down Expand Up @@ -237,7 +255,7 @@ module cluster './managed-cluster/main.bicep' = {
{
name: 'default'
mode: 'User'
vmSize: empty(vmSize) ? serviceLayerConfig.cluster.defaultSize : vmSize
vmSize: vmSizeUserPool
enableAutoScaling: !enableNodeAutoProvisioning
count: enableNodeAutoProvisioning ? 4 : null
minCount: enableNodeAutoProvisioning ? null : 4
Expand All @@ -256,7 +274,7 @@ module cluster './managed-cluster/main.bicep' = {
{
name: 'poolz1'
mode: 'User'
vmSize: empty(vmSize) ? serviceLayerConfig.cluster.poolSize : vmSize
vmSize: vmSizeZonePool
enableAutoScaling: !enableNodeAutoProvisioning
minCount: enableNodeAutoProvisioning ? null : 1
maxCount: enableNodeAutoProvisioning ? null : 3
Expand All @@ -277,7 +295,7 @@ module cluster './managed-cluster/main.bicep' = {
{
name: 'poolz2'
mode: 'User'
vmSize: empty(vmSize) ? serviceLayerConfig.cluster.poolSize : vmSize
vmSize: vmSizeZonePool
enableAutoScaling: !enableNodeAutoProvisioning
minCount: enableNodeAutoProvisioning ? null : 1
maxCount: enableNodeAutoProvisioning ? null : 3
Expand All @@ -298,7 +316,7 @@ module cluster './managed-cluster/main.bicep' = {
{
name: 'poolz3'
mode: 'User'
vmSize: empty(vmSize) ? serviceLayerConfig.cluster.poolSize : vmSize
vmSize: vmSizeZonePool
enableAutoScaling: !enableNodeAutoProvisioning
minCount: enableNodeAutoProvisioning ? null : 1
maxCount: enableNodeAutoProvisioning ? null : 3
Expand Down Expand Up @@ -394,6 +412,9 @@ output natClusterIP string = natClusterIP.outputs.ipAddress
@description('The OIDC Issuer URL for the cluster.')
output oidcIssuerUrl string = cluster.outputs.oidcIssuerUrl

@description('The Object ID of the Kubelet Identity.')
output kubeletIdentityId string = cluster.outputs.kubeletIdentityObjectId

// =============== //
// Definitions //
// =============== //
Expand Down
71 changes: 43 additions & 28 deletions bicep/modules/blade_configuration.bicep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/////////////////
// Configuration Blade
// Configuration Blade
/////////////////

@description('The configuration for the blade section.')
Expand All @@ -12,10 +12,10 @@ param location string
param tags object = {}

@description('The name of the Key Vault where the secret exists')
param kvName string
param kvName string

@description('The Uri of the Key Vault where the secret exists')
param kvUri string
param kvUri string

@description('The name of the cluster.')
param clusterName string
Expand Down Expand Up @@ -113,12 +113,21 @@ resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
name: kvName
}

resource keySecret 'Microsoft.KeyVault/vaults/secrets@2023-07-01' = {
resource keySecretSpUsername 'Microsoft.KeyVault/vaults/secrets@2023-07-01' = {
name: 'app-dev-sp-username'
parent: keyVault

properties: {
value: applicationClientId
value: appIdentity.properties.clientId
}
}

resource keySecretSpPassword 'Microsoft.KeyVault/vaults/secrets@2023-07-01' = {
name: 'app-dev-sp-password'
parent: keyVault

properties: {
value: 'dummy'
}
}

Expand Down Expand Up @@ -169,12 +178,12 @@ var federatedIdentityCredentials = [
]

/*
_______ _______ _______ _______ .______ ___ .___________. __ ______ .__ __.
| ____|| ____|| \ | ____|| _ \ / \ | || | / __ \ | \ | |
| |__ | |__ | .--. || |__ | |_) | / ^ \ `---| |----`| | | | | | | \| |
| __| | __| | | | || __| | / / /_\ \ | | | | | | | | | . ` |
| | | |____ | '--' || |____ | |\ \----./ _____ \ | | | | | `--' | | |\ |
|__| |_______||_______/ |_______|| _| `._____/__/ \__\ |__| |__| \______/ |__| \__|
_______ _______ _______ _______ .______ ___ .___________. __ ______ .__ __.
| ____|| ____|| \ | ____|| _ \ / \ | || | / __ \ | \ | |
| |__ | |__ | .--. || |__ | |_) | / ^ \ `---| |----`| | | | | | | \| |
| __| | __| | | | || __| | / / /_\ \ | | | | | | | | | . ` |
| | | |____ | '--' || |____ | |\ \----./ _____ \ | | | | | `--' | | |\ |
|__| |_______||_______/ |_______|| _| `._____/__/ \__\ |__| |__| \______/ |__| \__|
*/
@batchSize(1)
module federatedCredentials './federated_identity.bicep' = [for (cred, index) in federatedIdentityCredentials: {
Expand Down Expand Up @@ -207,6 +216,12 @@ var common_helm_values = [
contentType: 'text/plain'
label: 'configmap-common-values'
}
{
name: 'AZURE_PAAS_WORKLOADIDENTITY_ISENABLED'
value: 'true'
contentType: 'text/plain'
label: 'configmap-common-values'
}
{
name: 'ACCEPT_HTTP'
value: 'true'
Expand Down Expand Up @@ -323,12 +338,12 @@ var partitionStorageSettings = [for (name, i) in partitionStorageNames: {
}]

/*
___ .______ .______ ______ ______ .__ __. _______ __ _______
___ .______ .______ ______ ______ .__ __. _______ __ _______
/ \ | _ \ | _ \ / | / __ \ | \ | | | ____|| | / _____|
/ ^ \ | |_) | | |_) | | ,----'| | | | | \| | | |__ | | | | __
/ /_\ \ | ___/ | ___/ | | | | | | | . ` | | __| | | | | |_ |
/ _____ \ | | | | | `----.| `--' | | |\ | | | | | | |__| |
/__/ \__\ | _| | _| \______| \______/ |__| \__| |__| |__| \______|
/ ^ \ | |_) | | |_) | | ,----'| | | | | \| | | |__ | | | | __
/ /_\ \ | ___/ | ___/ | | | | | | | . ` | | __| | | | | |_ |
/ _____ \ | | | | | `----.| `--' | | |\ | | | | | | |__| |
/__/ \__\ | _| | _| \______| \______/ |__| \__| |__| |__| \______|
*/
// AVM Module Customized due for east of settings.
module app_config './app-configuration/main.bicep' = {
Expand Down Expand Up @@ -397,12 +412,12 @@ values.yaml: |
}

/*
______ ______ .__ __. _______ __ _______ .___ ___. ___ .______
/ | / __ \ | \ | | | ____|| | / _____|| \/ | / \ | _ \
| ,----'| | | | | \| | | |__ | | | | __ | \ / | / ^ \ | |_) |
| | | | | | | . ` | | __| | | | | |_ | | |\/| | / /_\ \ | ___/
| `----.| `--' | | |\ | | | | | | |__| | | | | | / _____ \ | |
\______| \______/ |__| \__| |__| |__| \______| |__| |__| /__/ \__\ | _|
______ ______ .__ __. _______ __ _______ .___ ___. ___ .______
/ | / __ \ | \ | | | ____|| | / _____|| \/ | / \ | _ \
| ,----'| | | | | \| | | |__ | | | | __ | \ / | / ^ \ | |_) |
| | | | | | | . ` | | __| | | | | |_ | | |\/| | / /_\ \ | ___/
| `----.| `--' | | |\ | | | | | | |__| | | | | | / _____ \ | |
\______| \______/ |__| \__| |__| |__| \______| |__| |__| /__/ \__\ | _|
*/
module appConfigMap './aks-config-map/main.bicep' = {
name: '${bladeConfig.sectionName}-cluster-appconfig-configmap'
Expand All @@ -411,16 +426,16 @@ module appConfigMap './aks-config-map/main.bicep' = {
location: location
name: 'config-map-values'
namespace: 'default'

newOrExistingManagedIdentity: 'existing'
managedIdentityName: managedIdentityName
existingManagedIdentitySubId: subscription().subscriptionId
existingManagedIdentityResourceGroupName:resourceGroup().name

// Order of items matters here.
fileData: [
format(configMaps.appConfigTemplate,
subscription().tenantId,
format(configMaps.appConfigTemplate,
subscription().tenantId,
appIdentity.properties.clientId,
app_config.outputs.endpoint,
kvUri,
Expand Down Expand Up @@ -457,9 +472,9 @@ var serviceLayerConfig = {
/* _______ __ .___________. ______ .______ _______.
/ _____|| | | | / __ \ | _ \ / |
| | __ | | `---| |----`| | | | | |_) | | (----`
| | |_ | | | | | | | | | | ___/ \ \
| |__| | | | | | | `--' | | | .----) |
\______| |__| |__| \______/ | _| |_______/
| | |_ | | | | | | | | | | ___/ \ \
| |__| | | | | | | `--' | | | .----) |
\______| |__| |__| \______/ | _| |_______/
*/
//--------------Flux Config---------------
module fluxConfiguration 'br/public:avm/res/kubernetes-configuration/flux-configuration:0.3.3' = if(enableSoftwareLoad) {
Expand Down
Loading
Loading