File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
envsubst_cmd = "./hack/tools/bin/envsubst"
4
4
clusterctl_cmd = "./bin/clusterctl"
5
5
kubectl_cmd = "kubectl"
6
+ kubernetes_version = "v1.25.0"
6
7
7
8
if str (local ("command -v " + kubectl_cmd + " || true" , quiet = True )) == "" :
8
9
fail ("Required command '" + kubectl_cmd + "' not found in PATH" )
@@ -103,8 +104,9 @@ providers = {
103
104
"internal" ,
104
105
"third_party" ,
105
106
],
106
- "additional_docker_helper_commands" : "RUN curl -LO https://dl.k8s.io/release/v1.23.3 /bin/linux/{ARCH}/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl" .format (
107
+ "additional_docker_helper_commands" : "RUN curl -LO https://dl.k8s.io/release/{KUBE} /bin/linux/{ARCH}/kubectl && chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl" .format (
107
108
ARCH = os_arch ,
109
+ KUBE = kubernetes_version ,
108
110
),
109
111
"additional_docker_build_commands" : """
110
112
COPY --from=tilt-helper /usr/bin/kubectl /usr/bin/kubectl
@@ -506,7 +508,7 @@ def cluster_templates():
506
508
507
509
# Ensure we have default values for a small set of well-known variables
508
510
substitutions ["NAMESPACE" ] = substitutions .get ("NAMESPACE" , "default" )
509
- substitutions ["KUBERNETES_VERSION" ] = substitutions .get ("KUBERNETES_VERSION" , "v1.25.0" )
511
+ substitutions ["KUBERNETES_VERSION" ] = substitutions .get ("KUBERNETES_VERSION" , kubernetes_version )
510
512
substitutions ["CONTROL_PLANE_MACHINE_COUNT" ] = substitutions .get ("CONTROL_PLANE_MACHINE_COUNT" , "1" )
511
513
substitutions ["WORKER_MACHINE_COUNT" ] = substitutions .get ("WORKER_MACHINE_COUNT" , "3" )
512
514
You can’t perform that action at this time.
0 commit comments