Skip to content

Commit

Permalink
edit in bicep
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Chang committed Dec 13, 2024
1 parent e18b738 commit 6c0f373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using '../templates/svc-cluster.bicep'

param kubernetesVersion = '{{ .kubernetesVersion }}'
param istioVersion = length('{{ .svc.istio.newVersion }}') == 0 ? ['{{ .svc.istio.version }}'] : ['{{ .svc.istio.version }}', '{{ .svc.istio.newVersion }}']
param istioVersion = ['{{ .svc.istio.version }}', '{{ .svc.istio.newVersion }}']
param vnetAddressPrefix = '{{ .vnetAddressPrefix }}'
param subnetPrefix = '{{ .subnetPrefix }}'
param podSubnetPrefix = '{{ .podSubnetPrefix }}'
Expand Down
3 changes: 2 additions & 1 deletion dev-infrastructure/templates/svc-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ param aroDevopsMsiId string
param regionalDNSZoneName string

var clusterServiceMIName = 'clusters-service'
var istio = empty(istioVersion[1]) ? [istioVersion[0]] : istioVersion

resource serviceKeyVault 'Microsoft.KeyVault/vaults@2024-04-01-preview' existing = {
name: serviceKeyVaultName
Expand Down Expand Up @@ -166,7 +167,7 @@ module svcCluster '../modules/aks-cluster-base.bicep' = {
aksEtcdKVEnableSoftDelete: aksEtcdKVEnableSoftDelete
kubernetesVersion: kubernetesVersion
deployIstio: true
istioVersion: istioVersion
istioVersion: istio
vnetAddressPrefix: vnetAddressPrefix
subnetPrefix: subnetPrefix
podSubnetPrefix: podSubnetPrefix
Expand Down

0 comments on commit 6c0f373

Please sign in to comment.