Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getModeLabel (0.07 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[label.IoIstioDataplaneMode.Name]
    }
    
    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