Import authentication plugins (Go)
By default, plugins that use client-go cannot authenticate to Kubernetes clusters on many cloud providers. To address this, include the following import in your plugin:
import _ "k8s.io/client-go/plugin/pkg/client/auth"
At the moment
pctl install
doesn't seem to work with GKE as client-go is missing the auth module.From: https://krew.sigs.k8s.io/docs/developer-guide/develop/best-practices/