Help us shape the future of Go! Take the 2026 Go Developer Survey

sidecar

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SyncletContainerName = "tilt-synclet"
View Source
const SyncletImageName = "gcr.io/windmill-public-containers/tilt-synclet"

Variables

View Source
var SyncletContainer = v1.Container{
	Name:            SyncletContainerName,
	Image:           fmt.Sprintf("%s:%s", SyncletImageName, SyncletTag),
	ImagePullPolicy: v1.PullIfNotPresent,
	Resources:       v1.ResourceRequirements{Requests: v1.ResourceList{v1.ResourceCPU: resource.MustParse("0Mi")}},
	VolumeMounts: []v1.VolumeMount{
		v1.VolumeMount{
			Name:      "tilt-dockersock",
			MountPath: "/var/run/docker.sock",
		},
	},
	SecurityContext: &v1.SecurityContext{
		Privileged: syncletPrivileged(),
	},
}
View Source
var SyncletTag = "v20181105"

When we deploy Tilt for development, we override this with LDFLAGS

View Source
var SyncletVolume = v1.Volume{
	Name: "tilt-dockersock",
	VolumeSource: v1.VolumeSource{
		HostPath: &v1.HostPathVolumeSource{
			Path: "/var/run/docker.sock",
		},
	},
}

Functions

func InjectSyncletSidecar

func InjectSyncletSidecar(entity k8s.K8sEntity, matchRef reference.Named) (k8s.K8sEntity, bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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