- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for GetServiceAccountToken (0.26 sec)
-
pkg/kubelet/token/token_manager_test.go
} s.mgr.getToken = s.tg.getToken s.mgr.clock = s.clock if _, err := s.mgr.GetServiceAccountToken("a", "b", getTokenRequest()); err != nil { t.Fatalf("unexpected error: %v", err) } if s.tg.count != 1 { t.Fatalf("unexpected client call, got: %d, want: 1", s.tg.count) } if _, err := s.mgr.GetServiceAccountToken("a", "b", getTokenRequest()); err != nil { t.Fatalf("unexpected error: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 16.2K bytes - Viewed (0) -
pkg/test/framework/components/istio/ca.go
c := t.Clusters().Default() rootCert, err := FetchRootCert(c.Kube()) if err != nil { return Cert{}, fmt.Errorf("failed to fetch root cert: %v", err) } token, err := GetServiceAccountToken(c.Kube(), "istio-ca", namespace, serviceAccount) if err != nil { return Cert{}, err } san := fmt.Sprintf("spiffe://%s/ns/%s/sa/%s", "cluster.local", namespace, serviceAccount)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/volume/projected/projected.go
kvHost volume.KubeletVolumeHost getSecret func(namespace, name string) (*v1.Secret, error) getConfigMap func(namespace, name string) (*v1.ConfigMap, error) getServiceAccountToken func(namespace, name string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) deleteServiceAccountToken func(podUID types.UID) } var _ volume.VolumePlugin = &projectedPlugin{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/kubelet/token/token_manager.go
// mocked for testing getToken func(name, namespace string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) clock clock.Clock } // GetServiceAccountToken gets a service account token for a pod from cache or // from the TokenRequest API. This process is as follows: // * Check the cache for the current token request.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 10:20:09 UTC 2021 - 6.1K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/volume_host.go
return func(_, _ string, _ *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { return nil, fmt.Errorf("GetServiceAccountToken unsupported in PersistentVolumeController") } } func (ctrl *PersistentVolumeController) DeleteServiceAccountTokenFunc() func(types.UID) { return func(types.UID) { //nolint:logcheck
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 11:00:37 UTC 2024 - 4.5K bytes - Viewed (0) -
pkg/kubelet/volume_host.go
} } func (kvh *kubeletVolumeHost) GetServiceAccountTokenFunc() func(namespace, name string, tr *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { return kvh.tokenManager.GetServiceAccountToken } func (kvh *kubeletVolumeHost) DeleteServiceAccountTokenFunc() func(podUID types.UID) { return kvh.tokenManager.DeleteServiceAccountToken }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 11:00:37 UTC 2024 - 10K bytes - Viewed (0) -
pkg/controller/volume/expand/expand_controller.go
return func(_, _ string, _ *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { return nil, fmt.Errorf("GetServiceAccountToken unsupported in expandController") } } func (expc *expandController) DeleteServiceAccountTokenFunc() func(types.UID) { return func(types.UID) { //nolint:logcheck
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 16.2K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/attach_detach_controller.go
return func(_, _ string, _ *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error) { return nil, fmt.Errorf("GetServiceAccountToken unsupported in attachDetachController") } } func (adc *attachDetachController) DeleteServiceAccountTokenFunc() func(types.UID) { return func(types.UID) { // nolint:logcheck
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.6K bytes - Viewed (0) -
pkg/volume/projected/projected_test.go
projectedVolume: &projectedVolume{ sources: source.Sources, podUID: pod.UID, plugin: &projectedPlugin{ host: host, getServiceAccountToken: host.GetServiceAccountTokenFunc(), }, }, source: *source, pod: pod, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 40.5K bytes - Viewed (0)