- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ExtractObject (0.81 sec)
-
pkg/kube/controllers/common.go
AddFunc: func(obj any) { o := ExtractObject(obj) if o == nil { return } handler(Event{ New: o, Event: EventAdd, }) }, UpdateFunc: func(oldInterface, newInterface any) { oldObj := ExtractObject(oldInterface) if oldObj == nil { return } newObj := ExtractObject(newInterface) if newObj == nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 11 08:27:29 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/kube/kclient/index.go
client: client, mu: sync.RWMutex{}, } addObj := func(obj any) { ro := controllers.ExtractObject(obj) o := ro.(O) objectKey := config.NamespacedName(o) for _, indexKey := range extract(o) { sets.InsertOrNew(idx.objects, indexKey, objectKey) } } deleteObj := func(obj any) { ro := controllers.ExtractObject(obj) o := ro.(O) objectKey := config.NamespacedName(o) for _, indexKey := range extract(o) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 03:49:30 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/revisions/tag_watcher.go
func (p *tagWatcher) notifyHandlers() { myTags := p.GetMyTags() for _, handler := range p.handlers { handler(myTags) } } func isTagWebhook(uobj any) bool { obj := controllers.ExtractObject(uobj) if obj == nil { return false } _, ok := obj.GetLabels()[IstioTagLabel] return ok }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 00:12:28 UTC 2024 - 3.3K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter.go
cnilabels labels.Instance ourNs string queue controllers.Queue } func filterNamespace(ns string) func(any) bool { return func(obj any) bool { object := controllers.ExtractObject(obj) if object == nil { return false } return ns == object.GetNamespace() } } func NewNodeUntainter(stop <-chan struct{}, kubeClient kubelib.Client, cniNs, sysNs string) *NodeUntainter {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.9K bytes - Viewed (0) -
pkg/kube/namespace/filter.go
return d.discoveryNamespaces.Contains(ns) } func extractObjectNamespace(obj any) (string, bool) { if ns, ok := obj.(string); ok { return ns, true } object := controllers.ExtractObject(obj) if object == nil { // When an object is deleted, obj could be a DeletionFinalStateUnknown marker item. return "", false } if _, ok := object.(*corev1.Namespace); ok { return object.GetName(), true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 10 17:12:52 UTC 2024 - 9.3K bytes - Viewed (0)