Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PodInMesh (0.32 sec)

  1. pkg/config/analysis/analyzers/util/in_mesh.go

    	return inMesh(d.Template.Annotations, d.Template.Labels,
    		resource.Namespace(r.Metadata.FullName.Namespace.String()), d.Template.Spec.Containers, c)
    }
    
    // PodInMesh returns true if a Pod is in the service mesh (has sidecar)
    func PodInMesh(r *resource.Instance, c analysis.Context) bool {
    	p := r.Message.(*v1.PodSpec)
    	return inMesh(r.Metadata.Annotations, r.Metadata.Labels,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/authz/authorizationpolicies.go

    		pLabels := klabels.Set(r.Metadata.Labels)
    
    		ns := r.Metadata.FullName.Namespace.String()
    		if podLabelsMap[ns] == nil {
    			podLabelsMap[ns] = make([]klabels.Set, 0)
    		}
    
    		if util.PodInMesh(r, c) {
    			podLabelsMap[ns] = append(podLabelsMap[ns], pLabels)
    		}
    
    		if util.PodInAmbientMode(r) {
    			podLabelsMap[ns] = append(podLabelsMap[ns], pLabels)
    		}
    
    		return true
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 20:57:29 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top