Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetAnnotations (0.19 sec)

  1. istioctl/pkg/util/ambient/util.go

    }
    
    // InAmbient returns true if a resource is in ambient data plane mode.
    func InAmbient(obj metav1.Object) bool {
    	if obj == nil {
    		return false
    	}
    	switch t := obj.(type) {
    	case *corev1.Pod:
    		return t.GetAnnotations()[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    	case *corev1.Namespace:
    		if t.GetLabels()["istio-injection"] == "enabled" {
    			return false
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. cni/pkg/util/podutil.go

    		// Pod explicitly asked to not have ambient redirection enabled
    		return false
    	}
    	return true
    }
    
    func podHasSidecar(pod *corev1.Pod) bool {
    	if _, f := pod.GetAnnotations()[annotation.SidecarStatus.Name]; f {
    		return true
    	}
    	return false
    }
    
    func IsZtunnelPod(systemNs string, pod *corev1.Pod) bool {
    	return pod.Namespace == systemNs && pod.GetLabels()["app"] == "ztunnel"
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top