flight

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const AnnotationOverrideFlight = "overrides.yoke.cd/flight"

Variables

This section is empty.

Functions

func Namespace

func Namespace() string

Namespace is a convenience function for fetching the namespace within the context of an executing flight. This will generally be the -namespace flag passed to "yoke takeoff"

func Release

func Release() string

Release is convenience for fetching the release name within the context of an executing flight. This will generally be the name of release passed to "yoke takeoff"

Types

type Resource added in v0.9.2

type Resource interface {
	GroupVersionKind() schema.GroupVersionKind
}

Resource is a best effort attempt at capturing the set of types that are kubernetes resources. K8s resource embed the metav1.TypeMeta struct and thus expose this method; unstructured.Unstructured objects also expose it.

Having this type allows us to not fallback to using `any` when building our flight implementations.

type Stage added in v0.9.2

type Stage []Resource

Stage represents a single deployment stage. A stage is a valid flight output.

func (Stage) MarshalJSON added in v0.9.2

func (stage Stage) MarshalJSON() ([]byte, error)

MarshalJSON implements custom JSON marshalling for flight stages. It allows stages to have resources written as nil instead of omitting them entirely. To support this convenience, a stage filters out nil values before serializing its content.

type Stages added in v0.9.2

type Stages []Stage

Stages is an ordered list of stages. Yoke will apply each stage one by one. Stages is a valid flight output.

type Status added in v0.6.6

type Status struct {
	// Status represents the state of the resource. Typical values are: InProgress, Ready, Error, Terminating.
	Status string `json:"status,omitempty"`
	// Msg is a human readable message describing the status or error if any.
	Msg string `json:"msg,omitempty"`
}

Status is a basic status representation used for Flights by the ATC as well as for Airways.

Directories

Path Synopsis
wasi exports essentials from the wasm client-side for working with wasm from the host.
wasi exports essentials from the wasm client-side for working with wasm from the host.
k8s

Jump to

Keyboard shortcuts

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