cli/cmd: run platform.PostApplyHook after cluster is created
To address issue with AKS having delayed creation of default
StorageClass, which affects installing components which depend on the
storage, this commit adds support for running optional platform.PostApplyHook
after cluster has been installed.
Refs
@@ -121,6 +121,12 @@ func runClusterApply(cmd *cobra.Command, args []string) {
}
}
+ if ph, ok := p.(platform.PlatformWithPostApplyHook); ok {
+ if err := ph.PostApplyHook(kubeconfig); err != nil {
+ ctxLogger.Fatalf("Running platform post install hook failed: %v", err)
+ }
+ }
+
if skipComponents {
return
}
