Skip to content

Commit d9d4330

Browse files
committed
fix: pass KOPS_BASE_URL to kops-controller
1 parent e059916 commit d9d4330

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
@@ -908,6 +908,11 @@ func (tf *TemplateFunctions) KopsControllerEnv() []corev1.EnvVar {
908908
envMap["KOPS_RUN_TOO_NEW_VERSION"] = v
909909
}
910910

911+
// If our assets are served from a custom base URL, we need to pass that to kops-controller for cluster-api etc.
912+
if v := os.Getenv("KOPS_BASE_URL"); v != "" {
913+
envMap["KOPS_BASE_URL"] = v
914+
}
915+
911916
return envMap.ToEnvVars()
912917
}
913918

0 commit comments

Comments
 (0)