-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapt ev2 bicepparam preprocessor to generate any()
when a bicepparam file is preprocessed for EV2 with scope binding placeholders, any non-string placeholders needs to be wrapped in the `any()` bicep type function since the placeholder string would not match the expected type for the respective parameter. Signed-off-by: Gerd Oberlechner <[email protected]>
- Loading branch information
Showing
12 changed files
with
697 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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,351 @@ | ||
{ | ||
"$schema": "https://ev2schema.azure.net/schemas/2020-01-01/scopeBindings.json", | ||
"contentVersion": "1.0.0.0", | ||
"scopeBindings": [ | ||
{ | ||
"scopeTagName": "test", | ||
"bindings": [ | ||
{ | ||
"find": "__CXKEYVAULTSOFTDELETE__", | ||
"replaceWith": "$config(cxKeyVaultSoftDelete)" | ||
}, | ||
{ | ||
"find": "__GRAFANAADMINGROUPPRINCIPALID__", | ||
"replaceWith": "$config(grafanaAdminGroupPrincipalId)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEIMAGETAG__", | ||
"replaceWith": "$config(clusterServiceImageTag)" | ||
}, | ||
{ | ||
"find": "__CXKEYVAULTNAME__", | ||
"replaceWith": "$config(cxKeyVaultName)" | ||
}, | ||
{ | ||
"find": "__MAESTROEVENTGRIDMAXCLIENTSESSIONSPERAUTHNAME__", | ||
"replaceWith": "$config(maestroEventGridMaxClientSessionsPerAuthName)" | ||
}, | ||
{ | ||
"find": "__REGIONALDNSSUBDOMAIN__", | ||
"replaceWith": "$config(regionalDNSSubdomain)" | ||
}, | ||
{ | ||
"find": "__MSIKEYVAULTPRIVATE__", | ||
"replaceWith": "$config(msiKeyVaultPrivate)" | ||
}, | ||
{ | ||
"find": "__EXTERNALDNSIMAGETAG__", | ||
"replaceWith": "$config(externalDNSImageTag)" | ||
}, | ||
{ | ||
"find": "__AKSNAME__", | ||
"replaceWith": "$config(aksName)" | ||
}, | ||
{ | ||
"find": "__FIRSTPARTYAPPCLIENTID__", | ||
"replaceWith": "$config(firstPartyAppClientId)" | ||
}, | ||
{ | ||
"find": "__BASEDNSZONERG__", | ||
"replaceWith": "$config(baseDnsZoneRG)" | ||
}, | ||
{ | ||
"find": "__SERVICECOMPONENTACRRESOURCEGROUPS__", | ||
"replaceWith": "$config(serviceComponentAcrResourceGroups)" | ||
}, | ||
{ | ||
"find": "__MGMTUSERAGENTPOOLMAXCOUNT__", | ||
"replaceWith": "$config(mgmtUserAgentPoolMaxCount)" | ||
}, | ||
{ | ||
"find": "__SVCETCDKVSOFTDELETE__", | ||
"replaceWith": "$config(svcEtcdKVSoftDelete)" | ||
}, | ||
{ | ||
"find": "__SERVICECLUSTERRG__", | ||
"replaceWith": "$config(serviceClusterRG)" | ||
}, | ||
{ | ||
"find": "__MAESTROEVENTGRIDNAME__", | ||
"replaceWith": "$config(maestroEventgridName)" | ||
}, | ||
{ | ||
"find": "__HYPERSHIFTOPERATORIMAGETAG__", | ||
"replaceWith": "$config(hypershiftOperatorImageTag)" | ||
}, | ||
{ | ||
"find": "__MAESTROCONSUMERNAME__", | ||
"replaceWith": "$config(maestroConsumerName)" | ||
}, | ||
{ | ||
"find": "__ARODEVOPSMSIID__", | ||
"replaceWith": "$config(aroDevopsMsiId)" | ||
}, | ||
{ | ||
"find": "__GRAFANANAME__", | ||
"replaceWith": "$config(grafanaName)" | ||
}, | ||
{ | ||
"find": "__MAESTROPOSTGRESSERVERVERSION__", | ||
"replaceWith": "$config(maestroPostgresServerVersion)" | ||
}, | ||
{ | ||
"find": "__FRONTENDCOSMOSDBDISABLELOCALAUTH__", | ||
"replaceWith": "$config(frontendCosmosDBDisableLocalAuth)" | ||
}, | ||
{ | ||
"find": "__SVCACRNAME__", | ||
"replaceWith": "$config(svcAcrName)" | ||
}, | ||
{ | ||
"find": "__MAESTROPOSTGRESDEPLOY__", | ||
"replaceWith": "$config(maestroPostgresDeploy)" | ||
}, | ||
{ | ||
"find": "__MGMTSYSTEMAGENTPOOLVMSIZE__", | ||
"replaceWith": "$config(mgmtSystemAgentPoolVmSize)" | ||
}, | ||
{ | ||
"find": "__MAESTROIMAGETAG__", | ||
"replaceWith": "$config(maestroImageTag)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCRG__", | ||
"replaceWith": "$config(imageSyncRG)" | ||
}, | ||
{ | ||
"find": "__MANAGEMENTCLUSTERRG__", | ||
"replaceWith": "$config(managementClusterRG)" | ||
}, | ||
{ | ||
"find": "__MGMTUSERAGENTPOOLOSDISKSIZEGB__", | ||
"replaceWith": "$config(mgmtUserAgentPoolOsDiskSizeGB)" | ||
}, | ||
{ | ||
"find": "__MGMTETCDKVNAME__", | ||
"replaceWith": "$config(mgmtEtcdKVName)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEPOSTGRESPRIVATE__", | ||
"replaceWith": "$config(clusterServicePostgresPrivate)" | ||
}, | ||
{ | ||
"find": "__SERVICEKEYVAULTREGION__", | ||
"replaceWith": "$config(serviceKeyVaultRegion)" | ||
}, | ||
{ | ||
"find": "__SERVICEKEYVAULTSOFTDELETE__", | ||
"replaceWith": "$config(serviceKeyVaultSoftDelete)" | ||
}, | ||
{ | ||
"find": "__MONITORINGMSINAME__", | ||
"replaceWith": "$config(monitoringMsiName)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCIMAGETAG__", | ||
"replaceWith": "$config(imageSyncImageTag)" | ||
}, | ||
{ | ||
"find": "__FRONTENDCOSMOSDBNAME__", | ||
"replaceWith": "$config(frontendCosmosDBName)" | ||
}, | ||
{ | ||
"find": "__VNETADDRESSPREFIX__", | ||
"replaceWith": "$config(vnetAddressPrefix)" | ||
}, | ||
{ | ||
"find": "__REGIONRG__", | ||
"replaceWith": "$config(regionRG)" | ||
}, | ||
{ | ||
"find": "__MSIKEYVAULTSOFTDELETE__", | ||
"replaceWith": "$config(msiKeyVaultSoftDelete)" | ||
}, | ||
{ | ||
"find": "__KUBERNETESVERSION__", | ||
"replaceWith": "$config(kubernetesVersion)" | ||
}, | ||
{ | ||
"find": "__SERVICEKEYVAULTNAME__", | ||
"replaceWith": "$config(serviceKeyVaultName)" | ||
}, | ||
{ | ||
"find": "__MAESTROCERTDOMAIN__", | ||
"replaceWith": "$config(maestroCertDomain)" | ||
}, | ||
{ | ||
"find": "__MGMTUSERAGENTPOOLAZCOUNT__", | ||
"replaceWith": "$config(mgmtUserAgentPoolAzCount)" | ||
}, | ||
{ | ||
"find": "__MGMTKEYVAULTPRIVATE__", | ||
"replaceWith": "$config(mgmtKeyVaultPrivate)" | ||
}, | ||
{ | ||
"find": "__SERVICEKEYVAULTRG__", | ||
"replaceWith": "$config(serviceKeyVaultRG)" | ||
}, | ||
{ | ||
"find": "__MONITORINGWORKSPACENAME__", | ||
"replaceWith": "$config(monitoringWorkspaceName)" | ||
}, | ||
{ | ||
"find": "__MAESTROKEYVAULTNAME__", | ||
"replaceWith": "$config(maestroKeyVaultName)" | ||
}, | ||
{ | ||
"find": "__MAESTROPOSTGRESPRIVATE__", | ||
"replaceWith": "$config(maestroPostgresPrivate)" | ||
}, | ||
{ | ||
"find": "__SERVICEKEYVAULTPRIVATE__", | ||
"replaceWith": "$config(serviceKeyVaultPrivate)" | ||
}, | ||
{ | ||
"find": "__MGMTKEYVAULTNAME__", | ||
"replaceWith": "$config(mgmtKeyVaultName)" | ||
}, | ||
{ | ||
"find": "__MGMTSYSTEMAGENTPOOLMINCOUNT__", | ||
"replaceWith": "$config(mgmtSystemAgentPoolMinCount)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEPOSTGRESNAME__", | ||
"replaceWith": "$config(clusterServicePostgresName)" | ||
}, | ||
{ | ||
"find": "__GLOBALRG__", | ||
"replaceWith": "$config(globalRG)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCENVIRONMENTNAME__", | ||
"replaceWith": "$config(imageSyncEnvironmentName)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEACRRG__", | ||
"replaceWith": "$config(clusterServiceAcrRG)" | ||
}, | ||
{ | ||
"find": "__OCMIRRORIMAGETAG__", | ||
"replaceWith": "$config(ocMirrorImageTag)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCREPOSITORIES__", | ||
"replaceWith": "$config(imageSyncRepositories)" | ||
}, | ||
{ | ||
"find": "__OCPACRNAME__", | ||
"replaceWith": "$config(ocpAcrName)" | ||
}, | ||
{ | ||
"find": "__CXKEYVAULTPRIVATE__", | ||
"replaceWith": "$config(cxKeyVaultPrivate)" | ||
}, | ||
{ | ||
"find": "__REGION__", | ||
"replaceWith": "$config(region)" | ||
}, | ||
{ | ||
"find": "__FRONTENDCOSMOSDBDEPLOY__", | ||
"replaceWith": "$config(frontendCosmosDBDeploy)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEPOSTGRESDEPLOY__", | ||
"replaceWith": "$config(clusterServicePostgresDeploy)" | ||
}, | ||
{ | ||
"find": "__MAESTRORESTRICTISTIOINGRESS__", | ||
"replaceWith": "$config(maestroRestrictIstioIngress)" | ||
}, | ||
{ | ||
"find": "__MGMTSYSTEMAGENTPOOLOSDISKSIZEGB__", | ||
"replaceWith": "$config(mgmtSystemAgentPoolOsDiskSizeGB)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCACRRG__", | ||
"replaceWith": "$config(imageSyncAcrRG)" | ||
}, | ||
{ | ||
"find": "__MGMTKEYVAULTSOFTDELETE__", | ||
"replaceWith": "$config(mgmtKeyVaultSoftDelete)" | ||
}, | ||
{ | ||
"find": "__SVCETCDKVNAME__", | ||
"replaceWith": "$config(svcEtcdKVName)" | ||
}, | ||
{ | ||
"find": "__MGMTUSERAGENTPOOLMINCOUNT__", | ||
"replaceWith": "$config(mgmtUserAgentPoolMinCount)" | ||
}, | ||
{ | ||
"find": "__BASEDNSZONENAME__", | ||
"replaceWith": "$config(baseDnsZoneName)" | ||
}, | ||
{ | ||
"find": "__ISTIOVERSION__", | ||
"replaceWith": "$config(istioVersion)" | ||
}, | ||
{ | ||
"find": "__CLUSTERSERVICEIMAGEREPO__", | ||
"replaceWith": "$config(clusterServiceImageRepo)" | ||
}, | ||
{ | ||
"find": "__MSIKEYVAULTNAME__", | ||
"replaceWith": "$config(msiKeyVaultName)" | ||
}, | ||
{ | ||
"find": "__ACRNAME__", | ||
"replaceWith": "$config(acrName)" | ||
}, | ||
{ | ||
"find": "__OCMIRRORIMAGEREPO__", | ||
"replaceWith": "$config(ocMirrorImageRepo)" | ||
}, | ||
{ | ||
"find": "__IMAGESYNCIMAGEREPO__", | ||
"replaceWith": "$config(imageSyncImageRepo)" | ||
}, | ||
{ | ||
"find": "__MGMTSYSTEMAGENTPOOLMAXCOUNT__", | ||
"replaceWith": "$config(mgmtSystemAgentPoolMaxCount)" | ||
}, | ||
{ | ||
"find": "__SUBNETPREFIX__", | ||
"replaceWith": "$config(subnetPrefix)" | ||
}, | ||
{ | ||
"find": "__MAESTROIMAGEBASE__", | ||
"replaceWith": "$config(maestroImageBase)" | ||
}, | ||
{ | ||
"find": "__PARENT_CHILD__", | ||
"replaceWith": "$config(parent.child)" | ||
}, | ||
{ | ||
"find": "__MGMTETCDKVSOFTDELETE__", | ||
"replaceWith": "$config(mgmtEtcdKVSoftDelete)" | ||
}, | ||
{ | ||
"find": "__OIDCSTORAGEACCOUNTNAME__", | ||
"replaceWith": "$config(oidcStorageAccountName)" | ||
}, | ||
{ | ||
"find": "__MAESTROPOSTGRESNAME__", | ||
"replaceWith": "$config(maestroPostgresName)" | ||
}, | ||
{ | ||
"find": "__MAESTROPOSTGRESSERVERSTORAGESIZEGB__", | ||
"replaceWith": "$config(maestroPostgresServerStorageSizeGB)" | ||
}, | ||
{ | ||
"find": "__PODSUBNETPREFIX__", | ||
"replaceWith": "$config(podSubnetPrefix)" | ||
}, | ||
{ | ||
"find": "__MGMTUSERAGENTPOOLVMSIZE__", | ||
"replaceWith": "$config(mgmtUserAgentPoolVmSize)" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.