@@ -106,8 +106,8 @@ data "cloudinit_config" "workers" {
106
106
apt = {
107
107
sources = {
108
108
oke-node = {
109
- source = format (" deb [trusted=yes] https://objectstorage.us-sanjose-1.oraclecloud. com/p/45eOeErEDZqPGiymXZwpeebCNb5lnwzkcQIhtVf6iOF44eet_efdePaF7T8agNYq/ n/odx-oke/b/okn-repositories-private /o/prod/ubuntu-%s/kubernetes-%s stable main" ,
110
- lookup (lookup (local. ubuntu_worker_pools , each. key , {}), " ubuntu_release" , " 22.04" ) == " 22.04 " ? " jammy" : " noble" ,
109
+ source = format (" deb [trusted=yes] https://odx-oke. objectstorage.us-sanjose-1.oci.customer-oci. com/n/odx-oke/b/okn-repositories/o/prod/ubuntu-%s/kubernetes-%s stable main" ,
110
+ length ( regexall ( " 22 \\ .04 " , lookup (lookup (local. ubuntu_worker_pools , each. key , {}), " ubuntu_release" , " 22.04" ))) > 0 ? " jammy" : " noble" ,
111
111
lookup (lookup (local. ubuntu_worker_pools , each. key , {}), " kubernetes_major_version" , " " ))
112
112
}
113
113
}
@@ -184,7 +184,7 @@ data "cloudinit_config" "workers" {
184
184
precondition {
185
185
condition = lookup (local. ubuntu_worker_pools , each. key , null ) == null || (
186
186
lookup (local. ubuntu_worker_pools , each. key , null ) != null &&
187
- contains ([ " 22.04 " , " 24.04 " ] , lookup (lookup (local. ubuntu_worker_pools , each. key , {}), " ubuntu_release" , " " ))
187
+ contains (local . ubuntu_supported_versions , lookup (lookup (local. ubuntu_worker_pools , each. key , {}), " ubuntu_release" , " " ))
188
188
)
189
189
error_message = <<- EOT
190
190
Supported Ubuntu versions are "22.04" and "24.04".
0 commit comments