Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsIstioControlPlane (0.22 sec)

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

    // limitations under the License.
    
    package util
    
    import (
    	"istio.io/istio/pkg/config/resource"
    )
    
    // IsIstioControlPlane returns true for resources that are part of the Istio control plane
    func IsIstioControlPlane(r *resource.Instance) bool {
    	if _, ok := r.Metadata.Labels["istio"]; ok {
    		return true
    	}
    	if r.Metadata.Labels["release"] == "istio" {
    		return true
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 15 14:45:58 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/deployment/pod.go

    	})
    }
    
    func (appUID *ApplicationUIDAnalyzer) analyzeAppUIDForPod(resource *resource.Instance, context analysis.Context) {
    	p := resource.Message.(*v1.PodSpec)
    	// Skip analyzing control plane for IST0144
    	if util.IsIstioControlPlane(resource) {
    		return
    	}
    	message := msg.NewInvalidApplicationUID(resource)
    
    	if p.SecurityContext != nil && p.SecurityContext.RunAsUser != nil {
    		if *p.SecurityContext.RunAsUser == UserID {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/service/portname.go

    	}
    }
    
    // Analyze implements Analyzer
    func (s *PortNameAnalyzer) Analyze(c analysis.Context) {
    	c.ForEach(gvk.Service, func(r *resource.Instance) bool {
    		// Skip port name check for istio control plane
    		if util.IsIstioControlPlane(r) {
    			return true
    		}
    
    		s.analyzeService(r, c)
    		return true
    	})
    }
    
    func (s *PortNameAnalyzer) analyzeService(r *resource.Instance, c analysis.Context) {
    	svc := r.Message.(*v1.ServiceSpec)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Sep 15 14:45:58 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top