INNER CODE UNIT · Go

init

buildpacks-community/kpack · cmd/build-init/main.go:57

func init() {
	flag.Var(&basicGitCredentials, "basic-git", "Basic authentication for git of the form 'secretname=git.domain.com'")
	flag.Var(&sshGitCredentials, "ssh-git", "SSH authentication for git of the form 'secretname=git.domain.com'")
	flag.Var(&blobCredentials, "blob", "Authentication for blob of the form 'secretname=git.domain.com'")
	flag.Var(&basicDockerCredentials, "basic-docker", "Basic authentication for docker of the form 'secretname=git.domain.com'")
	flag.Var(&dockerCfgCredentials, "dockercfg", "Docker Cfg credentials in the form of the path to the credential")
	flag.Var(&dockerConfigCredentials, "dockerconfig", "Docker Config JSON credentials in the form of the path to the credential")
	flag.Var(&imagePullSecrets, "imagepull", "Builder Image pull credentials in the form of the path to the credential")
}

const (
	secretsHome                  = "/builder/home"
	appDir                       = "/workspace"
	platformDir                  = "/platform"
	buildSecretsDir              = "/var/build-secrets"
	registrySourcePullSecretsDir = "/registrySourcePullSecrets"
	projectMetadataDir           = "/projectMetadata" // place to write project-metadata.toml which gets exported to image label by the lifecycle
	networkWaitLauncherDir       = "/networkWait"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…