check nil before set InstallStatusKeySendToKalmCloud
@@ -337,6 +337,9 @@ func (r *KalmOperatorConfigReconciler) updateInstallProcess() (updated bool, err
}
}
+ if config.Status.BYOCModeStatus == nil {
+ config.Status.BYOCModeStatus = &installv1alpha1.BYOCModeStatus{}
+ }
config.Status.BYOCModeStatus.InstallStatusKeySendToKalmCloud = newStatusKey
}
