Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for handleNamespace (0.15 sec)

  1. istioctl/pkg/cli/context.go

    }
    
    func (i *instance) NamespaceOrDefault(namespace string) string {
    	return handleNamespace(namespace, i.DefaultNamespace())
    }
    
    // handleNamespace returns the defaultNamespace if the namespace is empty
    func handleNamespace(ns, defaultNamespace string) string {
    	if ns == corev1.NamespaceAll {
    		ns = defaultNamespace
    	}
    	return ns
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    	// we can't complain about.
    
    	return nil, nil
    }
    
    func (v *validator) validateServicePortPrefix(istioNamespace string, un *unstructured.Unstructured) error {
    	var errs error
    	if un.GetNamespace() == handleNamespace(istioNamespace) {
    		return nil
    	}
    	spec := un.Object["spec"].(map[string]any)
    	if _, ok := spec["ports"]; ok {
    		ports := spec["ports"].([]any)
    		for _, port := range ports {
    			p := port.(map[string]any)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top