Fix #10507: explicitly include gcp auth from k8s.io to kubernetes discovery

Signed-off-by: nixargh <nixargh@protonmail.com>
This commit is contained in:
nixargh 2022-04-01 14:56:37 +03:00
parent cd18da3605
commit e76c6aac50

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"
)