Merge pull request #10516 from nixargh/kubernetes_sd_config_gcp_provider_fix

Explicitly include gcp auth from k8s.io to kubernetes discovery
This commit is contained in:
Frederic Branczyk 2022-04-01 14:26:52 +02:00 committed by GitHub
commit a30b27a8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ import (
"k8s.io/client-go/tools/cache"
"k8s.io/client-go/tools/clientcmd"
// Required to get the GCP auth provider working.
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
"github.com/prometheus/prometheus/discovery"
"github.com/prometheus/prometheus/discovery/targetgroup"
)