Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GKEMetadataEndpoint default Google metadata endpoint. // See https://cloud.google.com/compute/docs/storing-retrieving-metadata#querying GKEMetadataEndpoint = "http://metadata.google.internal/computeMetadata/v1/" // GKEPathProjectID metadata endpoint path to the project ID string GKEPathProjectID = "project/project-id" // GKEPathProjectNumber metadata endpoint path to the project number GKEPathProjectNumber = "project/numeric-project-id" // GKEPathClusterName metadata endpoint path to the cluster name GKEPathClusterName = "instance/attributes/cluster-name" // GKEPathClusterLocation metadata endpoint path to the cluster location GKEPathClusterLocation = "instance/attributes/cluster-location" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GKEConfig ¶
type GKEConfig struct {
MetadataEndpoint string
}
GKEConfig the GKE specific configuration
type Options ¶
type Options struct { Dir string NoCommit bool NoInClusterCheck bool CommandRunner cmdrunner.CommandRunner GKEConfig GKEConfig // contains filtered or unexported fields }
Options the options for the command
func NewCmdRequirementsResolve ¶
NewCmdRequirementsResolve creates a command object for the command
func (*Options) ResolveGKE ¶
ResolveGKE resolves any missing GKE metadata
Click to show internal directories.
Click to hide internal directories.