Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ServiceAccounts (0.24 sec)

  1. istioctl/pkg/workload/workload_test.go

    			for k := range generated {
    				os.Remove(path.Join(testdir, k))
    			}
    		})
    		t.Run(dir.Name(), func(t *testing.T) {
    			createClientFunc := func(client kube.CLIClient) {
    				client.Kube().CoreV1().ServiceAccounts("bar").Create(context.Background(), &v1.ServiceAccount{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "bar", Name: "vm-serviceaccount"},
    					Secrets:    []v1.ObjectReference{{Name: "test"}},
    				}, metav1.CreateOptions{})
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. istioctl/pkg/completion/completion.go

    }
    
    func getServiceAccountsName(kubeClient kube.CLIClient, toComplete, ns string) ([]string, error) {
    	ctx := context.Background()
    	saList, err := kubeClient.Kube().CoreV1().ServiceAccounts(ns).List(ctx, metav1.ListOptions{})
    	if err != nil {
    		return nil, err
    	}
    
    	var saNameList []string
    	for _, sa := range saList.Items {
    		if toComplete == "" || strings.HasPrefix(sa.Name, toComplete) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. istioctl/pkg/multicluster/remote_secret.go

    }
    
    func getOrCreateServiceAccount(client kube.CLIClient, opt RemoteSecretOptions) (*v1.ServiceAccount, error) {
    	if sa, err := client.Kube().CoreV1().ServiceAccounts(opt.Namespace).Get(
    		context.TODO(), opt.ServiceAccountName, metav1.GetOptions{}); err == nil {
    		return sa, nil
    	} else if !opt.CreateServiceAccount {
    		// User chose not to automatically create the service account.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 11 01:43:17 GMT 2023
    - 24K bytes
    - Viewed (0)
  4. istioctl/pkg/multicluster/remote_secret_test.go

    				ServiceAccountName: testServiceAccountName,
    				KubeOptions: KubeOptions{
    					Namespace: testNamespace,
    				},
    				ManifestsPath: filepath.Join(env.IstioSrc, "manifests"),
    			},
    			wantErrStr: fmt.Sprintf("serviceaccounts %q not found", testServiceAccountName),
    		},
    	}
    
    	legacyCases := append([]tc{
    		{
    			name: "wrong number of secrets",
    			opts: RemoteSecretOptions{
    				ServiceAccountName:   testServiceAccountName,
    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)
  5. istioctl/pkg/precheck/precheck.go

    		{
    			namespace: istioNamespace,
    			group:     "rbac.authorization.k8s.io",
    			version:   "v1",
    			resource:  "roles",
    		},
    		{
    			namespace: istioNamespace,
    			version:   "v1",
    			resource:  "serviceaccounts",
    		},
    		{
    			namespace: istioNamespace,
    			version:   "v1",
    			resource:  "services",
    		},
    		{
    			namespace: istioNamespace,
    			group:     "apps",
    			version:   "v1",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload.go

    		},
    		Spec: authenticationv1.TokenRequestSpec{
    			Audiences:         []string{"istio-ca"},
    			ExpirationSeconds: &tokenDuration,
    		},
    	}
    	tokenReq, err := kubeClient.Kube().CoreV1().ServiceAccounts(wg.Namespace).CreateToken(context.Background(), serviceAccount, token, metav1.CreateOptions{})
    	// errors if the token could not be created with the given service account in the given namespace
    	if err != nil {
    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