Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CMContentChangedPredicate = predicate.Funcs{ UpdateFunc: func(e event.UpdateEvent) bool { oldCM, _ := e.ObjectOld.(*corev1.ConfigMap) newCM, _ := e.ObjectNew.(*corev1.ConfigMap) return !reflect.DeepEqual(oldCM.Data, newCM.Data) }, }
Content predicates moved from original controller.
View Source
var DSCComponentUpdatePredicate = predicate.Funcs{ UpdateFunc: func(e event.UpdateEvent) bool { oldDSC, ok := e.ObjectOld.(*dscv1.DataScienceCluster) if !ok { return false } newDSC, ok := e.ObjectNew.(*dscv1.DataScienceCluster) if !ok { return false } if !reflect.DeepEqual(oldDSC.Spec.Components, newDSC.Spec.Components) { return true } oldConditions := oldDSC.Status.Conditions newConditions := newDSC.Status.Conditions if len(oldConditions) != len(newConditions) { return true } for _, nc := range newConditions { for _, oc := range oldConditions { if nc.Type == oc.Type { if !reflect.DeepEqual(nc.Status, oc.Status) { return true } } } } return false }, }
View Source
var DSCDeletionPredicate = predicate.Funcs{ DeleteFunc: func(e event.DeleteEvent) bool { return true }, }
Functions ¶
Types ¶
type DeploymentPredicate ¶
func NewDeploymentPredicate ¶
func NewDeploymentPredicate() *DeploymentPredicate
func (DeploymentPredicate) Update ¶
func (DeploymentPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating generation change.
Click to show internal directories.
Click to hide internal directories.