common

package
v0.0.0-...-6018a90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL