v1alpha1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 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 (
	// ClusterResourceUsageKind is the kind for ClusterResourceUsage.
	ClusterResourceUsageKind = "ClusterResourceUsage"
)
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 (
	// ResourceUsageKind is the kind for resource usage.
	ResourceUsageKind = "ResourceUsage"
)
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",
	}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

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 Resource added in v0.4.0

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetObjectDefaults_Metric added in v0.4.0

func SetObjectDefaults_Metric(in *Metric)

func SetObjectDefaults_MetricList added in v0.4.0

func SetObjectDefaults_MetricList(in *MetricList)

func SetObjectDefaults_Stage

func SetObjectDefaults_Stage(in *Stage)

func SetObjectDefaults_StageList added in v0.4.0

func SetObjectDefaults_StageList(in *StageList)

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"`
	// Status holds status for attach
	//+k8s:conversion-gen=false
	Status AttachStatus `json:"status,omitempty"`
}

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,omitempty"`
	// LogsFile is the file from which the attach starts
	LogsFile *string `json:"logsFile,omitempty"`
}

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 AttachList added in v0.4.0

type AttachList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Attach `json:"items"`
}

AttachList contains a list of Attach

func (*AttachList) DeepCopy added in v0.4.0

func (in *AttachList) DeepCopy() *AttachList

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

func (*AttachList) DeepCopyInto added in v0.4.0

func (in *AttachList) DeepCopyInto(out *AttachList)

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

func (*AttachList) DeepCopyObject added in v0.4.0

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

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

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 AttachStatus added in v0.4.0

type AttachStatus struct {
	// Conditions holds conditions for attach
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

AttachStatus holds status for attach

func (*AttachStatus) DeepCopy added in v0.4.0

func (in *AttachStatus) DeepCopy() *AttachStatus

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

func (*AttachStatus) DeepCopyInto added in v0.4.0

func (in *AttachStatus) DeepCopyInto(out *AttachStatus)

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"`
	// Status holds status for cluster attach
	//+k8s:conversion-gen=false
	Status ClusterAttachStatus `json:"status,omitempty"`
}

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 ClusterAttachList added in v0.4.0

type ClusterAttachList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterAttach `json:"items"`
}

ClusterAttachList contains a list of ClusterAttach

func (*ClusterAttachList) DeepCopy added in v0.4.0

func (in *ClusterAttachList) DeepCopy() *ClusterAttachList

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

func (*ClusterAttachList) DeepCopyInto added in v0.4.0

func (in *ClusterAttachList) DeepCopyInto(out *ClusterAttachList)

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

func (*ClusterAttachList) DeepCopyObject added in v0.4.0

func (in *ClusterAttachList) 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 ClusterAttachStatus added in v0.4.0

type ClusterAttachStatus struct {
	// Conditions holds conditions for cluster attach.
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterAttachStatus holds status for cluster attach

func (*ClusterAttachStatus) DeepCopy added in v0.4.0

func (in *ClusterAttachStatus) DeepCopy() *ClusterAttachStatus

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

func (*ClusterAttachStatus) DeepCopyInto added in v0.4.0

func (in *ClusterAttachStatus) DeepCopyInto(out *ClusterAttachStatus)

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"`
	// Status holds status for cluster exec
	//+k8s:conversion-gen=false
	Status ClusterExecStatus `json:"status,omitempty"`
}

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 ClusterExecList added in v0.4.0

type ClusterExecList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterExec `json:"items"`
}

ClusterExecList contains a list of ClusterExec

func (*ClusterExecList) DeepCopy added in v0.4.0

func (in *ClusterExecList) DeepCopy() *ClusterExecList

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

func (*ClusterExecList) DeepCopyInto added in v0.4.0

func (in *ClusterExecList) DeepCopyInto(out *ClusterExecList)

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

func (*ClusterExecList) DeepCopyObject added in v0.4.0

func (in *ClusterExecList) 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 ClusterExecStatus added in v0.4.0

type ClusterExecStatus struct {
	// Conditions holds conditions for cluster exec.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterExecStatus holds status for cluster exec

func (*ClusterExecStatus) DeepCopy added in v0.4.0

func (in *ClusterExecStatus) DeepCopy() *ClusterExecStatus

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

func (*ClusterExecStatus) DeepCopyInto added in v0.4.0

func (in *ClusterExecStatus) DeepCopyInto(out *ClusterExecStatus)

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"`
	// Status holds status for cluster logs
	//+k8s:conversion-gen=false
	Status ClusterLogsStatus `json:"status,omitempty"`
}

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 ClusterLogsList added in v0.4.0

type ClusterLogsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterLogs `json:"items"`
}

ClusterLogsList contains a list of ClusterLogs

func (*ClusterLogsList) DeepCopy added in v0.4.0

func (in *ClusterLogsList) DeepCopy() *ClusterLogsList

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

func (*ClusterLogsList) DeepCopyInto added in v0.4.0

func (in *ClusterLogsList) DeepCopyInto(out *ClusterLogsList)

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

func (*ClusterLogsList) DeepCopyObject added in v0.4.0

func (in *ClusterLogsList) 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 ClusterLogsStatus added in v0.4.0

type ClusterLogsStatus struct {
	// Conditions holds conditions for cluster logs.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterLogsStatus holds status for cluster logs

func (*ClusterLogsStatus) DeepCopy added in v0.4.0

func (in *ClusterLogsStatus) DeepCopy() *ClusterLogsStatus

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

func (*ClusterLogsStatus) DeepCopyInto added in v0.4.0

func (in *ClusterLogsStatus) DeepCopyInto(out *ClusterLogsStatus)

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"`
	// Status holds status for cluster port forward
	//+k8s:conversion-gen=false
	Status ClusterPortForwardStatus `json:"status,omitempty"`
}

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 ClusterPortForwardList added in v0.4.0

type ClusterPortForwardList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterPortForward `json:"items"`
}

ClusterPortForwardList contains a list of ClusterPortForward

func (*ClusterPortForwardList) DeepCopy added in v0.4.0

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

func (*ClusterPortForwardList) DeepCopyInto added in v0.4.0

func (in *ClusterPortForwardList) DeepCopyInto(out *ClusterPortForwardList)

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

func (*ClusterPortForwardList) DeepCopyObject added in v0.4.0

func (in *ClusterPortForwardList) 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 ClusterPortForwardStatus added in v0.4.0

type ClusterPortForwardStatus struct {
	// Conditions holds conditions for cluster port forward.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterPortForwardStatus holds status for cluster port forward

func (*ClusterPortForwardStatus) DeepCopy added in v0.4.0

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

func (*ClusterPortForwardStatus) DeepCopyInto added in v0.4.0

func (in *ClusterPortForwardStatus) DeepCopyInto(out *ClusterPortForwardStatus)

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

type ClusterResourceUsage added in v0.5.0

type ClusterResourceUsage 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 resource usage.
	Spec ClusterResourceUsageSpec `json:"spec"`
	// Status holds status for cluster resource usage
	//+k8s:conversion-gen=false
	Status ClusterResourceUsageStatus `json:"status,omitempty"`
}

ClusterResourceUsage provides cluster-wide resource usage.

func (*ClusterResourceUsage) DeepCopy added in v0.5.0

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

func (*ClusterResourceUsage) DeepCopyInto added in v0.5.0

func (in *ClusterResourceUsage) DeepCopyInto(out *ClusterResourceUsage)

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

func (*ClusterResourceUsage) DeepCopyObject added in v0.5.0

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

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

type ClusterResourceUsageList added in v0.5.0

type ClusterResourceUsageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ClusterResourceUsage `json:"items"`
}

ClusterResourceUsageList is a list of ClusterResourceUsage.

func (*ClusterResourceUsageList) DeepCopy added in v0.5.0

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

func (*ClusterResourceUsageList) DeepCopyInto added in v0.5.0

func (in *ClusterResourceUsageList) DeepCopyInto(out *ClusterResourceUsageList)

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

func (*ClusterResourceUsageList) DeepCopyObject added in v0.5.0

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

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

type ClusterResourceUsageSpec added in v0.5.0

type ClusterResourceUsageSpec struct {
	// Selector is a selector to filter pods to configure.
	Selector *ObjectSelector `json:"selector,omitempty"`
	// Usages is a list of resource usage for the pod.
	Usages []ResourceUsageContainer `json:"usages,omitempty"`
}

ClusterResourceUsageSpec holds spec for cluster resource usage.

func (*ClusterResourceUsageSpec) DeepCopy added in v0.5.0

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

func (*ClusterResourceUsageSpec) DeepCopyInto added in v0.5.0

func (in *ClusterResourceUsageSpec) DeepCopyInto(out *ClusterResourceUsageSpec)

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

type ClusterResourceUsageStatus added in v0.5.0

type ClusterResourceUsageStatus struct {
	// Conditions holds conditions for cluster resource usage
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ClusterResourceUsageStatus holds status for cluster resource usage

func (*ClusterResourceUsageStatus) DeepCopy added in v0.5.0

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

func (*ClusterResourceUsageStatus) DeepCopyInto added in v0.5.0

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

type Condition added in v0.4.0

type Condition struct {
	// Type of condition in CamelCase or in foo.example.com/CamelCase.
	// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
	// useful (see .node.status.conditions), the ability to deconflict is important.
	// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
	// +kubebuilder:validation:MaxLength=316
	Type string `json:"type"`
	// Status of the condition
	// +kubebuilder:validation:Required
	Status ConditionStatus `json:"status"`
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed.  If that is not known, then using the time when the API field changed is acceptable.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`
	// Reason contains a programmatic identifier indicating the reason for the condition's last transition.
	// Producers of specific condition types may define expected values and meanings for this field,
	// and whether the values are considered a guaranteed API.
	// The value should be a CamelCase string.
	// This field may not be empty.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=1024
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`
	Reason string `json:"reason"`
	// Message is a human readable message indicating details about the transition.
	// This may be an empty string.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=32768
	Message string `json:"message"`
}

Condition contains details for one aspect of the current state of this API Resource.

func (*Condition) DeepCopy added in v0.4.0

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto added in v0.4.0

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionStatus added in v0.4.0

type ConditionStatus string

ConditionStatus is the status of a condition. +enum

const (
	// ConditionTrue means a resource is in the condition.
	ConditionTrue ConditionStatus = "True"
	// ConditionFalse means a resource is not in the condition.
	ConditionFalse ConditionStatus = "False"
	// ConditionUnknown means kubernetes can't decide if a resource is in the condition or not.
	ConditionUnknown ConditionStatus = "Unknown"
)

type Dimension added in v0.4.0

type Dimension string

Dimension is a dimension of the metric. +enum

const (
	// DimensionNode is a node dimension.
	DimensionNode Dimension = "node"
	// DimensionPod is a pod dimension.
	DimensionPod Dimension = "pod"
	// DimensionContainer is a container dimension.
	DimensionContainer Dimension = "container"
)

type EnvVar added in v0.2.0

type EnvVar struct {
	// Name of the environment variable.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	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"`
	// Status holds status for exec
	//+k8s:conversion-gen=false
	Status ExecStatus `json:"status,omitempty"`
}

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 ExecList added in v0.4.0

type ExecList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Exec `json:"items"`
}

ExecList contains a list of Exec

func (*ExecList) DeepCopy added in v0.4.0

func (in *ExecList) DeepCopy() *ExecList

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

func (*ExecList) DeepCopyInto added in v0.4.0

func (in *ExecList) DeepCopyInto(out *ExecList)

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

func (*ExecList) DeepCopyObject added in v0.4.0

func (in *ExecList) 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 ExecStatus added in v0.4.0

type ExecStatus struct {
	// Conditions holds conditions for exec
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ExecStatus holds status for exec

func (*ExecStatus) DeepCopy added in v0.4.0

func (in *ExecStatus) DeepCopy() *ExecStatus

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

func (*ExecStatus) DeepCopyInto added in v0.4.0

func (in *ExecStatus) DeepCopyInto(out *ExecStatus)

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"`
	// SecurityContext is the user context to exec.
	SecurityContext *SecurityContext `json:"securityContext,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.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=65535
	Port int32 `json:"port"`
	// Address is the address to forward to.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	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 ImpersonationConfig added in v0.5.0

type ImpersonationConfig struct {
	// Username the target username for the client to impersonate
	Username string `json:"username"`
}

ImpersonationConfig describes the configuration for impersonating clients

func (*ImpersonationConfig) DeepCopy added in v0.5.0

func (in *ImpersonationConfig) DeepCopy() *ImpersonationConfig

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

func (*ImpersonationConfig) DeepCopyInto added in v0.5.0

func (in *ImpersonationConfig) DeepCopyInto(out *ImpersonationConfig)

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

type Kind added in v0.4.0

type Kind string

Kind is kind of metric configuration. +enum

const (
	// KindCounter is a counter metric.
	KindCounter Kind = "counter"
	// KindGauge is a gauge metric.
	KindGauge Kind = "gauge"
	// KindHistogram is a histogram metric.
	KindHistogram Kind = "histogram"
)

type Log added in v0.2.0

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

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"`
	// Status holds status for logs
	//+k8s:conversion-gen=false
	Status LogsStatus `json:"status,omitempty"`
}

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 LogsList added in v0.4.0

type LogsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Logs `json:"items"`
}

LogsList contains a list of Logs

func (*LogsList) DeepCopy added in v0.4.0

func (in *LogsList) DeepCopy() *LogsList

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

func (*LogsList) DeepCopyInto added in v0.4.0

func (in *LogsList) DeepCopyInto(out *LogsList)

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

func (*LogsList) DeepCopyObject added in v0.4.0

func (in *LogsList) 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 LogsStatus added in v0.4.0

type LogsStatus struct {
	// Conditions holds conditions for logs
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

LogsStatus holds status for logs

func (*LogsStatus) DeepCopy added in v0.4.0

func (in *LogsStatus) DeepCopy() *LogsStatus

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

func (*LogsStatus) DeepCopyInto added in v0.4.0

func (in *LogsStatus) DeepCopyInto(out *LogsStatus)

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"`
	// Status holds status for metrics
	//+k8s:conversion-gen=false
	Status MetricStatus `json:"status,omitempty"`
}

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.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum=0
	Le float64 `json:"le"`
	// Value is a CEL expression.
	// +kubebuilder:validation:Required
	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,omitempty"`
}

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.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// Help provides information about this metric.
	Help string `json:"help,omitempty"`
	// Kind is kind of metric
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=counter;gauge;histogram
	Kind Kind `json:"kind"`
	// Labels are metric labels.
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=name
	Labels []MetricLabel `json:"labels,omitempty"`
	// Value is a CEL expression.
	Value string `json:"value,omitempty"`
	// Buckets is a list of buckets for a histogram metric.
	// +patchMergeKey=le
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=le
	Buckets []MetricBucket `json:"buckets,omitempty"`
	// Dimension is a dimension of the metric.
	// +default="node"
	Dimension Dimension `json:"dimension,omitempty"`
}

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.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
	// Value is a CEL expression.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	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 MetricList added in v0.4.0

type MetricList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Metric `json:"items"`
}

MetricList contains a list of Metric

func (*MetricList) DeepCopy added in v0.4.0

func (in *MetricList) DeepCopy() *MetricList

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

func (*MetricList) DeepCopyInto added in v0.4.0

func (in *MetricList) DeepCopyInto(out *MetricList)

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

func (*MetricList) DeepCopyObject added in v0.4.0

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

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

type MetricSpec added in v0.3.0

type MetricSpec struct {
	// Path is a restful service path.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	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 MetricStatus added in v0.4.0

type MetricStatus struct {
	// Conditions holds conditions for metrics.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

MetricStatus holds status for metrics

func (*MetricStatus) DeepCopy added in v0.4.0

func (in *MetricStatus) DeepCopy() *MetricStatus

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

func (*MetricStatus) DeepCopyInto added in v0.4.0

func (in *MetricStatus) DeepCopyInto(out *MetricStatus)

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"`
	// Status holds status for port forward
	//+k8s:conversion-gen=false
	Status PortForwardStatus `json:"status,omitempty"`
}

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 PortForwardList added in v0.4.0

type PortForwardList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PortForward `json:"items"`
}

PortForwardList contains a list of PortForward

func (*PortForwardList) DeepCopy added in v0.4.0

func (in *PortForwardList) DeepCopy() *PortForwardList

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

func (*PortForwardList) DeepCopyInto added in v0.4.0

func (in *PortForwardList) DeepCopyInto(out *PortForwardList)

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

func (*PortForwardList) DeepCopyObject added in v0.4.0

func (in *PortForwardList) 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 PortForwardStatus added in v0.4.0

type PortForwardStatus struct {
	// Conditions holds conditions for port forward
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

PortForwardStatus holds status for port forward

func (*PortForwardStatus) DeepCopy added in v0.4.0

func (in *PortForwardStatus) DeepCopy() *PortForwardStatus

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

func (*PortForwardStatus) DeepCopyInto added in v0.4.0

func (in *PortForwardStatus) DeepCopyInto(out *PortForwardStatus)

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

type ResourceUsage added in v0.5.0

type ResourceUsage 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 resource usage.
	Spec ResourceUsageSpec `json:"spec"`
	// Status holds status for resource usage
	//+k8s:conversion-gen=false
	Status ResourceUsageStatus `json:"status,omitempty"`
}

ResourceUsage provides resource usage for a single pod.

func (*ResourceUsage) DeepCopy added in v0.5.0

func (in *ResourceUsage) DeepCopy() *ResourceUsage

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

func (*ResourceUsage) DeepCopyInto added in v0.5.0

func (in *ResourceUsage) DeepCopyInto(out *ResourceUsage)

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

func (*ResourceUsage) DeepCopyObject added in v0.5.0

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

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

type ResourceUsageContainer added in v0.5.0

type ResourceUsageContainer struct {
	// Containers is list of container names.
	Containers []string `json:"containers,omitempty"`
	// Usage is a list of resource usage for the container.
	Usage map[string]ResourceUsageValue `json:"usage,omitempty"`
}

ResourceUsageContainer holds spec for resource usage container.

func (*ResourceUsageContainer) DeepCopy added in v0.5.0

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

func (*ResourceUsageContainer) DeepCopyInto added in v0.5.0

func (in *ResourceUsageContainer) DeepCopyInto(out *ResourceUsageContainer)

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

type ResourceUsageList added in v0.5.0

type ResourceUsageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []ResourceUsage `json:"items"`
}

ResourceUsageList is a list of ResourceUsage.

func (*ResourceUsageList) DeepCopy added in v0.5.0

func (in *ResourceUsageList) DeepCopy() *ResourceUsageList

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

func (*ResourceUsageList) DeepCopyInto added in v0.5.0

func (in *ResourceUsageList) DeepCopyInto(out *ResourceUsageList)

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

func (*ResourceUsageList) DeepCopyObject added in v0.5.0

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

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

type ResourceUsageSpec added in v0.5.0

type ResourceUsageSpec struct {
	// Usages is a list of resource usage for the pod.
	Usages []ResourceUsageContainer `json:"usages,omitempty"`
}

ResourceUsageSpec holds spec for resource usage.

func (*ResourceUsageSpec) DeepCopy added in v0.5.0

func (in *ResourceUsageSpec) DeepCopy() *ResourceUsageSpec

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

func (*ResourceUsageSpec) DeepCopyInto added in v0.5.0

func (in *ResourceUsageSpec) DeepCopyInto(out *ResourceUsageSpec)

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

type ResourceUsageStatus added in v0.5.0

type ResourceUsageStatus struct {
	// Conditions holds conditions for resource usage
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

ResourceUsageStatus holds status for resource usage

func (*ResourceUsageStatus) DeepCopy added in v0.5.0

func (in *ResourceUsageStatus) DeepCopy() *ResourceUsageStatus

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

func (*ResourceUsageStatus) DeepCopyInto added in v0.5.0

func (in *ResourceUsageStatus) DeepCopyInto(out *ResourceUsageStatus)

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

type ResourceUsageValue added in v0.5.0

type ResourceUsageValue struct {
	// Value is the value for resource usage.
	Value *resource.Quantity `json:"value,omitempty"`
	// Expression is the expression for resource usage.
	Expression *string `json:"expression,omitempty"`
}

ResourceUsageValue holds value for resource usage.

func (*ResourceUsageValue) DeepCopy added in v0.5.0

func (in *ResourceUsageValue) DeepCopy() *ResourceUsageValue

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

func (*ResourceUsageValue) DeepCopyInto added in v0.5.0

func (in *ResourceUsageValue) DeepCopyInto(out *ResourceUsageValue)

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

type SecurityContext added in v0.4.0

type SecurityContext struct {
	// RunAsUser is the existing uid to run exec command in container process.
	RunAsUser *int64 `json:"runAsUser,omitempty"`
	// RunAsGroup is the existing gid to run exec command in container process.
	RunAsGroup *int64 `json:"runAsGroup,omitempty"`
}

SecurityContext specifies the existing uid and gid to run exec command in container process.

func (*SecurityContext) DeepCopy added in v0.4.0

func (in *SecurityContext) DeepCopy() *SecurityContext

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

func (*SecurityContext) DeepCopyInto added in v0.4.0

func (in *SecurityContext) DeepCopyInto(out *SecurityContext)

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"`
	// Status holds status for the Stage
	//+k8s:conversion-gen=false
	Status StageStatus `json:"status,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.
	// +kubebuilder:validation:Minimum=0
	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.
	// +kubebuilder:validation:Minimum=0
	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 StageList added in v0.4.0

type StageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Stage `json:"items"`
}

StageList contains a list of Stage

func (*StageList) DeepCopy added in v0.4.0

func (in *StageList) DeepCopy() *StageList

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

func (*StageList) DeepCopyInto added in v0.4.0

func (in *StageList) DeepCopyInto(out *StageList)

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

func (*StageList) DeepCopyObject added in v0.4.0

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

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

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"`
	// Patches means that the resource will be patched.
	Patches []StagePatch `json:"patches,omitempty"`

	// StatusTemplate indicates the template for modifying the status of the resource in the next.
	// Deprecated: Use Patches instead.
	//+k8s:conversion-gen=false
	StatusTemplate string `json:"statusTemplate,omitempty"`
	// StatusSubresource indicates the name of the subresource that will be patched. The support for
	// this field is not available in Pod and Node resources.
	// +default="status"
	// +kubebuilder:default=status
	// Deprecated: Use Patches instead.
	//+k8s:conversion-gen=false
	StatusSubresource *string `json:"statusSubresource,omitempty"`
	// StatusPatchAs indicates the impersonating configuration for client when patching status.
	// In most cases this will be empty, in which case the default client service account will be used.
	// When this is not empty, a corresponding rbac change is required to grant `impersonate` privilege.
	// The support for this field is not available in Pod and Node resources.
	// Deprecated: Use Patches instead.
	//+k8s:conversion-gen=false
	StatusPatchAs *ImpersonationConfig `json:"statusPatchAs,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 StagePatch added in v0.6.0

type StagePatch struct {
	// Subresource indicates the name of the subresource that will be patched.
	Subresource string `json:"subresource,omitempty"`
	// Root indicates the root of the template calculated by the patch.
	Root string `json:"root,omitempty"`
	// Template indicates the template for modifying the resource in the next.
	Template string `json:"template,omitempty"`
	// Type indicates the type of the patch.
	// +kubebuilder:validation:Enum=json;merge;strategic
	Type *StagePatchType `json:"type,omitempty"`
	// Impersonation indicates the impersonating configuration for client when patching status.
	// In most cases this will be empty, in which case the default client service account will be used.
	// When this is not empty, a corresponding rbac change is required to grant `impersonate` privilege.
	// The support for this field is not available in Pod and Node resources.
	Impersonation *ImpersonationConfig `json:"impersonation,omitempty"`
}

StagePatch describes the patch for the resource.

func (*StagePatch) DeepCopy added in v0.6.0

func (in *StagePatch) DeepCopy() *StagePatch

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

func (*StagePatch) DeepCopyInto added in v0.6.0

func (in *StagePatch) DeepCopyInto(out *StagePatch)

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

type StagePatchType added in v0.6.0

type StagePatchType string

StagePatchType is the type of the patch.

const (
	// StagePatchTypeJSONPatch is the JSON patch type.
	StagePatchTypeJSONPatch StagePatchType = "json"
	// StagePatchTypeMergePatch is the merge patch type.
	StagePatchTypeMergePatch StagePatchType = "merge"
	// StagePatchTypeStrategicMergePatch is the strategic merge patch type.
	StagePatchTypeStrategicMergePatch StagePatchType = "strategic"
)

type StageResourceRef

type StageResourceRef struct {
	// APIGroup of the referent.
	// +default="v1"
	// +kubebuilder: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 when multiple stages share the same ResourceRef and Selector,
	// a random stage will be matched as the next stage based on the weight.
	// +default=0
	// +kubebuilder:default=0
	// +kubebuilder:validation:Minimum=0
	Weight int `json:"weight,omitempty"`
	// WeightFrom means is the expression used to get the value.
	// If it is a number type, convert to int.
	// If it is a string type, the value get will be parsed by strconv.ParseInt.
	WeightFrom *ExpressionFromSource `json:"weightFrom,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.

type StageStatus added in v0.4.0

type StageStatus struct {
	// Conditions holds conditions for the Stage.
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +listType=map
	// +listMapKey=type
	Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

StageStatus holds status for the Stage

func (*StageStatus) DeepCopy added in v0.4.0

func (in *StageStatus) DeepCopy() *StageStatus

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

func (*StageStatus) DeepCopyInto added in v0.4.0

func (in *StageStatus) DeepCopyInto(out *StageStatus)

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