Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasPrefix (0.14 sec)

  1. istioctl/pkg/writer/envoy/configdump/route.go

    		return ""
    	}
    	config, ok := istioMetadata.Fields["config"]
    	if !ok {
    		return ""
    	}
    	return renderConfig(config.GetStringValue())
    }
    
    func renderConfig(configPath string) string {
    	if strings.HasPrefix(configPath, "/apis/networking.istio.io/v1alpha3/namespaces/") {
    		pieces := strings.Split(configPath, "/")
    		if len(pieces) != 8 {
    			return ""
    		}
    		return fmt.Sprintf("%s.%s", pieces[7], pieces[5])
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
Back to top