Documentation
¶
Index ¶
- Constants
- func CloneInitContainersWithContainerName(sshURL, branch, commitID, directory string, useLfs, skipBlobs bool, ...) []corev1.Container
- func CloneInitContainersWithSourceCode(sshURL, branch, commitID, directory, gitImage string) []corev1.Container
- func GetJobContainerVolumeMounts(workspace string) []corev1.VolumeMount
- func GetJobVolumes() []corev1.Volume
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 CloneInitContainersWithContainerName ¶
func CloneInitContainersWithContainerName(sshURL, branch, commitID, directory string, useLfs, skipBlobs bool, cloneContainerName, gitImage string) []corev1.Container
CloneInitContainersWithContainerName The sidecars for cloning a git repo. Lfs is to support large files in cloned source code, it is not needed for Radix config ot SubPipeline
func CloneInitContainersWithSourceCode ¶
func CloneInitContainersWithSourceCode(sshURL, branch, commitID, directory, gitImage string) []corev1.Container
CloneInitContainersWithSourceCode The sidecars for cloning repo with source code Arguments:
- sshURL: SSH URL to the remote git repository
- branch: The branch to checkout
- commitID (optional): The commit ID to checkout after clone finished. The clone step will fail if the commit ID is not an ancestor of HEAD for the branch
- directory: The directory to clone the git repository to
- config: defines the container images to be used by the init containers
func GetJobContainerVolumeMounts ¶
func GetJobContainerVolumeMounts(workspace string) []corev1.VolumeMount
GetJobContainerVolumeMounts Get job container volume mounts
func GetJobVolumes ¶
GetJobVolumes Get Radix pipeline job volumes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.