Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanUpgrade ¶
func CanUpgrade(config *restclient.Config, namespace string) (bool, error)
func FixupCRs ¶
func FixupCRs(config *restclient.Config, namespace string, lhClient *lhclientset.Clientset) (err error)
FixupCRs initialize the old CR spec which is with the `null` field. Since start from longhorn.io/v1beta2, we introduce the CRD structural schema. However, for the Kubernetes < 1.20, there is an issue that it does not allow the `null` field because of the CRD validation failure. Reference issue: https://github.com/kubernetes/kubernetes/issues/86811`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.