v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package v1alpha1 implements the v1alpha1 apiVersion of kwok's configuration

Index

Constants

View Source
const (
	// AttachKind is the kind of the Logs.
	AttachKind = "Attach"
)
View Source
const (
	// ClusterAttachKind is the kind of the ClusterAttachKind.
	ClusterAttachKind = "ClusterAttach"
)
View Source
const (
	// ClusterExecKind is the kind of the ClusterExec.
	ClusterExecKind = "ClusterExec"
)
View Source
const (
	// ClusterLogsKind is the kind of the ClusterLogsKind.
	ClusterLogsKind = "ClusterLogs"
)
View Source
const (
	// ClusterPortForwardKind is the kind of the ClusterPortForward.
	ClusterPortForwardKind = "ClusterPortForward"
)
View Source
const (
	// ExecKind is the kind of the Exec.
	ExecKind = "Exec"
)
View Source
const (
	// LogsKind is the kind of the Logs.
	LogsKind = "Logs"
)
View Source
const (
	// MetricKind is the kind for metrics.
	MetricKind = "Metric"
)
View Source
const (
	// PortForwardKind is the kind of the PortForward.
	PortForwardKind = "PortForward"
)
View Source
const (
	// StageKind is the kind of the Stage resource.
	StageKind = "Stage"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{
		Group:   "kwok.x-k8s.io",
		Version: "v1alpha1",
	}
)

Functions

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 SetObjectDefaults_Stage

func SetObjectDefaults_Stage(in *Stage)

Types

type Attach added in v0.2.0

type Attach struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for attach
	Spec AttachSpec `json:"spec"`
}

Attach provides attach configuration for a single pod.

func (*Attach) DeepCopy added in v0.2.0

func (in *Attach) DeepCopy() *Attach

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

func (*Attach) DeepCopyInto added in v0.2.0

func (in *Attach) DeepCopyInto(out *Attach)

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

func (*Attach) DeepCopyObject added in v0.2.0

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

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

type AttachConfig added in v0.2.0

type AttachConfig struct {
	// Containers is list of container names.
	Containers []string `json:"containers"`
	// LogsFile is the file from which the attach starts
	LogsFile string `json:"logsFile"`
}

AttachConfig holds information how to attach.

func (*AttachConfig) DeepCopy added in v0.2.0

func (in *AttachConfig) DeepCopy() *AttachConfig

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

func (*AttachConfig) DeepCopyInto added in v0.2.0

func (in *AttachConfig) DeepCopyInto(out *AttachConfig)

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

type AttachSpec added in v0.2.0

type AttachSpec struct {
	// Attaches is a list of attaches to configure.
	Attaches []AttachConfig `json:"attaches"`
}

AttachSpec holds spec for attach.

func (*AttachSpec) DeepCopy added in v0.2.0

func (in *AttachSpec) DeepCopy() *AttachSpec

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

func (*AttachSpec) DeepCopyInto added in v0.2.0

func (in *AttachSpec) DeepCopyInto(out *AttachSpec)

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

type ClusterAttach added in v0.2.0

type ClusterAttach struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for cluster attach.
	Spec ClusterAttachSpec `json:"spec"`
}

ClusterAttach provides cluster-wide logging configuration

func (*ClusterAttach) DeepCopy added in v0.2.0

func (in *ClusterAttach) DeepCopy() *ClusterAttach

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

func (*ClusterAttach) DeepCopyInto added in v0.2.0

func (in *ClusterAttach) DeepCopyInto(out *ClusterAttach)

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

func (*ClusterAttach) DeepCopyObject added in v0.2.0

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

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

type ClusterAttachSpec added in v0.2.0

type ClusterAttachSpec struct {
	// Selector is a selector to filter pods to configure.
	Selector *ObjectSelector `json:"selector,omitempty"`
	// Attaches is a list of attach configurations.
	Attaches []AttachConfig `json:"attaches"`
}

ClusterAttachSpec holds spec for cluster attach.

func (*ClusterAttachSpec) DeepCopy added in v0.2.0

func (in *ClusterAttachSpec) DeepCopy() *ClusterAttachSpec

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

func (*ClusterAttachSpec) DeepCopyInto added in v0.2.0

func (in *ClusterAttachSpec) DeepCopyInto(out *ClusterAttachSpec)

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

type ClusterExec added in v0.2.0

type ClusterExec struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for cluster exec.
	Spec ClusterExecSpec `json:"spec"`
}

ClusterExec provides cluster-wide exec configuration.

func (*ClusterExec) DeepCopy added in v0.2.0

func (in *ClusterExec) DeepCopy() *ClusterExec

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

func (*ClusterExec) DeepCopyInto added in v0.2.0

func (in *ClusterExec) DeepCopyInto(out *ClusterExec)

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

func (*ClusterExec) DeepCopyObject added in v0.2.0

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

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

type ClusterExecSpec added in v0.2.0

type ClusterExecSpec struct {
	// Selector is a selector to filter pods to configure.
	Selector *ObjectSelector `json:"selector,omitempty"`
	// Execs is a list of exec to configure.
	Execs []ExecTarget `json:"execs"`
}

ClusterExecSpec holds spec for cluster exec.

func (*ClusterExecSpec) DeepCopy added in v0.2.0

func (in *ClusterExecSpec) DeepCopy() *ClusterExecSpec

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

func (*ClusterExecSpec) DeepCopyInto added in v0.2.0

func (in *ClusterExecSpec) DeepCopyInto(out *ClusterExecSpec)

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

type ClusterLogs added in v0.2.0

type ClusterLogs struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for cluster logs.
	Spec ClusterLogsSpec `json:"spec"`
}

ClusterLogs provides cluster-wide logging configuration

func (*ClusterLogs) DeepCopy added in v0.2.0

func (in *ClusterLogs) DeepCopy() *ClusterLogs

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

func (*ClusterLogs) DeepCopyInto added in v0.2.0

func (in *ClusterLogs) DeepCopyInto(out *ClusterLogs)

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

func (*ClusterLogs) DeepCopyObject added in v0.2.0

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

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

type ClusterLogsSpec added in v0.2.0

type ClusterLogsSpec struct {
	// Selector is a selector to filter pods to configure.
	Selector *ObjectSelector `json:"selector,omitempty"`
	// Forwards is a list of log configurations.
	Logs []Log `json:"logs"`
}

ClusterLogsSpec holds spec for cluster logs.

func (*ClusterLogsSpec) DeepCopy added in v0.2.0

func (in *ClusterLogsSpec) DeepCopy() *ClusterLogsSpec

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

func (*ClusterLogsSpec) DeepCopyInto added in v0.2.0

func (in *ClusterLogsSpec) DeepCopyInto(out *ClusterLogsSpec)

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

type ClusterPortForward added in v0.2.0

type ClusterPortForward struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for cluster port forward.
	Spec ClusterPortForwardSpec `json:"spec"`
}

ClusterPortForward provides cluster-wide port forward configuration.

func (*ClusterPortForward) DeepCopy added in v0.2.0

func (in *ClusterPortForward) DeepCopy() *ClusterPortForward

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

func (*ClusterPortForward) DeepCopyInto added in v0.2.0

func (in *ClusterPortForward) DeepCopyInto(out *ClusterPortForward)

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

func (*ClusterPortForward) DeepCopyObject added in v0.2.0

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

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

type ClusterPortForwardSpec added in v0.2.0

type ClusterPortForwardSpec struct {
	// Selector is a selector to filter pods to configure.
	Selector *ObjectSelector `json:"selector,omitempty"`
	// Forwards is a list of forwards to configure.
	Forwards []Forward `json:"forwards"`
}

ClusterPortForwardSpec holds spec for cluster port forward.

func (*ClusterPortForwardSpec) DeepCopy added in v0.2.0

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

func (*ClusterPortForwardSpec) DeepCopyInto added in v0.2.0

func (in *ClusterPortForwardSpec) DeepCopyInto(out *ClusterPortForwardSpec)

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

type EnvVar added in v0.2.0

type EnvVar struct {
	// Name of the environment variable.
	Name string `json:"name"`
	// Value of the environment variable.
	Value string `json:"value,omitempty"`
}

EnvVar represents an environment variable present in a Container.

func (*EnvVar) DeepCopy added in v0.2.0

func (in *EnvVar) DeepCopy() *EnvVar

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

func (*EnvVar) DeepCopyInto added in v0.2.0

func (in *EnvVar) DeepCopyInto(out *EnvVar)

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

type Exec added in v0.2.0

type Exec struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for exec
	Spec ExecSpec `json:"spec"`
}

Exec provides exec configuration for a single pod.

func (*Exec) DeepCopy added in v0.2.0

func (in *Exec) DeepCopy() *Exec

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

func (*Exec) DeepCopyInto added in v0.2.0

func (in *Exec) DeepCopyInto(out *Exec)

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

func (*Exec) DeepCopyObject added in v0.2.0

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

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

type ExecSpec added in v0.2.0

type ExecSpec struct {
	// Execs is a list of execs to configure.
	Execs []ExecTarget `json:"execs"`
}

ExecSpec holds spec for exec

func (*ExecSpec) DeepCopy added in v0.2.0

func (in *ExecSpec) DeepCopy() *ExecSpec

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

func (*ExecSpec) DeepCopyInto added in v0.2.0

func (in *ExecSpec) DeepCopyInto(out *ExecSpec)

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

type ExecTarget added in v0.2.0

type ExecTarget struct {
	// Containers is a list of containers to exec.
	// if not set, all containers will be execed.
	Containers []string `json:"containers,omitempty"`
	// Local holds information how to exec to a local target.
	Local *ExecTargetLocal `json:"local,omitempty"`
}

ExecTarget holds information how to exec.

func (*ExecTarget) DeepCopy added in v0.2.0

func (in *ExecTarget) DeepCopy() *ExecTarget

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

func (*ExecTarget) DeepCopyInto added in v0.2.0

func (in *ExecTarget) DeepCopyInto(out *ExecTarget)

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

type ExecTargetLocal added in v0.2.0

type ExecTargetLocal struct {
	// WorkDir is the working directory to exec with.
	WorkDir string `json:"workDir,omitempty"`
	// Envs is a list of environment variables to exec with.
	Envs []EnvVar `json:"envs,omitempty"`
}

ExecTargetLocal holds information how to exec to a local target.

func (*ExecTargetLocal) DeepCopy added in v0.2.0

func (in *ExecTargetLocal) DeepCopy() *ExecTargetLocal

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

func (*ExecTargetLocal) DeepCopyInto added in v0.2.0

func (in *ExecTargetLocal) DeepCopyInto(out *ExecTargetLocal)

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

type ExpressionFromSource

type ExpressionFromSource struct {
	// ExpressionFrom is the expression used to get the value.
	ExpressionFrom string `json:"expressionFrom,omitempty"`
}

ExpressionFromSource represents a source for the value of a from.

func (*ExpressionFromSource) DeepCopy

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

func (*ExpressionFromSource) DeepCopyInto

func (in *ExpressionFromSource) DeepCopyInto(out *ExpressionFromSource)

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

type FinalizerItem

type FinalizerItem struct {
	// Value is the value of the finalizer.
	Value string `json:"value,omitempty"`
}

FinalizerItem describes the one of the finalizers.

func (*FinalizerItem) DeepCopy

func (in *FinalizerItem) DeepCopy() *FinalizerItem

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

func (*FinalizerItem) DeepCopyInto

func (in *FinalizerItem) DeepCopyInto(out *FinalizerItem)

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

type Forward added in v0.2.0

type Forward struct {
	// Ports is a list of ports to forward.
	// if not set, all ports will be forwarded.
	Ports []int32 `json:"ports,omitempty"`
	// Target is the target to forward to.
	Target *ForwardTarget `json:"target,omitempty"`
	// Command is the command to run to forward with stdin/stdout.
	// if set, Target will be ignored.
	Command []string `json:"command,omitempty"`
}

Forward holds information how to forward based on ports.

func (*Forward) DeepCopy added in v0.2.0

func (in *Forward) DeepCopy() *Forward

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

func (*Forward) DeepCopyInto added in v0.2.0

func (in *Forward) DeepCopyInto(out *Forward)

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

type ForwardTarget added in v0.2.0

type ForwardTarget struct {
	// Port is the port to forward to.
	Port int32 `json:"port"`
	// Address is the address to forward to.
	Address string `json:"address"`
}

ForwardTarget holds information how to forward to a target.

func (*ForwardTarget) DeepCopy added in v0.2.0

func (in *ForwardTarget) DeepCopy() *ForwardTarget

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

func (*ForwardTarget) DeepCopyInto added in v0.2.0

func (in *ForwardTarget) DeepCopyInto(out *ForwardTarget)

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

type Log added in v0.2.0

type Log struct {
	// Containers is list of container names.
	Containers []string `json:"containers"`
	// LogsFile is the file from which the log forward starts
	LogsFile string `json:"logsFile"`
	// Follow up if true
	Follow bool `json:"follow"`
}

Log holds information how to forward logs.

func (*Log) DeepCopy added in v0.2.0

func (in *Log) DeepCopy() *Log

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

func (*Log) DeepCopyInto added in v0.2.0

func (in *Log) DeepCopyInto(out *Log)

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

type Logs added in v0.2.0

type Logs struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for logs
	Spec LogsSpec `json:"spec"`
}

Logs provides logging configuration for a single pod.

func (*Logs) DeepCopy added in v0.2.0

func (in *Logs) DeepCopy() *Logs

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

func (*Logs) DeepCopyInto added in v0.2.0

func (in *Logs) DeepCopyInto(out *Logs)

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

func (*Logs) DeepCopyObject added in v0.2.0

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

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

type LogsSpec added in v0.2.0

type LogsSpec struct {
	// Logs is a list of logs to configure.
	Logs []Log `json:"logs"`
}

LogsSpec holds spec for logs.

func (*LogsSpec) DeepCopy added in v0.2.0

func (in *LogsSpec) DeepCopy() *LogsSpec

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

func (*LogsSpec) DeepCopyInto added in v0.2.0

func (in *LogsSpec) DeepCopyInto(out *LogsSpec)

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

type Metric added in v0.3.0

type Metric struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for metrics.
	Spec MetricSpec `json:"spec"`
}

Metric provides metrics configuration.

func (*Metric) DeepCopy added in v0.3.0

func (in *Metric) DeepCopy() *Metric

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

func (*Metric) DeepCopyInto added in v0.3.0

func (in *Metric) DeepCopyInto(out *Metric)

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

func (*Metric) DeepCopyObject added in v0.3.0

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

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

type MetricBucket added in v0.3.0

type MetricBucket struct {
	// Le is less-than or equal.
	Le float64 `json:"le"`
	// Value is a CEL expression.
	Value string `json:"value"`
	// Hidden is means that this bucket not shown in the metric.
	// but value will be calculated and cumulative into the next bucket.
	Hidden bool `json:"hidden"`
}

MetricBucket is a single bucket for a metric.

func (*MetricBucket) DeepCopy added in v0.3.0

func (in *MetricBucket) DeepCopy() *MetricBucket

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

func (*MetricBucket) DeepCopyInto added in v0.3.0

func (in *MetricBucket) DeepCopyInto(out *MetricBucket)

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

type MetricConfig added in v0.3.0

type MetricConfig struct {
	// Name is the fully-qualified name of the metric.
	Name string `json:"name"`
	// Help provides information about this metric.
	Help string `json:"help"`
	// Kind is kind of metric (ex. counter, gauge, histogram).
	Kind string `json:"kind"`
	// Labels are metric labels.
	Labels []MetricLabel `json:"labels"`
	// Value is a CEL expression.
	Value string `json:"value"`
	// Buckets is a list of buckets for a histogram metric.
	Buckets []MetricBucket `json:"buckets"`
}

MetricConfig provides metric configuration to a single metric

func (*MetricConfig) DeepCopy added in v0.3.0

func (in *MetricConfig) DeepCopy() *MetricConfig

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

func (*MetricConfig) DeepCopyInto added in v0.3.0

func (in *MetricConfig) DeepCopyInto(out *MetricConfig)

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

type MetricLabel added in v0.3.0

type MetricLabel struct {
	// Name is a label name.
	Name string `json:"name"`
	// Value is a CEL expression.
	Value string `json:"value"`
}

MetricLabel holds label name and the value of the label.

func (*MetricLabel) DeepCopy added in v0.3.0

func (in *MetricLabel) DeepCopy() *MetricLabel

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

func (*MetricLabel) DeepCopyInto added in v0.3.0

func (in *MetricLabel) DeepCopyInto(out *MetricLabel)

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

type MetricSpec added in v0.3.0

type MetricSpec struct {
	// Path is a restful service path.
	Path string `json:"path"`
	// Metrics is a list of metric configurations.
	Metrics []MetricConfig `json:"metrics"`
}

MetricSpec holds spec for metrics.

func (*MetricSpec) DeepCopy added in v0.3.0

func (in *MetricSpec) DeepCopy() *MetricSpec

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

func (*MetricSpec) DeepCopyInto added in v0.3.0

func (in *MetricSpec) DeepCopyInto(out *MetricSpec)

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

type ObjectSelector added in v0.2.0

type ObjectSelector struct {
	// MatchNamespaces is a list of namespaces to match.
	// if not set, all namespaces will be matched.
	MatchNamespaces []string `json:"matchNamespaces,omitempty"`
	// MatchNames is a list of names to match.
	// if not set, all names will be matched.
	MatchNames []string `json:"matchNames,omitempty"`
}

ObjectSelector holds information how to match based on namespace and name.

func (*ObjectSelector) DeepCopy added in v0.2.0

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto added in v0.2.0

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type PortForward added in v0.2.0

type PortForward struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata"`
	// Spec holds spec for port forward.
	Spec PortForwardSpec `json:"spec"`
}

PortForward provides port forward configuration for a single pod.

func (*PortForward) DeepCopy added in v0.2.0

func (in *PortForward) DeepCopy() *PortForward

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

func (*PortForward) DeepCopyInto added in v0.2.0

func (in *PortForward) DeepCopyInto(out *PortForward)

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

func (*PortForward) DeepCopyObject added in v0.2.0

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

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

type PortForwardSpec added in v0.2.0

type PortForwardSpec struct {
	// Forwards is a list of forwards to configure.
	Forwards []Forward `json:"forwards"`
}

PortForwardSpec holds spec for port forward.

func (*PortForwardSpec) DeepCopy added in v0.2.0

func (in *PortForwardSpec) DeepCopy() *PortForwardSpec

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

func (*PortForwardSpec) DeepCopyInto added in v0.2.0

func (in *PortForwardSpec) DeepCopyInto(out *PortForwardSpec)

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

type SelectorOperator

type SelectorOperator string

SelectorOperator is a label selector operator is the set of operators that can be used in a selector requirement. +enum

const (
	// SelectorOpIn is the set inclusion operator.
	SelectorOpIn SelectorOperator = "In"
	// SelectorOpNotIn is the negated set inclusion operator.
	SelectorOpNotIn SelectorOperator = "NotIn"
	// SelectorOpExists is the existence operator.
	SelectorOpExists SelectorOperator = "Exists"
	// SelectorOpDoesNotExist is the negated existence operator.
	SelectorOpDoesNotExist SelectorOperator = "DoesNotExist"
)

The following are valid selector operators.

type SelectorRequirement

type SelectorRequirement struct {
	// The name of the scope that the selector applies to.
	Key string `json:"key"`
	// Represents a scope's relationship to a set of values.
	Operator SelectorOperator `json:"operator"`
	// An array of string values.
	// If the operator is In, NotIn, Intersection or NotIntersection, the values array must be non-empty.
	// If the operator is Exists or DoesNotExist, the values array must be empty.
	Values []string `json:"values,omitempty"`
}

SelectorRequirement is a resource selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func (*SelectorRequirement) DeepCopy

func (in *SelectorRequirement) DeepCopy() *SelectorRequirement

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

func (*SelectorRequirement) DeepCopyInto

func (in *SelectorRequirement) DeepCopyInto(out *SelectorRequirement)

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

type Stage

type Stage struct {
	//+k8s:conversion-gen=false
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec holds information about the request being evaluated.
	Spec StageSpec `json:"spec,omitempty"`
}

Stage is an API that describes the staged change of a resource

func (*Stage) DeepCopy

func (in *Stage) DeepCopy() *Stage

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

func (*Stage) DeepCopyInto

func (in *Stage) DeepCopyInto(out *Stage)

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

func (*Stage) DeepCopyObject

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

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

type StageDelay

type StageDelay struct {
	// DurationMilliseconds indicates the stage delay time.
	// If JitterDurationMilliseconds is less than DurationMilliseconds, then JitterDurationMilliseconds is used.
	DurationMilliseconds *int64 `json:"durationMilliseconds,omitempty"`
	// DurationFrom is the expression used to get the value.
	// If it is a time.Time type, getting the value will be minus time.Now() to get DurationMilliseconds
	// If it is a string type, the value get will be parsed by time.ParseDuration.
	DurationFrom *ExpressionFromSource `json:"durationFrom,omitempty"`

	// JitterDurationMilliseconds is the duration plus an additional amount chosen uniformly
	// at random from the interval between DurationMilliseconds and JitterDurationMilliseconds.
	JitterDurationMilliseconds *int64 `json:"jitterDurationMilliseconds,omitempty"`
	// JitterDurationFrom is the expression used to get the value.
	// If it is a time.Time type, getting the value will be minus time.Now() to get JitterDurationMilliseconds
	// If it is a string type, the value get will be parsed by time.ParseDuration.
	JitterDurationFrom *ExpressionFromSource `json:"jitterDurationFrom,omitempty"`
}

StageDelay describes the delay time before going to next.

func (*StageDelay) DeepCopy

func (in *StageDelay) DeepCopy() *StageDelay

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

func (*StageDelay) DeepCopyInto

func (in *StageDelay) DeepCopyInto(out *StageDelay)

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

type StageEvent

type StageEvent struct {
	// Type is the type of this event (Normal, Warning), It is machine-readable.
	Type string `json:"type,omitempty"`
	// Reason is why the action was taken. It is human-readable.
	Reason string `json:"reason,omitempty"`
	// Message is a human-readable description of the status of this operation.
	Message string `json:"message,omitempty"`
}

StageEvent describes one event in the Kubernetes.

func (*StageEvent) DeepCopy

func (in *StageEvent) DeepCopy() *StageEvent

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

func (*StageEvent) DeepCopyInto

func (in *StageEvent) DeepCopyInto(out *StageEvent)

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

type StageFinalizers

type StageFinalizers struct {
	// Add means that the Finalizers will be added to the resource.
	Add []FinalizerItem `json:"add,omitempty"`
	// Remove means that the Finalizers will be removed from the resource.
	Remove []FinalizerItem `json:"remove,omitempty"`
	// Empty means that the Finalizers for that resource will be emptied.
	Empty bool `json:"empty,omitempty"`
}

StageFinalizers describes the modifications in the finalizers of a resource.

func (*StageFinalizers) DeepCopy

func (in *StageFinalizers) DeepCopy() *StageFinalizers

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

func (*StageFinalizers) DeepCopyInto

func (in *StageFinalizers) DeepCopyInto(out *StageFinalizers)

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

type StageNext

type StageNext struct {
	// Event means that an event will be sent.
	Event *StageEvent `json:"event,omitempty"`
	// Finalizers means that finalizers will be modified.
	Finalizers *StageFinalizers `json:"finalizers,omitempty"`
	// Delete means that the resource will be deleted if true.
	Delete bool `json:"delete,omitempty"`
	// StatusTemplate indicates the template for modifying the status of the resource in the next.
	StatusTemplate string `json:"statusTemplate,omitempty"`
}

StageNext describes a stage will be moved to.

func (*StageNext) DeepCopy

func (in *StageNext) DeepCopy() *StageNext

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

func (*StageNext) DeepCopyInto

func (in *StageNext) DeepCopyInto(out *StageNext)

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

type StageResourceRef

type StageResourceRef struct {
	// APIGroup of the referent.
	// +default="v1"
	APIGroup string `json:"apiGroup,omitempty"`
	// Kind of the referent.
	Kind string `json:"kind"`
}

StageResourceRef specifies the kind and version of the resource.

func (*StageResourceRef) DeepCopy

func (in *StageResourceRef) DeepCopy() *StageResourceRef

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

func (*StageResourceRef) DeepCopyInto

func (in *StageResourceRef) DeepCopyInto(out *StageResourceRef)

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

type StageSelector

type StageSelector struct {
	// MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is ".metadata.labels[key]", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
	// MatchAnnotations is a map of {key,value} pairs. A single {key,value} in the matchAnnotations
	// map is equivalent to an element of matchExpressions, whose key field is ".metadata.annotations[key]", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	MatchAnnotations map[string]string `json:"matchAnnotations,omitempty"`
	// MatchExpressions is a list of label selector requirements. The requirements are ANDed.
	MatchExpressions []SelectorRequirement `json:"matchExpressions,omitempty"`
}

StageSelector is a resource selector. the result of matchLabels and matchAnnotations and matchExpressions are ANDed. An empty resource selector matches all objects. A null resource selector matches no objects.

func (*StageSelector) DeepCopy

func (in *StageSelector) DeepCopy() *StageSelector

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

func (*StageSelector) DeepCopyInto

func (in *StageSelector) DeepCopyInto(out *StageSelector)

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

type StageSpec

type StageSpec struct {
	// ResourceRef specifies the Kind and version of the resource.
	ResourceRef StageResourceRef `json:"resourceRef"`
	// Selector specifies the stags will be applied to the selected resource.
	Selector *StageSelector `json:"selector,omitempty"`
	// Weight means the current stage, in case of multiple stages,
	// a random stage will be matched as the next stage based on the weight.
	// +default=0
	Weight int `json:"weight,omitempty"`
	// Delay means there is a delay in this stage.
	Delay *StageDelay `json:"delay,omitempty"`
	// Next indicates that this stage will be moved to.
	Next StageNext `json:"next"`
	// ImmediateNextStage means that the next stage of matching is performed immediately, without waiting for the Apiserver to push.
	ImmediateNextStage *bool `json:"immediateNextStage,omitempty"`
}

StageSpec defines the specification for Stage.

func (*StageSpec) DeepCopy

func (in *StageSpec) DeepCopy() *StageSpec

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

func (*StageSpec) DeepCopyInto

func (in *StageSpec) DeepCopyInto(out *StageSpec)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳