class Kubeclient::GCPAuthProvider

Handle different ways to get a bearer token for Google Cloud Platform.

Public Class Methods

token(config) click to toggle source
# File lib/kubeclient/gcp_auth_provider.rb, line 10
def token(config)
  if config.key?('cmd-path')
    Kubeclient::GCPCommandCredentials.token(config)
  else
    Kubeclient::GoogleApplicationDefaultCredentials.token
  end
end