Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for existent (4.01 sec)

  1. istioctl/pkg/cli/option.go

    	kubeconfig := *r.kubeconfig
    	if kubeconfig != "" {
    		// 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
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 18:01:27 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  2. cni/pkg/install/kubeconfig.go

    	if err != nil {
    		return kubeconfig{}, err
    	}
    
    	return kubeconfig{
    		Full:     string(fullYaml),
    		Redacted: string(redacted),
    	}, nil
    }
    
    // maybeWriteKubeConfigFile will validate the existing kubeConfig file, and rewrite/replace it if required.
    func maybeWriteKubeConfigFile(cfg *config.InstallConfig) error {
    	kc, err := createKubeConfig(cfg)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret_test.go

    			objs:       []runtime.Object{kubeSystemNamespace, sa2, saSecret, saSecret2},
    			secretName: saSecret.Name,
    			name:       "cluster-foo",
    			want:       "cal-want",
    		},
    		{
    			testName:        "fail when non-existing secret name provided",
    			objs:            []runtime.Object{kubeSystemNamespace, sa2, saSecret, saSecret2},
    			secretName:      "nonexistingSecret",
    			name:            "cluster-foo",
    			want:            "cal-want",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  4. istioctl/pkg/multicluster/remote_secret.go

    				opt.Namespace, opt.SecretName, err)
    		}
    		if err := secretReferencesServiceAccount(serviceAccount, secret); err != nil {
    			return nil, err
    		}
    		return secret, nil
    	}
    
    	// first try to find an existing secret that references the SA
    	// TODO will the SA have any reference to secrets anymore, can we avoid this list?
    	allSecrets, err := client.Kube().CoreV1().Secrets(opt.Namespace).List(ctx, metav1.ListOptions{})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  5. istioctl/pkg/workload/workload.go

    		Args: func(cmd *cobra.Command, args []string) error {
    			if filename == "" && (name == "" || namespace == "") {
    				return fmt.Errorf("expecting a WorkloadGroup artifact file or the name and namespace of an existing WorkloadGroup")
    			}
    			if outputDir == "" {
    				return fmt.Errorf("expecting an output directory")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top