Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetStartingConfig (0.09 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: Wed Nov 06 22:53:10 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: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 30 01:19:20 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top