Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getModeLabel (0.18 sec)

  1. cni/pkg/nodeagent/informers.go

    	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 {
    		return ""
    	}
    	return m[constants.DataplaneMode]
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 01:03:24 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top