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
- Variables
- func AllResourceLists() []runtime.Object
- func AllResourceObjects() []resource.Object
- func NewScheme() *runtime.Scheme
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Cmd
- func (in *Cmd) DeepCopy() *Cmd
- func (in *Cmd) DeepCopyInto(out *Cmd)
- func (in *Cmd) DeepCopyObject() runtime.Object
- func (in *Cmd) GetGroupVersionResource() schema.GroupVersionResource
- func (in *Cmd) GetObjectMeta() *metav1.ObjectMeta
- func (in *Cmd) GetStatus() resource.StatusSubResource
- func (in *Cmd) IsStorageVersion() bool
- func (in *Cmd) NamespaceScoped() bool
- func (in *Cmd) New() runtime.Object
- func (in *Cmd) NewList() runtime.Object
- func (in *Cmd) Validate(ctx context.Context) field.ErrorList
- type CmdList
- type CmdSpec
- type CmdStateRunning
- type CmdStateTerminated
- type CmdStateWaiting
- type CmdStatus
- type ExecAction
- type FileEvent
- type FileWatch
- func (in *FileWatch) DeepCopy() *FileWatch
- func (in *FileWatch) DeepCopyInto(out *FileWatch)
- func (in *FileWatch) DeepCopyObject() runtime.Object
- func (in *FileWatch) GetGroupVersionResource() schema.GroupVersionResource
- func (in *FileWatch) GetObjectMeta() *metav1.ObjectMeta
- func (in *FileWatch) GetStatus() resource.StatusSubResource
- func (in *FileWatch) IsStorageVersion() bool
- func (in *FileWatch) NamespaceScoped() bool
- func (in *FileWatch) New() runtime.Object
- func (in *FileWatch) NewList() runtime.Object
- func (in *FileWatch) Validate(_ context.Context) field.ErrorList
- type FileWatchList
- type FileWatchSpec
- type FileWatchStatus
- type HTTPGetAction
- type HTTPHeader
- type Handler
- type IgnoreDef
- type PodLogStream
- func (in *PodLogStream) DeepCopy() *PodLogStream
- func (in *PodLogStream) DeepCopyInto(out *PodLogStream)
- func (in *PodLogStream) DeepCopyObject() runtime.Object
- func (in *PodLogStream) GetGroupVersionResource() schema.GroupVersionResource
- func (in *PodLogStream) GetObjectMeta() *metav1.ObjectMeta
- func (in *PodLogStream) GetStatus() resource.StatusSubResource
- func (in *PodLogStream) IsStorageVersion() bool
- func (in *PodLogStream) NamespaceScoped() bool
- func (in *PodLogStream) New() runtime.Object
- func (in *PodLogStream) NewList() runtime.Object
- func (in *PodLogStream) Validate(ctx context.Context) field.ErrorList
- type PodLogStreamList
- type PodLogStreamSpec
- type PodLogStreamStatus
- type Probe
- type RestartOnSpec
- type TCPSocketAction
- type URIScheme
Constants ¶
const AnnotationManifest = "tilt.dev/resource"
AnnotationManifest identifies which manifest an object's logs should appear under.
const AnnotationSpanID = "tilt.dev/log-span-id"
An annotation on any object that identifies which span id its logs should appear under.
const AnnotationTargetID = "tilt.dev/target-id"
AnnotationTargetID is an internal Tilt target ID used for the build graph.
const GroupName = "tilt.dev"
GroupName is the group name used in this package
const Version = "v1alpha1"
Variables ¶
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 }
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func AllResourceLists ¶
func AllResourceObjects ¶
func RegisterDefaults ¶
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cmd.
func (*Cmd) DeepCopyInto ¶ added in v0.18.11
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
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 (*Cmd) NamespaceScoped ¶ added in v0.18.11
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdList.
func (*CmdList) DeepCopyInto ¶ added in v0.18.11
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
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CmdList) GetListMeta ¶ added in v0.18.11
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdSpec.
func (*CmdSpec) DeepCopyInto ¶ added in v0.18.11
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 (in CmdStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
func (*CmdStatus) DeepCopy ¶ added in v0.18.11
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CmdStatus.
func (*CmdStatus) DeepCopyInto ¶ added in v0.18.11
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 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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileEvent.
func (*FileEvent) DeepCopyInto ¶ added in v0.18.12
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileWatch.
func (*FileWatch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FileWatch) DeepCopyObject ¶
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 (*FileWatch) NamespaceScoped ¶
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 (in FileWatchStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Handler.
func (*Handler) DeepCopyInto ¶ added in v0.18.11
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IgnoreDef.
func (*IgnoreDef) DeepCopyInto ¶ added in v0.18.12
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
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 { // True when the stream is set up and streaming logs properly. Active bool `json:"active,omitempty"` // The last error message encountered while streaming. // // Empty when the stream is active and healthy. Error string `json:"error,omitempty"` }
PodLogStreamStatus defines the observed state of PodLogStream
func (PodLogStreamStatus) CopyTo ¶ added in v0.19.1
func (in PodLogStreamStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
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
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Probe.
func (*Probe) DeepCopyInto ¶ added in v0.18.11
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 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.