kubemanifest

package
v1.18.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 105

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapEtcHosts

func MapEtcHosts(pod *v1.Pod, container *v1.Container, readOnly bool)

MapEtcHosts maps the /etc/hosts file into the pod (useful for gossip DNS)

func MarkPodAsClusterCritical added in v1.15.1

func MarkPodAsClusterCritical(pod *v1.Pod)

MarkPodAsClusterCritical sets the pod priority to system-cluster-critical

func MarkPodAsCritical

func MarkPodAsCritical(pod *v1.Pod)

MarkPodAsCritical adds the required annotations for a pod to be considered critical

func MarkPodAsNodeCritical added in v1.15.1

func MarkPodAsNodeCritical(pod *v1.Pod)

MarkPodAsNodeCritical sets the pod priority to system-node-critical

Types

type ImageRemapFunction

type ImageRemapFunction func(image string) (string, error)

type Manifest

type Manifest struct {
	// contains filtered or unexported fields
}

func LoadManifestsFrom

func LoadManifestsFrom(contents []byte) ([]*Manifest, error)

func (*Manifest) IsEmptyObject added in v1.15.1

func (m *Manifest) IsEmptyObject() bool

IsEmptyObject checks if the object has no keys set (i.e. `== {}`)

func (*Manifest) RemapImages

func (m *Manifest) RemapImages(mapper ImageRemapFunction) error

func (*Manifest) ToYAML

func (m *Manifest) ToYAML() ([]byte, error)

type Visitor

type Visitor interface {
	VisitBool(path []string, v bool, mutator func(bool)) error
	VisitString(path []string, v string, mutator func(string)) error
	VisitFloat64(path []string, v float64, mutator func(float64)) error
}

Jump to

Keyboard shortcuts

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