Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetStartingConfig (0.28 sec)

  1. istioctl/pkg/multicluster/options.go

    	if o.Namespace == "" {
    		o.Namespace = ctx.IstioNamespace()
    
    		configAccess := clientcmd.NewDefaultPathOptions()
    		configAccess.GlobalFile = o.Kubeconfig
    		if config, err := configAccess.GetStartingConfig(); err == nil {
    			if context, ok := config.Contexts[config.CurrentContext]; ok && context.Namespace != "" {
    				o.Namespace = context.Namespace
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 01 23:59:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. istioctl/pkg/cli/option.go

    		// use specified kubeconfig file for the location of the
    		// config to read
    		configAccess.GlobalFile = kubeconfig
    	}
    
    	// gets existing kubeconfig or returns new empty config
    	config, err := configAccess.GetStartingConfig()
    	if err != nil {
    		r.defaultNamespace = v1.NamespaceDefault
    		return
    	}
    
    	// If a specific context was specified, use that. Otherwise, just use the current context from the kube config.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 18:01:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top