v1alpha1

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 28

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/tilt-dev/tilt/pkg/apis/core +k8s:defaulter-gen=TypeMeta +groupName=tilt.dev

Index

Constants

View Source
const AnnotationManifest = "tilt.dev/resource"

AnnotationManifest identifies which manifest an object's logs should appear under.

View Source
const AnnotationSpanID = "tilt.dev/log-span-id"

An annotation on any object that identifies which span id its logs should appear under.

View Source
const AnnotationTargetID = "tilt.dev/target-id"

AnnotationTargetID is an internal Tilt target ID used for the build graph.

View Source
const GroupName = "tilt.dev"

GroupName is the group name used in this package

View Source
const Version = "v1alpha1"

Variables

View Source
var AddToScheme = func(scheme *runtime.Scheme) error {
	metav1.AddToGroupVersion(scheme, schema.GroupVersion{
		Group:   GroupName,
		Version: Version,
	})

	objs := []runtime.Object{}
	for _, obj := range AllResourceObjects() {
		objs = append(objs, obj)
	}
	objs = append(objs, AllResourceLists()...)

	scheme.AddKnownTypes(schema.GroupVersion{
		Group:   GroupName,
		Version: Version,
	}, objs...)
	return nil
}
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func AllResourceLists

func AllResourceLists() []runtime.Object

func AllResourceObjects

func AllResourceObjects() []resource.Object

func NewScheme added in v0.19.0

func NewScheme() *runtime.Scheme

A new scheme with just this package's types.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cmd added in v0.18.11

type Cmd struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CmdSpec   `json:"spec,omitempty"`
	Status CmdStatus `json:"status,omitempty"`
}

Cmd +k8s:openapi-gen=true

func (*Cmd) DeepCopy added in v0.18.11

func (in *Cmd) DeepCopy() *Cmd

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cmd.

func (*Cmd) DeepCopyInto added in v0.18.11

func (in *Cmd) DeepCopyInto(out *Cmd)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cmd) DeepCopyObject added in v0.18.11

func (in *Cmd) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Cmd) GetGroupVersionResource added in v0.18.11

func (in *Cmd) GetGroupVersionResource() schema.GroupVersionResource

func (*Cmd) GetObjectMeta added in v0.18.11

func (in *Cmd) GetObjectMeta() *metav1.ObjectMeta

func (*Cmd) GetStatus added in v0.18.11

func (in *Cmd) GetStatus() resource.StatusSubResource

func (*Cmd) IsStorageVersion added in v0.18.11

func (in *Cmd) IsStorageVersion() bool

func (*Cmd) NamespaceScoped added in v0.18.11

func (in *Cmd) NamespaceScoped() bool

func (*Cmd) New added in v0.18.11

func (in *Cmd) New() runtime.Object

func (*Cmd) NewList added in v0.18.11

func (in *Cmd) NewList() runtime.Object

func (*Cmd) Validate added in v0.18.11

func (in *Cmd) Validate(ctx context.Context) field.ErrorList

type CmdList added in v0.18.11

type CmdList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Cmd `json:"items"`
}

CmdList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CmdList) DeepCopy added in v0.18.11

func (in *CmdList) DeepCopy() *CmdList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdList.

func (*CmdList) DeepCopyInto added in v0.18.11

func (in *CmdList) DeepCopyInto(out *CmdList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CmdList) DeepCopyObject added in v0.18.11

func (in *CmdList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CmdList) GetListMeta added in v0.18.11

func (in *CmdList) GetListMeta() *metav1.ListMeta

type CmdSpec added in v0.18.11

type CmdSpec struct {
	// Command-line arguments. Must have length at least 1.
	Args []string `json:"args,omitempty"`

	// Process working directory.
	//
	// If the working directory is not specified, the command is run
	// in the default Tilt working directory.
	//
	// +optional
	Dir string `json:"dir,omitempty"`

	// Additional variables process environment.
	//
	// Expressed as a C-style array of strings of the form ["KEY1=VALUE1", "KEY2=VALUE2", ...].
	//
	// Environment variables are layered on top of the environment variables
	// that Tilt runs with.
	//
	// +optional
	Env []string `json:"env,omitempty"`

	// Periodic probe of service readiness.
	//
	// +optional
	ReadinessProbe *Probe `json:"readinessProbe,omitempty"`

	// Indicates objects that can trigger a restart of this command.
	//
	// Restarts can happen even if the command is already done.
	//
	// Logs of the currently process after the restart are discarded.
	RestartOn *RestartOnSpec `json:"restartOn,omitempty"`
}

CmdSpec defines the desired state of Cmd

func (*CmdSpec) DeepCopy added in v0.18.11

func (in *CmdSpec) DeepCopy() *CmdSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdSpec.

func (*CmdSpec) DeepCopyInto added in v0.18.11

func (in *CmdSpec) DeepCopyInto(out *CmdSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CmdStateRunning added in v0.18.11

type CmdStateRunning struct {
	// The process id of the command.
	PID int32 `json:"pid"`

	// Time at which the command was last started.
	StartedAt metav1.MicroTime `json:"startedAt,omitempty"`
}

CmdStateRunning is a running state of a local command.

func (*CmdStateRunning) DeepCopy added in v0.18.11

func (in *CmdStateRunning) DeepCopy() *CmdStateRunning

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdStateRunning.

func (*CmdStateRunning) DeepCopyInto added in v0.18.11

func (in *CmdStateRunning) DeepCopyInto(out *CmdStateRunning)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CmdStateTerminated added in v0.18.11

type CmdStateTerminated struct {
	// The process id of the command.
	PID int32 `json:"pid"`

	// Exit status from the last termination of the command
	ExitCode int32 `json:"exitCode"`

	// Time at which previous execution of the command started
	StartedAt metav1.MicroTime `json:"startedAt,omitempty"`

	// Time at which the command last terminated
	FinishedAt metav1.MicroTime `json:"finishedAt,omitempty"`

	// (brief) reason the process is terminated
	// +optional
	Reason string `json:"reason,omitempty"`
}

CmdStateTerminated is a terminated state of a local command.

func (*CmdStateTerminated) DeepCopy added in v0.18.11

func (in *CmdStateTerminated) DeepCopy() *CmdStateTerminated

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdStateTerminated.

func (*CmdStateTerminated) DeepCopyInto added in v0.18.11

func (in *CmdStateTerminated) DeepCopyInto(out *CmdStateTerminated)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CmdStateWaiting added in v0.18.11

type CmdStateWaiting struct {
	// (brief) reason the process is not yet running.
	// +optional
	Reason string `json:"reason,omitempty"`
}

CmdStateWaiting is a waiting state of a local command.

func (*CmdStateWaiting) DeepCopy added in v0.18.11

func (in *CmdStateWaiting) DeepCopy() *CmdStateWaiting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdStateWaiting.

func (*CmdStateWaiting) DeepCopyInto added in v0.18.11

func (in *CmdStateWaiting) DeepCopyInto(out *CmdStateWaiting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CmdStatus added in v0.18.11

type CmdStatus struct {
	// Details about a waiting process.
	// +optional
	Waiting *CmdStateWaiting `json:"waiting,omitempty"`

	// Details about a running process.
	// +optional
	Running *CmdStateRunning `json:"running,omitempty"`

	// Details about a terminated process.
	// +optional
	Terminated *CmdStateTerminated `json:"terminated,omitempty"`

	// Specifies whether the command has passed its readiness probe.
	//
	// Terminating the command does not change its Ready state.
	//
	// Is always true when no readiness probe is defined.
	//
	// +optional
	Ready bool `json:"ready,omitempty"`
}

CmdStatus defines the observed state of Cmd

Based loosely on ContainerStatus in Kubernetes

func (CmdStatus) CopyTo added in v0.18.11

func (*CmdStatus) DeepCopy added in v0.18.11

func (in *CmdStatus) DeepCopy() *CmdStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdStatus.

func (*CmdStatus) DeepCopyInto added in v0.18.11

func (in *CmdStatus) DeepCopyInto(out *CmdStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerLogStreamStatus added in v0.19.3

type ContainerLogStreamStatus struct {
	// The name of the container.
	Name string `json:"name,omitempty"`

	// True when the stream is set up and streaming logs properly.
	//
	// +optional
	Active bool `json:"active,omitempty"`

	// True when the logs are done stream and the container is terminated.
	//
	// +optional
	Terminated bool `json:"terminated,omitempty"`

	// The last error message encountered while streaming.
	//
	// Empty when the stream is actively streaming or successfully terminated.
	//
	// +optional
	Error string `json:"error,omitempty"`
}

ContainerLogStreamStatus defines the current status of each individual container log stream.

func (*ContainerLogStreamStatus) DeepCopy added in v0.19.3

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerLogStreamStatus.

func (*ContainerLogStreamStatus) DeepCopyInto added in v0.19.3

func (in *ContainerLogStreamStatus) DeepCopyInto(out *ContainerLogStreamStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExecAction added in v0.18.11

type ExecAction struct {
	// Command is the command line to execute inside the container, the working directory for the
	// command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
	// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
	// a shell, you need to explicitly call out to that shell.
	// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
	// +optional
	Command []string `json:"command,omitempty" protobuf:"bytes,1,rep,name=command"`
}

ExecAction describes a "run in container" action.

func (*ExecAction) DeepCopy added in v0.18.11

func (in *ExecAction) DeepCopy() *ExecAction

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecAction.

func (*ExecAction) DeepCopyInto added in v0.18.11

func (in *ExecAction) DeepCopyInto(out *ExecAction)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExitCondition added in v0.19.2

type ExitCondition string
const (
	// ExitConditionManual cedes control to the user and will not exit based on resource status.
	//
	// This is used by `tilt up`.
	ExitConditionManual ExitCondition = "manual"
	// ExitConditionCI terminates upon the first encountered build or runtime failure or after all resources have been
	// started successfully.
	//
	// This is used by `tilt ci`.
	ExitConditionCI ExitCondition = "ci"
)

type FileEvent added in v0.18.12

type FileEvent struct {
	// Time is an approximate timestamp for a batch of file changes.
	//
	// This will NOT exactly match any inode attributes (e.g. ctime, mtime) at the filesystem level and is purely
	// informational or for use as an opaque watermark.
	Time metav1.MicroTime `json:"time"`
	// SeenFiles is a list of paths which changed (create, modify, or delete).
	SeenFiles []string `json:"seenFiles"`
}

func (*FileEvent) DeepCopy added in v0.18.12

func (in *FileEvent) DeepCopy() *FileEvent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileEvent.

func (*FileEvent) DeepCopyInto added in v0.18.12

func (in *FileEvent) DeepCopyInto(out *FileEvent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileWatch

type FileWatch struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   FileWatchSpec   `json:"spec,omitempty"`
	Status FileWatchStatus `json:"status,omitempty"`
}

FileWatch +k8s:openapi-gen=true

func (*FileWatch) DeepCopy

func (in *FileWatch) DeepCopy() *FileWatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileWatch.

func (*FileWatch) DeepCopyInto

func (in *FileWatch) DeepCopyInto(out *FileWatch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*FileWatch) DeepCopyObject

func (in *FileWatch) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*FileWatch) GetGroupVersionResource

func (in *FileWatch) GetGroupVersionResource() schema.GroupVersionResource

func (*FileWatch) GetObjectMeta

func (in *FileWatch) GetObjectMeta() *metav1.ObjectMeta

func (*FileWatch) GetStatus

func (in *FileWatch) GetStatus() resource.StatusSubResource

func (*FileWatch) IsStorageVersion

func (in *FileWatch) IsStorageVersion() bool

func (*FileWatch) NamespaceScoped

func (in *FileWatch) NamespaceScoped() bool

func (*FileWatch) New

func (in *FileWatch) New() runtime.Object

func (*FileWatch) NewList

func (in *FileWatch) NewList() runtime.Object

func (*FileWatch) Validate

func (in *FileWatch) Validate(_ context.Context) field.ErrorList

type FileWatchList

type FileWatchList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []FileWatch `json:"items"`
}

FileWatchList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*FileWatchList) DeepCopy

func (in *FileWatchList) DeepCopy() *FileWatchList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileWatchList.

func (*FileWatchList) DeepCopyInto

func (in *FileWatchList) DeepCopyInto(out *FileWatchList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*FileWatchList) DeepCopyObject

func (in *FileWatchList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*FileWatchList) GetListMeta

func (in *FileWatchList) GetListMeta() *metav1.ListMeta

type FileWatchSpec

type FileWatchSpec struct {
	// WatchedPaths are paths of directories or files to watch for changes to. It cannot be empty.
	WatchedPaths []string `json:"watchedPaths"`
	// Ignores are optional rules to filter out a subset of changes matched by WatchedPaths.
	Ignores []IgnoreDef `json:"ignores,omitempty"`
}

FileWatchSpec defines the desired state of FileWatch

func (*FileWatchSpec) DeepCopy

func (in *FileWatchSpec) DeepCopy() *FileWatchSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileWatchSpec.

func (*FileWatchSpec) DeepCopyInto

func (in *FileWatchSpec) DeepCopyInto(out *FileWatchSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileWatchStatus

type FileWatchStatus struct {
	// MonitorStartTime is the timestamp of when filesystem monitor was started. It is zero if the monitor has not
	// been started yet.
	MonitorStartTime metav1.MicroTime `json:"monitorStartTime,omitempty"`
	// LastEventTime is the timestamp of the most recent file event. It is zero if no events have been seen yet.
	//
	// If the specifics of which files changed are not important, this field can be used as a watermark without
	// needing to inspect FileEvents.
	LastEventTime metav1.MicroTime `json:"lastEventTime,omitempty"`
	// FileEvents summarizes batches of file changes (create, modify, or delete) that have been seen in ascending
	// chronological order. Only the most recent 20 events are included.
	FileEvents []FileEvent `json:"fileEvents,omitempty"`
	// Error is set if there is a problem with the filesystem watch. If non-empty, consumers should assume that
	// no filesystem events will be seen and that the file watcher is in a failed state.
	Error string `json:"error,omitempty"`
}

FileWatchStatus defines the observed state of FileWatch

func (FileWatchStatus) CopyTo

func (*FileWatchStatus) DeepCopy

func (in *FileWatchStatus) DeepCopy() *FileWatchStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileWatchStatus.

func (*FileWatchStatus) DeepCopyInto

func (in *FileWatchStatus) DeepCopyInto(out *FileWatchStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HTTPGetAction added in v0.18.11

type HTTPGetAction struct {
	// Path to access on the HTTP server.
	// +optional
	Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
	// Name or number of the port to access on the container.
	// Number must be in the range 1 to 65535.
	Port int32 `json:"port" protobuf:"bytes,2,opt,name=port"`
	// Host name to connect to, defaults to the pod IP. You probably want to set
	// "Host" in httpHeaders instead.
	// +optional
	Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"`
	// Scheme to use for connecting to the host.
	// Defaults to HTTP.
	// +optional
	Scheme URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=URIScheme"`
	// Custom headers to set in the request. HTTP allows repeated headers.
	// +optional
	HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"`
}

HTTPGetAction describes an action based on HTTP Get requests.

func (*HTTPGetAction) DeepCopy added in v0.18.11

func (in *HTTPGetAction) DeepCopy() *HTTPGetAction

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPGetAction.

func (*HTTPGetAction) DeepCopyInto added in v0.18.11

func (in *HTTPGetAction) DeepCopyInto(out *HTTPGetAction)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HTTPHeader added in v0.18.11

type HTTPHeader struct {
	// The header field name
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// The header field value
	Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

HTTPHeader describes a custom header to be used in HTTP probes

func (*HTTPHeader) DeepCopy added in v0.18.11

func (in *HTTPHeader) DeepCopy() *HTTPHeader

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPHeader.

func (*HTTPHeader) DeepCopyInto added in v0.18.11

func (in *HTTPHeader) DeepCopyInto(out *HTTPHeader)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Handler added in v0.18.11

type Handler struct {
	// One and only one of the following should be specified.
	// Exec specifies the action to take.
	// +optional
	Exec *ExecAction `json:"exec,omitempty" protobuf:"bytes,1,opt,name=exec"`
	// HTTPGet specifies the http request to perform.
	// +optional
	HTTPGet *HTTPGetAction `json:"httpGet,omitempty" protobuf:"bytes,2,opt,name=httpGet"`
	// TCPSocket specifies an action involving a TCP port.
	// TCP hooks not yet supported
	// TODO: implement a realistic TCP lifecycle hook
	// +optional
	TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty" protobuf:"bytes,3,opt,name=tcpSocket"`
}

Handler defines a specific action that should be taken in a probe.

func (*Handler) DeepCopy added in v0.18.11

func (in *Handler) DeepCopy() *Handler

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Handler.

func (*Handler) DeepCopyInto added in v0.18.11

func (in *Handler) DeepCopyInto(out *Handler)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IgnoreDef added in v0.18.12

type IgnoreDef struct {
	// BasePath is the base path for the patterns. It cannot be empty.
	//
	// If no patterns are specified, everything under it will be recursively ignored.
	BasePath string `json:"basePath"`
	// Patterns are dockerignore style rules. Absolute-style patterns will be rooted to the BasePath.
	//
	// See https://docs.docker.com/engine/reference/builder/#dockerignore-file.
	Patterns []string `json:"patterns,omitempty"`
}

func (*IgnoreDef) DeepCopy added in v0.18.12

func (in *IgnoreDef) DeepCopy() *IgnoreDef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreDef.

func (*IgnoreDef) DeepCopyInto added in v0.18.12

func (in *IgnoreDef) DeepCopyInto(out *IgnoreDef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodLogStream added in v0.19.1

type PodLogStream struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PodLogStreamSpec   `json:"spec,omitempty"`
	Status PodLogStreamStatus `json:"status,omitempty"`
}

PodLogStream

Streams logs from a pod on Kubernetes into the core Tilt engine.

+k8s:openapi-gen=true

func (*PodLogStream) DeepCopy added in v0.19.1

func (in *PodLogStream) DeepCopy() *PodLogStream

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLogStream.

func (*PodLogStream) DeepCopyInto added in v0.19.1

func (in *PodLogStream) DeepCopyInto(out *PodLogStream)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodLogStream) DeepCopyObject added in v0.19.1

func (in *PodLogStream) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodLogStream) GetGroupVersionResource added in v0.19.1

func (in *PodLogStream) GetGroupVersionResource() schema.GroupVersionResource

func (*PodLogStream) GetObjectMeta added in v0.19.1

func (in *PodLogStream) GetObjectMeta() *metav1.ObjectMeta

func (*PodLogStream) GetStatus added in v0.19.1

func (in *PodLogStream) GetStatus() resource.StatusSubResource

func (*PodLogStream) IsStorageVersion added in v0.19.1

func (in *PodLogStream) IsStorageVersion() bool

func (*PodLogStream) NamespaceScoped added in v0.19.1

func (in *PodLogStream) NamespaceScoped() bool

func (*PodLogStream) New added in v0.19.1

func (in *PodLogStream) New() runtime.Object

func (*PodLogStream) NewList added in v0.19.1

func (in *PodLogStream) NewList() runtime.Object

func (*PodLogStream) Validate added in v0.19.1

func (in *PodLogStream) Validate(ctx context.Context) field.ErrorList

type PodLogStreamList added in v0.19.1

type PodLogStreamList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []PodLogStream `json:"items"`
}

PodLogStreamList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*PodLogStreamList) DeepCopy added in v0.19.1

func (in *PodLogStreamList) DeepCopy() *PodLogStreamList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLogStreamList.

func (*PodLogStreamList) DeepCopyInto added in v0.19.1

func (in *PodLogStreamList) DeepCopyInto(out *PodLogStreamList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PodLogStreamList) DeepCopyObject added in v0.19.1

func (in *PodLogStreamList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PodLogStreamList) GetListMeta added in v0.19.1

func (in *PodLogStreamList) GetListMeta() *metav1.ListMeta

type PodLogStreamSpec added in v0.19.1

type PodLogStreamSpec struct {
	// The name of the pod to watch. Required.
	Pod string `json:"pod,omitempty"`

	// The namespace of the pod to watch. Defaults to the kubecontext default namespace.
	//
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// An RFC3339 timestamp from which to show logs. If this value
	// precedes the time a pod was started, only logs since the pod start will be returned.
	// If this value is in the future, no logs will be returned.
	//
	// Translates directly to the underlying PodLogOptions.
	//
	// +optional
	SinceTime *metav1.Time `json:"sinceTime,omitempty"`

	// The names of containers to include in the stream.
	//
	// If `onlyContainers` and `ignoreContainers` are not set,
	// will watch all containers in the pod.
	//
	// +optional
	OnlyContainers []string `json:"onlyContainers,omitempty"`

	// The names of containers to exclude from the stream.
	//
	// If `onlyContainers` and `ignoreContainers` are not set,
	// will watch all containers in the pod.
	//
	// +optional
	IgnoreContainers []string `json:"ignoreContainers,omitempty"`
}

PodLogStreamSpec defines the desired state of PodLogStream

Translated into a PodLog query to the current Kubernetes cluster: https://pkg.go.dev/k8s.io/api/core/v1#PodLogOptions

TODO(nick): Should all Kubernetes types have an object that describes which Kubernetes context to use?

func (*PodLogStreamSpec) DeepCopy added in v0.19.1

func (in *PodLogStreamSpec) DeepCopy() *PodLogStreamSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLogStreamSpec.

func (*PodLogStreamSpec) DeepCopyInto added in v0.19.1

func (in *PodLogStreamSpec) DeepCopyInto(out *PodLogStreamSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PodLogStreamStatus added in v0.19.1

type PodLogStreamStatus struct {
	// A list of containers being watched.
	//
	// +optional
	ContainerStatuses []ContainerLogStreamStatus `json:"containerStatuses,omitempty"`
}

PodLogStreamStatus defines the observed state of PodLogStream

TODO(nick): rewrite this status field, i don't think this is quite right.

func (PodLogStreamStatus) CopyTo added in v0.19.1

func (*PodLogStreamStatus) DeepCopy added in v0.19.1

func (in *PodLogStreamStatus) DeepCopy() *PodLogStreamStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLogStreamStatus.

func (*PodLogStreamStatus) DeepCopyInto added in v0.19.1

func (in *PodLogStreamStatus) DeepCopyInto(out *PodLogStreamStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Probe added in v0.18.11

type Probe struct {
	// The action taken to determine the health of a container
	Handler `json:",inline" protobuf:"bytes,1,opt,name=handler"`
	// Number of seconds after the container has started before liveness probes are initiated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty" protobuf:"varint,2,opt,name=initialDelaySeconds"`
	// Number of seconds after which the probe times out.
	// Defaults to 1 second. Minimum value is 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	// +optional
	TimeoutSeconds int32 `json:"timeoutSeconds,omitempty" protobuf:"varint,3,opt,name=timeoutSeconds"`
	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1.
	// +optional
	PeriodSeconds int32 `json:"periodSeconds,omitempty" protobuf:"varint,4,opt,name=periodSeconds"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
	// +optional
	SuccessThreshold int32 `json:"successThreshold,omitempty" protobuf:"varint,5,opt,name=successThreshold"`
	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3. Minimum value is 1.
	// +optional
	FailureThreshold int32 `json:"failureThreshold,omitempty" protobuf:"varint,6,opt,name=failureThreshold"`
}

Probe describes a health check to be performed o determine whether it is alive or ready to receive traffic.

func (*Probe) DeepCopy added in v0.18.11

func (in *Probe) DeepCopy() *Probe

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe.

func (*Probe) DeepCopyInto added in v0.18.11

func (in *Probe) DeepCopyInto(out *Probe)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RestartOnSpec added in v0.19.0

type RestartOnSpec struct {
	// A list of file watches that can trigger a restart.
	FileWatches []string `json:"fileWatches"`
}

RestartOnSpec indicates the set of objects that can trigger a restart of this object.

func (*RestartOnSpec) DeepCopy added in v0.19.0

func (in *RestartOnSpec) DeepCopy() *RestartOnSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestartOnSpec.

func (*RestartOnSpec) DeepCopyInto added in v0.19.0

func (in *RestartOnSpec) DeepCopyInto(out *RestartOnSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Session added in v0.19.3

type Session struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SessionSpec   `json:"spec,omitempty"`
	Status SessionStatus `json:"status,omitempty"`
}

Session provides introspective data about the status of the Tilt process. +k8s:openapi-gen=true

func (*Session) DeepCopy added in v0.19.3

func (in *Session) DeepCopy() *Session

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Session.

func (*Session) DeepCopyInto added in v0.19.3

func (in *Session) DeepCopyInto(out *Session)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Session) DeepCopyObject added in v0.19.3

func (in *Session) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Session) GetGroupVersionResource added in v0.19.3

func (in *Session) GetGroupVersionResource() schema.GroupVersionResource

func (*Session) GetObjectMeta added in v0.19.3

func (in *Session) GetObjectMeta() *metav1.ObjectMeta

func (*Session) GetStatus added in v0.19.3

func (in *Session) GetStatus() resource.StatusSubResource

func (*Session) IsStorageVersion added in v0.19.3

func (in *Session) IsStorageVersion() bool

func (*Session) NamespaceScoped added in v0.19.3

func (in *Session) NamespaceScoped() bool

func (*Session) New added in v0.19.3

func (in *Session) New() runtime.Object

func (*Session) NewList added in v0.19.3

func (in *Session) NewList() runtime.Object

func (*Session) Validate added in v0.19.3

func (in *Session) Validate(_ context.Context) field.ErrorList

type SessionList added in v0.19.3

type SessionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []Session `json:"items"`
}

SessionList is a list of Session objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*SessionList) DeepCopy added in v0.19.3

func (in *SessionList) DeepCopy() *SessionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionList.

func (*SessionList) DeepCopyInto added in v0.19.3

func (in *SessionList) DeepCopyInto(out *SessionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SessionList) DeepCopyObject added in v0.19.3

func (in *SessionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*SessionList) GetListMeta added in v0.19.3

func (in *SessionList) GetListMeta() *metav1.ListMeta

type SessionSpec added in v0.19.3

type SessionSpec struct {
	// TiltfilePath is the path to the Tiltfile for the run. It cannot be empty.
	TiltfilePath string `json:"tiltfilePath"`
	// ExitCondition defines the criteria for Tilt to exit.
	ExitCondition ExitCondition `json:"exitCondition"`
}

SessionSpec defines the desired state of Session

func (*SessionSpec) DeepCopy added in v0.19.3

func (in *SessionSpec) DeepCopy() *SessionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionSpec.

func (*SessionSpec) DeepCopyInto added in v0.19.3

func (in *SessionSpec) DeepCopyInto(out *SessionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SessionStatus added in v0.19.3

type SessionStatus struct {
	// PID is the process identifier for this instance of Tilt.
	PID int64 `json:"pid"`
	// StartTime is when the Tilt engine was first started.
	StartTime metav1.MicroTime `json:"startTime"`
	// Targets are normalized representations of the servers/jobs managed by this Session.
	//
	// A resource from a Tiltfile might produce one or more targets. A target can also be shared across
	// multiple resources (e.g. an image referenced by multiple K8s pods).
	Targets []Target `json:"targets"`

	// Done indicates whether this Session has completed its work and is ready to exit.
	Done bool `json:"done"`
	// Error is a non-empty string when the Session is Done but encountered a failure as defined by the ExitCondition
	// from the SessionSpec.
	//
	// +optional
	Error string `json:"error,omitempty"`
}

SessionStatus defines the observed state of Session

func (SessionStatus) CopyTo added in v0.19.3

func (*SessionStatus) DeepCopy added in v0.19.3

func (in *SessionStatus) DeepCopy() *SessionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SessionStatus.

func (*SessionStatus) DeepCopyInto added in v0.19.3

func (in *SessionStatus) DeepCopyInto(out *SessionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TCPSocketAction added in v0.18.11

type TCPSocketAction struct {
	// Number or name of the port to access on the container.
	// Number must be in the range 1 to 65535.
	Port int32 `json:"port" protobuf:"bytes,1,opt,name=port"`
	// Optional: Host name to connect to, defaults to the pod IP.
	// +optional
	Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"`
}

TCPSocketAction describes an action based on opening a socket

func (*TCPSocketAction) DeepCopy added in v0.18.11

func (in *TCPSocketAction) DeepCopy() *TCPSocketAction

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPSocketAction.

func (*TCPSocketAction) DeepCopyInto added in v0.18.11

func (in *TCPSocketAction) DeepCopyInto(out *TCPSocketAction)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Target added in v0.19.3

type Target struct {
	// Name is the name of the target; this is auto-generated from Tiltfile resources.
	Name string `json:"name"`
	// Type is the execution profile for this resource.
	//
	// Job targets run to completion (e.g. a build script or database migration script).
	// Server targets run indefinitely (e.g. an HTTP server).
	Type TargetType `json:"type"`
	// Resources are one or more Tiltfile resources that this target is associated with.
	Resources []string `json:"resources"`
	// State provides information about the current status of the target.
	State TargetState `json:"state"`
}

Target is a server or job whose execution is managed as part of this Session.

func (*Target) DeepCopy added in v0.19.3

func (in *Target) DeepCopy() *Target

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.

func (*Target) DeepCopyInto added in v0.19.3

func (in *Target) DeepCopyInto(out *Target)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetState added in v0.19.3

type TargetState struct {
	// Waiting being non-nil indicates that the next execution of the target has been queued but not yet started.
	//
	// +optional
	Waiting *TargetStateWaiting `json:"waiting,omitempty"`
	// Active being non-nil indicates that the target is currently executing.
	//
	// +optional
	Active *TargetStateActive `json:"active,omitempty"`
	// Terminated being non-nil indicates that the target finished execution either normally or due to failure.
	//
	// +optional
	Terminated *TargetStateTerminated `json:"terminated,omitempty"`
}

TargetState describes the current execution status for a target.

Either EXACTLY one of Waiting, Active, or Terminated will be populated or NONE of them will be. In the event that all states are null, the target is currently inactive or disabled and should not be expected to execute.

func (*TargetState) DeepCopy added in v0.19.3

func (in *TargetState) DeepCopy() *TargetState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetState.

func (*TargetState) DeepCopyInto added in v0.19.3

func (in *TargetState) DeepCopyInto(out *TargetState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetStateActive added in v0.19.3

type TargetStateActive struct {
	// StartTime is when execution began.
	StartTime metav1.MicroTime `json:"startTime"`
	// Ready indicates that the target has passed readiness checks.
	//
	// If the target does not use or support readiness checks, this is always true.
	Ready bool `json:"ready"`
}

TargetStateActive is a target that is currently running but has not yet finished.

func (*TargetStateActive) DeepCopy added in v0.19.3

func (in *TargetStateActive) DeepCopy() *TargetStateActive

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetStateActive.

func (*TargetStateActive) DeepCopyInto added in v0.19.3

func (in *TargetStateActive) DeepCopyInto(out *TargetStateActive)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetStateTerminated added in v0.19.3

type TargetStateTerminated struct {
	// StartTime is when the target began executing.
	StartTime metav1.MicroTime `json:"startTime"`
	// FinishTime is when the target stopped executing.
	FinishTime metav1.MicroTime `json:"finishTime"`
	// Error is a non-empty string if the target encountered a failure during execution that caused it to stop.
	//
	// For targets of type TargetTypeServer, this is always populated, as the target is expected to run indefinitely,
	// and thus any termination is an error.
	//
	// +optional
	Error string `json:"error,omitempty"`
}

TargetStateTerminated is a target that finished running, either because it completed successfully or encountered an error.

func (*TargetStateTerminated) DeepCopy added in v0.19.3

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetStateTerminated.

func (*TargetStateTerminated) DeepCopyInto added in v0.19.3

func (in *TargetStateTerminated) DeepCopyInto(out *TargetStateTerminated)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetStateWaiting added in v0.19.3

type TargetStateWaiting struct {
	// WaitReason is a description for why the target is waiting and not yet active.
	//
	// This is NOT the "cause" or "trigger" for the target being invoked.
	WaitReason string `json:"waitReason"`
}

TargetStateWaiting is a target that has been enqueued for execution but has not yet started.

func (*TargetStateWaiting) DeepCopy added in v0.19.3

func (in *TargetStateWaiting) DeepCopy() *TargetStateWaiting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetStateWaiting.

func (*TargetStateWaiting) DeepCopyInto added in v0.19.3

func (in *TargetStateWaiting) DeepCopyInto(out *TargetStateWaiting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetType added in v0.19.3

type TargetType string

TargetType describes a high-level categorization about the expected execution behavior for the target.

const (
	// TargetTypeJob is a target that is expected to run to completion.
	TargetTypeJob TargetType = "job"
	// TargetTypeServer is a target that runs indefinitely.
	TargetTypeServer TargetType = "server"
)

type URIScheme added in v0.18.11

type URIScheme string

URIScheme identifies the scheme used for connection to a host for Get actions

const (
	// URISchemeHTTP means that the scheme used will be http://
	URISchemeHTTP URIScheme = "HTTP"
	// URISchemeHTTPS means that the scheme used will be https://
	URISchemeHTTPS URIScheme = "HTTPS"
)

Jump to

Keyboard shortcuts

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