Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 178 for serviceAccount (0.24 sec)

  1. istioctl/pkg/workload/workload.go

    	createCmd.PersistentFlags().StringVarP(&serviceAccount, "serviceAccount", "s", "default", "The service identity to associate with the workload instances")
    	_ = createCmd.RegisterFlagCompletionFunc("serviceAccount", func(
    		cmd *cobra.Command, args []string, toComplete string,
    	) ([]string, cobra.ShellCompDirective) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. pkg/spiffe/spiffe_test.go

    			namespace:      "foo",
    			serviceAccount: "bar",
    			trustDomain:    "******@****.***.gserviceaccount.com",
    			expectedURI:    "spiffe://kube-federating-id.testproj.iam.gserviceaccount.com/ns/foo/sa/bar",
    		},
    	}
    	for id, tc := range testCases {
    		got, err := genSpiffeURI(tc.trustDomain, tc.namespace, tc.serviceAccount)
    		if tc.expectedError == "" && err != nil {
    			t.Errorf("teste case [%v] failed, error %v", id, tc)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  3. pkg/controlplane/apiserver/options/options.go

    			if completed.Authentication.ServiceAccounts.MaxExpiration < lowBound ||
    				completed.Authentication.ServiceAccounts.MaxExpiration > upBound {
    				return CompletedOptions{}, fmt.Errorf("the service-account-max-token-expiration must be between 1 hour and 2^32 seconds")
    			}
    			if completed.Authentication.ServiceAccounts.ExtendExpiration {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 12:19:56 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_serviceentry_test.go

    					Namespace:         testNS,
    					Addresses:         [][]byte{parseIP("140.140.0.10")},
    					Network:           testNW,
    					CanonicalName:     "a",
    					CanonicalRevision: "latest",
    					ServiceAccount:    "sa1",
    					WorkloadType:      workloadapi.WorkloadType_POD,
    					WorkloadName:      "name0",
    					ClusterId:         testC,
    				},
    			},
    		},
    	}})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:01:04 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/common/deployment/echos.go

    		Service:                 ASvc,
    		ServiceAccount:          true,
    		Ports:                   ports.All(),
    		Subsets:                 []echo.SubsetConfig{{}},
    		Locality:                "region.zone.subzone",
    		IncludeExtAuthz:         c.IncludeExtAuthz,
    		DisableAutomountSAToken: disableAutomountSAToken,
    	}
    
    	b := echo.Config{
    		Service:         BSvc,
    		ServiceAccount:  true,
    		Ports:           ports.All(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 20 16:01:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. pkg/kubeapiserver/authenticator/config.go

    		}
    		allPublicKeys = append(allPublicKeys, publicKeys...)
    	}
    	validator, err := serviceaccount.NewLegacyValidator(lookup, serviceAccountGetter, secretsWriter)
    	if err != nil {
    		return nil, fmt.Errorf("while creating legacy validator, err: %w", err)
    	}
    
    	tokenAuthenticator := serviceaccount.JWTTokenAuthenticator([]string{serviceaccount.LegacyIssuer}, allPublicKeys, apiAudiences, validator)
    	return tokenAuthenticator, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceentry/conversion.go

    		Addresses: svc.GetAddresses(proxy),
    
    		// This is based on alpha.istio.io/canonical-serviceaccounts and
    		//  alpha.istio.io/kubernetes-serviceaccounts.
    		SubjectAltNames: svc.ServiceAccounts,
    	}
    
    	if len(svc.Attributes.LabelSelectors) > 0 {
    		se.WorkloadSelector = &networking.WorkloadSelector{Labels: svc.Attributes.LabelSelectors}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. tests/integration/security/egress_sidecar_tls_origination_test.go

    					},
    				},
    			}
    			for _, tc := range testCases {
    				t.NewSubTest(tc.name).Run(func(t framework.TestContext) {
    					if tc.authorizeSidecar {
    						serviceAccount := tc.from.Config().ServiceAccountName()
    						serviceAccountName := serviceAccount[strings.LastIndex(serviceAccount, "/")+1:]
    						authorizeSidecar(t, tc.from.Config().Namespace, serviceAccountName)
    					}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. pkg/test/framework/components/echo/kube/deployment.go

    	}
    	return config, nil
    }
    
    func createServiceAccount(client kubernetes.Interface, ns string, serviceAccount string) error {
    	scopes.Framework.Debugf("Creating service account for: %s/%s", ns, serviceAccount)
    	_, err := client.CoreV1().ServiceAccounts(ns).Create(context.TODO(), &corev1.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{Name: serviceAccount},
    	}, metav1.CreateOptions{})
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. istioctl/pkg/workload/workload_test.go

    			}
    		})
    		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{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top