Fix explicitly include gcp auth from k8s.io to kubernetes discovery
@@ -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"
)
