tptdev

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 24 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 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