tptdev

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

README

internal/tptdev

This package is used to manage operations useful for tptdev, particularly building images for the dev environment using docker libraries.

Documentation

Index

Constants

View Source
const DefaultInstanceName = "dev-0"

Variables

This section is empty.

Functions

func BuildDevImage

func BuildDevImage(threeportPath string) error

BuildDevImage builds all the threeport control plane container images using the dev dockerfile to provide live reload of code in the container.

func BuildGoBinary

func BuildGoBinary(threeportPath, arch string, component *v0.ControlPlaneComponent, noCache bool) error

BuildGoBinary builds the go binary for a threeport control plane component.

func ConnectLocalRegistry added in v0.6.0

func ConnectLocalRegistry(clusterName string) error

ConnectLocalRegistry connects a local Docker container registry to a kind cluster.

func CreateLocalRegistry added in v0.6.0

func CreateLocalRegistry() error

CreateLocalRegistry starts a Docker container to serve as a local container registry. If a local registry already exists with the <registryName> name, it will return without error

func DeleteLocalRegistry added in v0.6.0

func DeleteLocalRegistry() error

DeleteLocalRegistry stops and removes the Docker container running the local container registry.

func DockerBuildxImage

func DockerBuildxImage(threeportPath, dockerFilePath, tag, arch string, component *v0.ControlPlaneComponent) error

DockerBuildxImage builds a specified docker image with the 'docker buildx' command.

func LoadDevImage

func LoadDevImage(kindKubernetesRuntimeName, imageName string) error

LoadDevImage loads the threeport control plane development container images onto the kind cluster nodes.

func PrepareDevImage added in v0.5.0

func PrepareDevImage(threeportPath, kindKubernetesRuntimeName string, cpi *threeport.ControlPlaneInstaller) error

PrepareDevImage builds and loads the threeport control plane images for development use.

func PushDockerImage

func PushDockerImage(tag string) error

PushDockerImage pushes a specified docker image to the docker registry.

Types

type BuildErrorLine

type BuildErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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