- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewDefaultPathOptions (0.08 sec)
-
istioctl/pkg/multicluster/options.go
func (o *KubeOptions) prepare(ctx cli.Context) { o.Namespace = ctx.Namespace() 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 != "" {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Aug 01 23:59:49 UTC 2023 - 1.6K bytes - Viewed (0) -
istioctl/pkg/cli/option.go
if r.defaultNamespace == "" { r.configureDefaultNamespace() } return r.defaultNamespace } func (r *RootFlags) configureDefaultNamespace() { configAccess := clientcmd.NewDefaultPathOptions() kubeconfig := *r.kubeconfig if kubeconfig != "" { // use specified kubeconfig file for the location of the // config to read configAccess.GlobalFile = kubeconfig }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Aug 30 01:19:20 UTC 2024 - 3.9K bytes - Viewed (0)