Skip to content

Commit

Permalink
csv for istio version
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Dec 19, 2024
1 parent cfa7517 commit b0e3cce
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 40 deletions.
2 changes: 1 addition & 1 deletion config/config.msft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ defaults:
istioctlVersion: "1.24.1"
tag: "prod-stable"
targetVersion: "asm-1-23"
versions: "\"asm-1-22\", \"asm-1-23\""
versions: "asm-1-22,asm-1-23"

# MGMT cluster specifics
mgmt:
Expand Down
8 changes: 5 additions & 3 deletions config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,14 @@
"type": "string"
},
"versions": {
"description": "The current istio version in the AKS cluster, will need to change to array once tooling is ready",
"type": "array"
"description": "The current istio version in the AKS cluster as CSV, will need to change to array once tooling is ready",
"type": "string",
"pattern": "^[a-zA-Z0-9-]+(,[a-zA-Z0-9-]+)*$"
},
"targetVersion": {
"description": "The target istio version that will be updated to",
"type": "string"
"type": "string",
"pattern": "^[a-zA-Z0-9-]+$"
}
}
}
Expand Down
10 changes: 2 additions & 8 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ defaults:
istio:
istioctlVersion: "1.23.1"
tag: "prod-stable"
targetVersion: ""
versions: ["asm-1-22"]
targetVersion: "asm-1-22"
versions: "asm-1-22"

# MGMT cluster specifics
mgmt:
Expand Down Expand Up @@ -264,12 +264,6 @@ clouds:
vmSize: 'Standard_D2s_v3'
osDiskSizeGB: 32
azCount: 3
istio:
url: "https://github.com/istio/istio/releases/download"
istioctlVersion: "1.23.1"
tag: "prod-stable"
version: "asm-1-22"
targetVersion: ""
mgmt:
# MGMTM AKS nodepools - big enough for 2 HCPs
systemAgentPool:
Expand Down
8 changes: 2 additions & 6 deletions config/public-cloud-cs-pr.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@
"istio": {
"istioctlVersion": "1.23.1",
"tag": "prod-stable",
"targetVersion": "",
"url": "https://github.com/istio/istio/releases/download",
"version": "asm-1-22",
"versions": [
"asm-1-22"
]
"targetVersion": "asm-1-22",
"versions": "asm-1-22"
},
"rg": "hcp-underlay-cspr-svc",
"subscription": "ARO Hosted Control Planes (EA Subscription 1)",
Expand Down
8 changes: 2 additions & 6 deletions config/public-cloud-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@
"istio": {
"istioctlVersion": "1.23.1",
"tag": "prod-stable",
"targetVersion": "",
"url": "https://github.com/istio/istio/releases/download",
"version": "asm-1-22",
"versions": [
"asm-1-22"
]
"targetVersion": "asm-1-22",
"versions": "asm-1-22"
},
"rg": "hcp-underlay-dev-svc",
"subscription": "ARO Hosted Control Planes (EA Subscription 1)",
Expand Down
5 changes: 1 addition & 4 deletions config/public-cloud-msft-int.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@
"istioctlVersion": "1.24.1",
"tag": "prod-stable",
"targetVersion": "asm-1-23",
"versions": [
"asm-1-22",
"asm-1-23"
]
"versions": "asm-1-22,asm-1-23"
},
"rg": "hcp-underlay-westus3-svc",
"subscription": "hcp-westus3",
Expand Down
8 changes: 2 additions & 6 deletions config/public-cloud-personal-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,8 @@
"istio": {
"istioctlVersion": "1.23.1",
"tag": "prod-stable",
"targetVersion": "",
"url": "https://github.com/istio/istio/releases/download",
"version": "asm-1-22",
"versions": [
"asm-1-22"
]
"targetVersion": "asm-1-22",
"versions": "asm-1-22"
},
"rg": "hcp-underlay-usw3tst-svc",
"subscription": "ARO Hosted Control Planes (EA Subscription 1)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using '../templates/svc-cluster.bicep'

param kubernetesVersion = '{{ .kubernetesVersion }}'
param istioVersion = {{ .svc.istio.versions }}
param istioVersions = '{{ .svc.istio.versions }}'
param vnetAddressPrefix = '{{ .vnetAddressPrefix }}'
param subnetPrefix = '{{ .subnetPrefix }}'
param podSubnetPrefix = '{{ .podSubnetPrefix }}'
Expand Down
4 changes: 2 additions & 2 deletions dev-infrastructure/modules/aks-cluster-base.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ param persist bool = false

param kubernetesVersion string
param deployIstio bool
param istioVersion array = ['asm-1-22']
param istioVersions array = []
param vnetAddressPrefix string
param subnetPrefix string
param podSubnetPrefix string
Expand Down Expand Up @@ -358,7 +358,7 @@ resource aksCluster 'Microsoft.ContainerService/managedClusters@2024-04-02-previ
}
]
}
revisions: istioVersion
revisions: istioVersions
}
}
: null
Expand Down
6 changes: 3 additions & 3 deletions dev-infrastructure/templates/svc-cluster.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ param podSubnetPrefix string
@description('Kuberentes version to use with AKS')
param kubernetesVersion string

@description('Istio control plane version to use with AKS')
param istioVersion array
@description('Istio control plane versions to use with AKS. CSV format')
param istioVersions string

@description('The name of the keyvault for AKS.')
@maxLength(24)
Expand Down Expand Up @@ -166,7 +166,7 @@ module svcCluster '../modules/aks-cluster-base.bicep' = {
aksEtcdKVEnableSoftDelete: aksEtcdKVEnableSoftDelete
kubernetesVersion: kubernetesVersion
deployIstio: true
istioVersion: istioVersion
istioVersions: split(istioVersions, ',')
vnetAddressPrefix: vnetAddressPrefix
subnetPrefix: subnetPrefix
podSubnetPrefix: podSubnetPrefix
Expand Down

0 comments on commit b0e3cce

Please sign in to comment.