Documentation ¶
Index ¶
- Constants
- func GetDeploymentNamespace() (string, error)
- func GetLogWithNHC(log logr.Logger, nhc *v1alpha1.NodeHealthCheck) logr.Logger
- func IsConditionTrue(conditions []v1.Condition, conditionType string, reason string) bool
- func IsControlPlane(node *v1.Node) bool
- func IsOnOpenshift(config *rest.Config) (bool, error)
- func NHCByNodeMapperFunc(c client.Client, logger logr.Logger) handler.MapFunc
- func NHCByRemediationCRMapperFunc(logger logr.Logger) handler.MapFunc
Constants ¶
View Source
const ( // WorkerRoleLabel is the role label of worker nodes WorkerRoleLabel = "node-role.kubernetes.io/worker" // MasterRoleLabel is the old role label of control plane nodes MasterRoleLabel = "node-role.kubernetes.io/master" // ControlPlaneRoleLabel is the new role label of control plane nodes ControlPlaneRoleLabel = "node-role.kubernetes.io/control-plane" )
Variables ¶
This section is empty.
Functions ¶
func GetDeploymentNamespace ¶
GetDeploymentNamespace returns the Namespace this operator is deployed on.
func GetLogWithNHC ¶ added in v0.3.0
GetLogWithNHC return a logger with NHC namespace and name
func IsConditionTrue ¶ added in v0.3.0
IsConditionTrue return true when the conditions contain a condition of given type and reason with status true
func IsControlPlane ¶ added in v0.4.0
func IsOnOpenshift ¶
IsOnOpenshift returns true if the cluster has the openshift config group
func NHCByNodeMapperFunc ¶ added in v0.3.0
NHCByNodeMapperFunc return the Node-to-NHC mapper function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.