predicates

package
v0.0.0-...-4d78981 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackupPullSecret predicate.Predicate = predicate.NewPredicateFuncs(func(o client.Object) bool {
	return (o.GetName() == backupPullSecretName.Name && o.GetNamespace() == backupPullSecretName.Namespace)
})
View Source
var ClusterVersion predicate.Predicate = predicate.NewPredicateFuncs(func(o client.Object) bool {
	return o.GetName() == "version"
})
View Source
var MachineRoleMaster predicate.Predicate = predicate.NewPredicateFuncs(func(o client.Object) bool {
	role, ok := o.GetLabels()["machine.openshift.io/cluster-api-machine-role"]
	return ok && strings.EqualFold("master", role)
})
View Source
var MachineRoleWorker predicate.Predicate = predicate.NewPredicateFuncs(func(o client.Object) bool {
	role, ok := o.GetLabels()["machine.openshift.io/cluster-api-machine-role"]
	return ok && strings.EqualFold("worker", role)
})
View Source
var PullSecret predicate.Predicate = predicate.NewPredicateFuncs(func(o client.Object) bool {
	return (o.GetName() == pullSecretName.Name && o.GetNamespace() == pullSecretName.Namespace)
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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