- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CreateGCEPlugin (0.19 sec)
-
security/pkg/credentialfetcher/fetcher.go
) func NewCredFetcher(credtype, trustdomain, jwtPath, identityProvider string) (security.CredFetcher, error) { switch credtype { case security.GCE: return plugin.CreateGCEPlugin(trustdomain, jwtPath, identityProvider), nil case security.JWT, "": // If unset, also default to JWT for backwards compatibility if jwtPath == "" { return nil, nil // no cred fetcher - using certificates only }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 07 22:21:41 UTC 2022 - 1.4K bytes - Viewed (0) -
security/pkg/credentialfetcher/plugin/gce.go
tokenCache string // mutex lock is required to avoid race condition when updating token file and token cache. tokenMutex sync.RWMutex } // CreateGCEPlugin creates a Google credential fetcher plugin. Return the pointer to the created plugin. func CreateGCEPlugin(audience, jwtPath, identityProvider string) *GCEPlugin { p := &GCEPlugin{ aud: audience, jwtPath: jwtPath,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 4.7K bytes - Viewed (0) -
security/pkg/credentialfetcher/plugin/gce_test.go
rotationInterval = 5 * time.Minute }) for id, tc := range testCases { // These tests should not run in parallel because they share one metadata server. t.Run(id, func(t *testing.T) { p := CreateGCEPlugin("", tc.jwtPath, "") if err := creatJWTFile(tc.jwtPath); err != nil { t.Fatalf("%s, creatJWTFile() returns err: %v", id, err) } ms.Reset() ms.setToken(tc.jwt)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 03 18:09:59 UTC 2021 - 10.1K bytes - Viewed (0)