Documentation ¶
Index ¶
- 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 IsOnOpenshift(config *rest.Config) (bool, error)
- func MinRequeueDuration(old, new *time.Duration) *time.Duration
- func NHCByMHCEventMapperFunc(c client.Client, logger logr.Logger) handler.MapFunc
- func NHCByNodeMapperFunc(c client.Client, logger logr.Logger) handler.MapFunc
- func NHCByRemediationCRMapperFunc(logger logr.Logger) handler.MapFunc
Constants ¶
This section is empty.
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 IsOnOpenshift ¶
IsOnOpenshift returns true if the cluster has the openshift config group
func MinRequeueDuration ¶ added in v0.6.0
MinRequeueDuration returns the minimal valid requeue duration
func NHCByMHCEventMapperFunc ¶ added in v0.6.0
NHCByMHCEventMapperFunc return the MHC-event-to-NHC mapper function
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.