in solutions_builder/copier_extensions/sb_helpers.py [0:0]
def get_default_gke_version(arguments):
"""
Get the default GKE verions in a specific channel.
"""
region, channel = arguments
print(f"(Retrieving the default GKE version in channel {channel}...)")
command = f"gcloud container get-server-config --region={region} --format='value(channels.defaultVersion)'"
default_versions = exec_gcloud_output(command).split(";")
channel_index = {
"RAPID": 0,
"REGULAR": 1,
"STABLE": 2,
}
return default_versions[channel_index[channel]]