git

package
v1.59.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// InternalContainerPrefix To indicate that this is not for user interest
	InternalContainerPrefix = "internal-"

	// CloneConfigContainerName Name of container for clone in the outer pipeline
	CloneConfigContainerName = "clone-config"

	// CloneContainerName Name of container
	CloneContainerName = "clone"

	// GitSSHKeyVolumeName Deploy key + known_hosts
	GitSSHKeyVolumeName = "git-ssh-keys"

	// BuildContextVolumeName Name of volume to hold build context
	BuildContextVolumeName = "build-context"

	// CloneRepoHomeVolumeName Name of volume to hold clone repo home folder
	CloneRepoHomeVolumeName = "builder-home"

	// CloneRepoHomeVolumePath Name of home volume path
	CloneRepoHomeVolumePath = "/home/clone"

	// Workspace Folder to hold the code to build
	Workspace = "/workspace"
)

Variables

This section is empty.

Functions

func CloneInitContainers

func CloneInitContainers(sshURL, branch string, config CloneConfig) []corev1.Container

CloneInitContainers The sidecars for cloning repo

func CloneInitContainersWithContainerName

func CloneInitContainersWithContainerName(sshURL, branch, cloneContainerName string, config CloneConfig, useLfs bool) []corev1.Container

CloneInitContainersWithContainerName The sidecars for cloning repo

Types

type CloneConfig added in v1.57.0

type CloneConfig struct {
	NSlookupImage string
	GitImage      string
	BashImage     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL