git

package
v1.57.11 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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"

	// 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, error)

CloneInitContainers The sidecars for cloning repo

func CloneInitContainersWithContainerName

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

CloneInitContainersWithContainerName The sidecars for cloning repo

Types

type CloneConfig added in v1.57.0

type CloneConfig struct {
	NSlookupImage string
	GitImage      string
	BashImage     string
}

func (CloneConfig) Validate added in v1.57.0

func (c CloneConfig) Validate() error

Jump to

Keyboard shortcuts

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