Skip to content

Commit a0b1202

Browse files
committed
fix: pass KOPS_BASE_URL to kops-controller
1 parent 5d77aa5 commit a0b1202

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

upup/pkg/fi/cloudup/template_functions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,11 @@ func (tf *TemplateFunctions) KopsControllerEnv() []corev1.EnvVar {
905905
envMap["KOPS_RUN_TOO_NEW_VERSION"] = v
906906
}
907907

908+
// If our assets are served from a custom base URL, we need to pass that to kops-controller for cluster-api etc.
909+
if v := os.Getenv("KOPS_BASE_URL"); v != "" {
910+
envMap["KOPS_BASE_URL"] = v
911+
}
912+
908913
return envMap.ToEnvVars()
909914
}
910915

0 commit comments

Comments
 (0)