@@ -32,15 +32,6 @@ param ingressType string = 'External'
32
32
@description ('Feature Flag: Enable Storage accounts public access.' )
33
33
param enableBlobPublicAccess bool = false
34
34
35
- @description ('Feature Flag: Enable AKS Enhanced Subnet Support (Azure CNI)' )
36
- param enablePodSubnet bool = false
37
-
38
- @description ('Optional: Cluster Configuration Overrides' )
39
- param clusterConfiguration object = {
40
- enablePrivateCluster : ''
41
- enableNodeAutoProvisioning : ''
42
- }
43
-
44
35
@description ('(Optional) Software Load Override - {enable/osduCore/osduReference} --> true/false, {repository} --> https://github.com/azure/osdu-devloper {branch} --> branch:main' )
45
36
param clusterSoftware object = {
46
37
enable : true
@@ -58,6 +49,12 @@ param experimentalSoftware object = {
58
49
adminUI : false
59
50
}
60
51
52
+ @description ('Optional: Cluster Configuration Overrides' )
53
+ param clusterConfiguration object = {
54
+ enableNodeAutoProvisioning : true
55
+ enablePrivateCluster : false
56
+ }
57
+
61
58
@description ('Optional. Bring your own Virtual Network.' )
62
59
param vnetConfiguration object = {
63
60
group : ''
@@ -82,14 +79,6 @@ param vnetConfiguration object = {
82
79
}
83
80
}
84
81
85
- // This would be a type but bugs exist for ARM Templates so is object instead.
86
- @description ('Cluster Network Overrides - {ingress} (Both/Internal/External), {serviceCidr}, {dnsServiceIP}' )
87
- param clusterNetwork object = {
88
- ingress : ''
89
- serviceCidr : ''
90
- dnsServiceIP : ''
91
- }
92
-
93
82
/////////////////////////////////
94
83
// Configuration
95
84
/////////////////////////////////
@@ -211,7 +200,7 @@ module networkBlade 'modules/blade_network.bicep' = if (enableVnetInjection) {
211
200
workspaceResourceId : logAnalytics .outputs .resourceId
212
201
identityId : stampIdentity .outputs .principalId
213
202
214
- enablePodSubnet : enablePodSubnet
203
+ enablePodSubnet : vnetConfiguration . podSubnet . name != '' && vnetConfiguration . podSubnet . prefix != '' ? true : false
215
204
enableVnetInjection : enableVnetInjection
216
205
217
206
vnetConfiguration : {
@@ -340,14 +329,13 @@ module serviceBlade 'modules/blade_service.bicep' = {
340
329
location : location
341
330
enableTelemetry : enableTelemetry
342
331
332
+ enableNodeAutoProvisioning : clusterConfiguration .enableNodeAutoProvisioning == 'false' ? false : true
333
+ enablePrivateCluster : clusterConfiguration .enablePrivateCluster == 'false' ? false : true
334
+
343
335
osduVersion : clusterSoftware .osduVersion == '' ? 'master' : clusterSoftware .osduVersion
344
336
enableSoftwareLoad : clusterSoftware .enable == 'false' ? false : true
345
337
enableOsduCore : clusterSoftware .osduCore == 'false' ? false : true
346
338
enableOsdureference : clusterSoftware .osduReference == 'false' ? false : true
347
-
348
- enableNodeAutoProvisioning : clusterConfiguration .enableNodeAutoProvisioning == 'false' ? false : true
349
- enablePrivateCluster : clusterConfiguration .enablePrivateCluster == 'true' ? true : false
350
-
351
339
enableExperimental : experimentalSoftware .enable == 'true' ? true : false
352
340
enableAdminUI : experimentalSoftware .adminUI == 'true' ? true : false
353
341
@@ -364,12 +352,10 @@ module serviceBlade 'modules/blade_service.bicep' = {
364
352
partitionServiceBusNames : partitionBlade .outputs .partitionServiceBusNames
365
353
366
354
aksSubnetId : enableVnetInjection ? networkBlade .outputs .aksSubnetId : ''
367
- podSubnetId : enableVnetInjection && enablePodSubnet ? networkBlade .outputs .podSubnetId : ''
355
+ podSubnetId : enableVnetInjection ? networkBlade .outputs .podSubnetId : ''
368
356
vmSize : customVMSize
369
357
370
358
clusterIngress : ingressType == '' ? 'External' : ingressType
371
- serviceCidr : clusterNetwork .serviceCidr == '' ? '172.16.0.0/16' : clusterNetwork .serviceCidr
372
- dnsServiceIP : clusterNetwork .dnsServiceIP == '' ? '172.16.0.10' : clusterNetwork .vnet
373
359
374
360
softwareBranch : clusterSoftware .branch
375
361
softwareRepository : clusterSoftware .repository
0 commit comments