Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newEncs (0.04 sec)

  1. cni/pkg/nodeagent/informers.go

    		log.Debugf("Namespace %s added", ns.Name)
    		s.enqueueNamespace(ns)
    
    	case controllers.EventUpdate:
    		newNs := event.New.(*corev1.Namespace)
    		oldNs := event.Old.(*corev1.Namespace)
    
    		if getModeLabel(oldNs.Labels) != getModeLabel(newNs.Labels) {
    			log.Debugf("Namespace %s updated", newNs.Name)
    			s.enqueueNamespace(newNs)
    		}
    	}
    	return nil
    }
    
    func getModeLabel(m map[string]string) string {
    	if m == nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top