- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for shouldFillMetadata (0.29 sec)
-
pkg/bootstrap/platform/gcp.go
md[GCPClusterURL] = clusterURL } return md }() var ( // shouldFillMetadata returns whether the workload is running on GCP and the metadata endpoint is accessible // In contrast, DiscoverWithTimeout only checks if the workload is running on GCP shouldFillMetadata = func() bool { return metadata.OnGCE() && isMetadataEndpointAccessible() } projectIDFn = metadata.ProjectID
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 15 00:37:33 UTC 2023 - 11.1K bytes - Viewed (0) -
pkg/bootstrap/platform/gcp_test.go
}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { test.SetForTest(t, &GCPStaticMetadata, tt.env) shouldFillMetadata, projectIDFn, numericProjectIDFn, clusterLocationFn, clusterNameFn, instanceNameFn, instanceIDFn, instanceTemplateFn, createdByFn = tt.shouldFill, tt.projectIDFn,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 15 00:37:33 UTC 2023 - 17.7K bytes - Viewed (0)