Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIsSingleNodePlatformFn ¶
func NewIsSingleNodePlatformFn(infraInformer configv1informers.InfrastructureInformer) func() (isSNO, preconditionFulfilled bool, err error)
NewIsSingleNodePlatformFn returns a function that checks if the cluster topology is single node (aka. SNO) In case the err is nil, preconditionFulfilled indicates whether the isSNO is valid. If preconditionFulfilled is false, the isSNO return value does not reflect the cluster topology and defaults to the bool default value.
Note: usually when preconditionFulfilled is false you should gate your controller as this means we were not able to check the current topology
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.