- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GCE_METADATA_HOST (0.43 sec)
-
security/pkg/credentialfetcher/plugin/mock.go
ms.server = httpServer url, err := url.Parse(httpServer.URL) if err != nil { return nil, fmt.Errorf("parse URL failed: %v", err) } if err := os.Setenv("GCE_METADATA_HOST", url.Host); err != nil { fmt.Printf("Error running os.Setenv: %v", err) ms.Stop() return nil, err } return ms, nil } func (ms *MetadataServer) setToken(t string) { ms.mutex.Lock()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3K bytes - Viewed (0) -
pkg/bootstrap/platform/gcp.go
return metadataSupplier{ Property: property, Fn: fn, } } func isMetadataEndpointAccessible() bool { // From the Go package, but private so copied here const metadataHostEnv = "GCE_METADATA_HOST" const metadataIP = "169.254.169.254" host := os.Getenv(metadataHostEnv) if host == "" { host = metadataIP } _, err := net.DialTimeout("tcp", defaultPort(host, "80"), 5*time.Second) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 15 00:37:33 UTC 2023 - 11.1K bytes - Viewed (0)