checkpoint

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 26 Imported by: 13

Documentation

Overview

Package checkpoint provides libraries that are used by the pod-checkpointer utility to checkpoint pods on a node. See cmd/checkpoint/README.md in this repository for more information.

Index

Constants

This section is empty.

Variables

View Source
var ErrorConflictingSecurityContexts = errors.New("pod and/or container(s) have conflicting SecurityContext.RunAsUser values")

ErrorConflictingSecurityContexts is returned when a pod has a PodSecurityContext and/or SecurityContext(s) that have conflicting RunAsUser values.

Functions

func Run

func Run(opts Options) error

Run instantiates and starts a new checkpointer. Returns error if there was a problem creating the checkpointer, otherwise never returns.

Types

type CheckpointerPod

type CheckpointerPod struct {
	// The name of the node this checkpointer is running on.
	NodeName string
	// The name of the pod that is running this checkpointer.
	PodName string
	// The namespace of the pod that is running this checkpointer.
	PodNamespace string
}

CheckpointerPod holds information about this checkpointer pod.

type Options

type Options struct {
	// CheckpointerPod holds information about this checkpointer pod.
	CheckpointerPod CheckpointerPod
	// KubeConfig is a valid kubeconfig for communicating with the APIServer.
	KubeConfig *restclient.Config
	// RemoteRuntimeEndpoint is the location of the CRI GRPC endpoint.
	RemoteRuntimeEndpoint string
	// RuntimeRequestTimeout is the timeout that is used for requests to the RemoteRuntimeEndpoint.
	RuntimeRequestTimeout time.Duration
	// CheckpointGracePeriod is the timeout that is used for cleaning up checkpoints when the parent
	// pod is deleted.
	CheckpointGracePeriod time.Duration
}

Options defines the parameters that are required to start the checkpointer.

Directories

Path Synopsis
cri
v1alpha1
Package runtime is a generated protocol buffer package.
Package runtime is a generated protocol buffer package.
v1alpha2
Package v1alpha2 is a generated protocol buffer package.
Package v1alpha2 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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