Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsIstioControlPlane (0.13 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/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