Documentation
¶
Index ¶
Constants ¶
View Source
const ( GcloudProject = "gcloud.core.project" GcloudProjectNumber = "gcloud.project.projectNumber" )
Variables ¶
View Source
var GetProjectNumberFromProjectID = func(projectID string) (string, error) { gcloudCmd := exec.Command("gcloud", "projects", "describe", projectID, "--format", "value(projectNumber)") b, err := gcloudCmd.Output() if err != nil { return "", errors.Wrapf(err, "failed to get project number for %s, please verify gcloud "+ "credentials are valid and try again", projectID) } return strings.TrimSpace(string(b)), nil }
Functions ¶
func DefExists ¶ added in v0.26.0
DefExists returns true if the setterName exists in Kptfile definitions
func PerformSetters ¶
func SetV1AutoSetter ¶ added in v0.34.0
SetV1AutoSetter sets the input auto setter recursively in all the sub-packages of root Sets GcloudProjectNumber as well, if input setter is GcloudProject
func SetV2AutoSetter ¶ added in v0.34.0
SetV2AutoSetter sets the input auto setter recursively in all the sub-packages of root Sets GcloudProjectNumber as well, if input setter is GcloudProject
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.