k8s

package
v0.20.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuplicateYAMLDetectedError added in v0.17.1

func DuplicateYAMLDetectedError(id, stackTrace string) error

Types

type JSONPathImageLocatorListSpec

type JSONPathImageLocatorListSpec struct {
	Specs []JSONPathImageLocatorSpec
}

Deserializing locators from starlark values.

func (JSONPathImageLocatorListSpec) IsEmpty

func (s JSONPathImageLocatorListSpec) IsEmpty() bool

func (JSONPathImageLocatorListSpec) ToImageLocators

func (s JSONPathImageLocatorListSpec) ToImageLocators(selector k8s.ObjectSelector) ([]k8s.ImageLocator, error)

func (*JSONPathImageLocatorListSpec) Unpack

type JSONPathImageLocatorSpec

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

func (JSONPathImageLocatorSpec) ToImageLocator

func (s JSONPathImageLocatorSpec) ToImageLocator(selector k8s.ObjectSelector) (k8s.ImageLocator, error)

func (*JSONPathImageLocatorSpec) Unpack

type JSONPathImageObjectLocatorSpec

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

func (JSONPathImageObjectLocatorSpec) IsEmpty

func (JSONPathImageObjectLocatorSpec) ToImageLocator

func (*JSONPathImageObjectLocatorSpec) Unpack

type KindInfo added in v0.17.0

type KindInfo struct {
	ImageLocators    []k8s.ImageLocator
	PodReadinessMode model.PodReadinessMode
}

type ObjectSpec added in v0.17.1

type ObjectSpec struct {
	// The resource spec
	Entity k8s.K8sEntity

	// The stack trace where this resource was registered.
	// Helpful for reporting duplicates.
	StackTrace string
}

type PodReadinessMode added in v0.17.0

type PodReadinessMode struct {
	Value model.PodReadinessMode
}

Deserializing pod readiness from starlark values.

func (*PodReadinessMode) Unpack added in v0.17.0

func (m *PodReadinessMode) Unpack(v starlark.Value) error

type State added in v0.17.1

type State struct {
	ObjectSpecRefs  []v1.ObjectReference
	ObjectSpecIndex map[v1.ObjectReference]ObjectSpec
}

Keeps track of all the Kuberentes objects registered during Tiltfile Execution.

func NewState added in v0.17.1

func NewState() *State

func (*State) Append added in v0.17.1

func (s *State) Append(t *starlark.Thread, entities []k8s.K8sEntity, dupesOK bool) error

func (*State) Entities added in v0.17.1

func (s *State) Entities() []k8s.K8sEntity

func (*State) EntityCount added in v0.17.1

func (s *State) EntityCount() int

Jump to

Keyboard shortcuts

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