internalversion

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package internal implements the internal apiVersion of kwok's configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder
)

Functions

func ConvertToV1alpha1KwokConfiguration

func ConvertToV1alpha1KwokConfiguration(in *KwokConfiguration) (*v1alpha1.KwokConfiguration, error)

func ConvertToV1alpha1KwokctlConfiguration

func ConvertToV1alpha1KwokctlConfiguration(in *KwokctlConfiguration) (*v1alpha1.KwokctlConfiguration, error)

func ConvertToV1alpha1Stage

func ConvertToV1alpha1Stage(in *Stage) (*v1alpha1.Stage, error)

func Convert_internalversion_Component_To_v1alpha1_Component

func Convert_internalversion_Component_To_v1alpha1_Component(in *Component, out *v1alpha1.Component, s conversion.Scope) error

Convert_internalversion_Component_To_v1alpha1_Component is an autogenerated conversion function.

func Convert_internalversion_Env_To_v1alpha1_Env

func Convert_internalversion_Env_To_v1alpha1_Env(in *Env, out *v1alpha1.Env, s conversion.Scope) error

Convert_internalversion_Env_To_v1alpha1_Env is an autogenerated conversion function.

func Convert_internalversion_ExpressionFromSource_To_v1alpha1_ExpressionFromSource

func Convert_internalversion_ExpressionFromSource_To_v1alpha1_ExpressionFromSource(in *ExpressionFromSource, out *v1alpha1.ExpressionFromSource, s conversion.Scope) error

Convert_internalversion_ExpressionFromSource_To_v1alpha1_ExpressionFromSource is an autogenerated conversion function.

func Convert_internalversion_FinalizerItem_To_v1alpha1_FinalizerItem

func Convert_internalversion_FinalizerItem_To_v1alpha1_FinalizerItem(in *FinalizerItem, out *v1alpha1.FinalizerItem, s conversion.Scope) error

Convert_internalversion_FinalizerItem_To_v1alpha1_FinalizerItem is an autogenerated conversion function.

func Convert_internalversion_KwokConfigurationOptions_To_v1alpha1_KwokConfigurationOptions

func Convert_internalversion_KwokConfigurationOptions_To_v1alpha1_KwokConfigurationOptions(in *KwokConfigurationOptions, out *v1alpha1.KwokConfigurationOptions, s conversion.Scope) error

Convert_internalversion_KwokConfigurationOptions_To_v1alpha1_KwokConfigurationOptions is an autogenerated conversion function.

func Convert_internalversion_KwokConfiguration_To_v1alpha1_KwokConfiguration

func Convert_internalversion_KwokConfiguration_To_v1alpha1_KwokConfiguration(in *KwokConfiguration, out *v1alpha1.KwokConfiguration, s conversion.Scope) error

Convert_internalversion_KwokConfiguration_To_v1alpha1_KwokConfiguration is an autogenerated conversion function.

func Convert_internalversion_KwokctlConfigurationOptions_To_v1alpha1_KwokctlConfigurationOptions

func Convert_internalversion_KwokctlConfigurationOptions_To_v1alpha1_KwokctlConfigurationOptions(in *KwokctlConfigurationOptions, out *v1alpha1.KwokctlConfigurationOptions, s conversion.Scope) error

Convert_internalversion_KwokctlConfigurationOptions_To_v1alpha1_KwokctlConfigurationOptions is an autogenerated conversion function.

func Convert_internalversion_KwokctlConfiguration_To_v1alpha1_KwokctlConfiguration

func Convert_internalversion_KwokctlConfiguration_To_v1alpha1_KwokctlConfiguration(in *KwokctlConfiguration, out *v1alpha1.KwokctlConfiguration, s conversion.Scope) error

Convert_internalversion_KwokctlConfiguration_To_v1alpha1_KwokctlConfiguration is an autogenerated conversion function.

func Convert_internalversion_Port_To_v1alpha1_Port

func Convert_internalversion_Port_To_v1alpha1_Port(in *Port, out *v1alpha1.Port, s conversion.Scope) error

Convert_internalversion_Port_To_v1alpha1_Port is an autogenerated conversion function.

func Convert_internalversion_SelectorRequirement_To_v1alpha1_SelectorRequirement

func Convert_internalversion_SelectorRequirement_To_v1alpha1_SelectorRequirement(in *SelectorRequirement, out *v1alpha1.SelectorRequirement, s conversion.Scope) error

Convert_internalversion_SelectorRequirement_To_v1alpha1_SelectorRequirement is an autogenerated conversion function.

func Convert_internalversion_StageDelay_To_v1alpha1_StageDelay

func Convert_internalversion_StageDelay_To_v1alpha1_StageDelay(in *StageDelay, out *v1alpha1.StageDelay, s conversion.Scope) error

Convert_internalversion_StageDelay_To_v1alpha1_StageDelay is an autogenerated conversion function.

func Convert_internalversion_StageEvent_To_v1alpha1_StageEvent

func Convert_internalversion_StageEvent_To_v1alpha1_StageEvent(in *StageEvent, out *v1alpha1.StageEvent, s conversion.Scope) error

Convert_internalversion_StageEvent_To_v1alpha1_StageEvent is an autogenerated conversion function.

func Convert_internalversion_StageFinalizers_To_v1alpha1_StageFinalizers

func Convert_internalversion_StageFinalizers_To_v1alpha1_StageFinalizers(in *StageFinalizers, out *v1alpha1.StageFinalizers, s conversion.Scope) error

Convert_internalversion_StageFinalizers_To_v1alpha1_StageFinalizers is an autogenerated conversion function.

func Convert_internalversion_StageNext_To_v1alpha1_StageNext

func Convert_internalversion_StageNext_To_v1alpha1_StageNext(in *StageNext, out *v1alpha1.StageNext, s conversion.Scope) error

Convert_internalversion_StageNext_To_v1alpha1_StageNext is an autogenerated conversion function.

func Convert_internalversion_StageResourceRef_To_v1alpha1_StageResourceRef

func Convert_internalversion_StageResourceRef_To_v1alpha1_StageResourceRef(in *StageResourceRef, out *v1alpha1.StageResourceRef, s conversion.Scope) error

Convert_internalversion_StageResourceRef_To_v1alpha1_StageResourceRef is an autogenerated conversion function.

func Convert_internalversion_StageSelector_To_v1alpha1_StageSelector

func Convert_internalversion_StageSelector_To_v1alpha1_StageSelector(in *StageSelector, out *v1alpha1.StageSelector, s conversion.Scope) error

Convert_internalversion_StageSelector_To_v1alpha1_StageSelector is an autogenerated conversion function.

func Convert_internalversion_StageSpec_To_v1alpha1_StageSpec

func Convert_internalversion_StageSpec_To_v1alpha1_StageSpec(in *StageSpec, out *v1alpha1.StageSpec, s conversion.Scope) error

Convert_internalversion_StageSpec_To_v1alpha1_StageSpec is an autogenerated conversion function.

func Convert_internalversion_Stage_To_v1alpha1_Stage

func Convert_internalversion_Stage_To_v1alpha1_Stage(in *Stage, out *v1alpha1.Stage, s conversion.Scope) error

Convert_internalversion_Stage_To_v1alpha1_Stage is an autogenerated conversion function.

func Convert_internalversion_Volume_To_v1alpha1_Volume

func Convert_internalversion_Volume_To_v1alpha1_Volume(in *Volume, out *v1alpha1.Volume, s conversion.Scope) error

Convert_internalversion_Volume_To_v1alpha1_Volume is an autogenerated conversion function.

func Convert_v1alpha1_Component_To_internalversion_Component

func Convert_v1alpha1_Component_To_internalversion_Component(in *v1alpha1.Component, out *Component, s conversion.Scope) error

Convert_v1alpha1_Component_To_internalversion_Component is an autogenerated conversion function.

func Convert_v1alpha1_Env_To_internalversion_Env

func Convert_v1alpha1_Env_To_internalversion_Env(in *v1alpha1.Env, out *Env, s conversion.Scope) error

Convert_v1alpha1_Env_To_internalversion_Env is an autogenerated conversion function.

func Convert_v1alpha1_ExpressionFromSource_To_internalversion_ExpressionFromSource

func Convert_v1alpha1_ExpressionFromSource_To_internalversion_ExpressionFromSource(in *v1alpha1.ExpressionFromSource, out *ExpressionFromSource, s conversion.Scope) error

Convert_v1alpha1_ExpressionFromSource_To_internalversion_ExpressionFromSource is an autogenerated conversion function.

func Convert_v1alpha1_FinalizerItem_To_internalversion_FinalizerItem

func Convert_v1alpha1_FinalizerItem_To_internalversion_FinalizerItem(in *v1alpha1.FinalizerItem, out *FinalizerItem, s conversion.Scope) error

Convert_v1alpha1_FinalizerItem_To_internalversion_FinalizerItem is an autogenerated conversion function.

func Convert_v1alpha1_KwokConfigurationOptions_To_internalversion_KwokConfigurationOptions

func Convert_v1alpha1_KwokConfigurationOptions_To_internalversion_KwokConfigurationOptions(in *v1alpha1.KwokConfigurationOptions, out *KwokConfigurationOptions, s conversion.Scope) error

Convert_v1alpha1_KwokConfigurationOptions_To_internalversion_KwokConfigurationOptions is an autogenerated conversion function.

func Convert_v1alpha1_KwokConfiguration_To_internalversion_KwokConfiguration

func Convert_v1alpha1_KwokConfiguration_To_internalversion_KwokConfiguration(in *v1alpha1.KwokConfiguration, out *KwokConfiguration, s conversion.Scope) error

Convert_v1alpha1_KwokConfiguration_To_internalversion_KwokConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_KwokctlConfigurationOptions_To_internalversion_KwokctlConfigurationOptions

func Convert_v1alpha1_KwokctlConfigurationOptions_To_internalversion_KwokctlConfigurationOptions(in *v1alpha1.KwokctlConfigurationOptions, out *KwokctlConfigurationOptions, s conversion.Scope) error

func Convert_v1alpha1_KwokctlConfiguration_To_internalversion_KwokctlConfiguration

func Convert_v1alpha1_KwokctlConfiguration_To_internalversion_KwokctlConfiguration(in *v1alpha1.KwokctlConfiguration, out *KwokctlConfiguration, s conversion.Scope) error

Convert_v1alpha1_KwokctlConfiguration_To_internalversion_KwokctlConfiguration is an autogenerated conversion function.

func Convert_v1alpha1_Port_To_internalversion_Port

func Convert_v1alpha1_Port_To_internalversion_Port(in *v1alpha1.Port, out *Port, s conversion.Scope) error

Convert_v1alpha1_Port_To_internalversion_Port is an autogenerated conversion function.

func Convert_v1alpha1_SelectorRequirement_To_internalversion_SelectorRequirement

func Convert_v1alpha1_SelectorRequirement_To_internalversion_SelectorRequirement(in *v1alpha1.SelectorRequirement, out *SelectorRequirement, s conversion.Scope) error

Convert_v1alpha1_SelectorRequirement_To_internalversion_SelectorRequirement is an autogenerated conversion function.

func Convert_v1alpha1_StageDelay_To_internalversion_StageDelay

func Convert_v1alpha1_StageDelay_To_internalversion_StageDelay(in *v1alpha1.StageDelay, out *StageDelay, s conversion.Scope) error

Convert_v1alpha1_StageDelay_To_internalversion_StageDelay is an autogenerated conversion function.

func Convert_v1alpha1_StageEvent_To_internalversion_StageEvent

func Convert_v1alpha1_StageEvent_To_internalversion_StageEvent(in *v1alpha1.StageEvent, out *StageEvent, s conversion.Scope) error

Convert_v1alpha1_StageEvent_To_internalversion_StageEvent is an autogenerated conversion function.

func Convert_v1alpha1_StageFinalizers_To_internalversion_StageFinalizers

func Convert_v1alpha1_StageFinalizers_To_internalversion_StageFinalizers(in *v1alpha1.StageFinalizers, out *StageFinalizers, s conversion.Scope) error

Convert_v1alpha1_StageFinalizers_To_internalversion_StageFinalizers is an autogenerated conversion function.

func Convert_v1alpha1_StageNext_To_internalversion_StageNext

func Convert_v1alpha1_StageNext_To_internalversion_StageNext(in *v1alpha1.StageNext, out *StageNext, s conversion.Scope) error

Convert_v1alpha1_StageNext_To_internalversion_StageNext is an autogenerated conversion function.

func Convert_v1alpha1_StageResourceRef_To_internalversion_StageResourceRef

func Convert_v1alpha1_StageResourceRef_To_internalversion_StageResourceRef(in *v1alpha1.StageResourceRef, out *StageResourceRef, s conversion.Scope) error

Convert_v1alpha1_StageResourceRef_To_internalversion_StageResourceRef is an autogenerated conversion function.

func Convert_v1alpha1_StageSelector_To_internalversion_StageSelector

func Convert_v1alpha1_StageSelector_To_internalversion_StageSelector(in *v1alpha1.StageSelector, out *StageSelector, s conversion.Scope) error

Convert_v1alpha1_StageSelector_To_internalversion_StageSelector is an autogenerated conversion function.

func Convert_v1alpha1_StageSpec_To_internalversion_StageSpec

func Convert_v1alpha1_StageSpec_To_internalversion_StageSpec(in *v1alpha1.StageSpec, out *StageSpec, s conversion.Scope) error

Convert_v1alpha1_StageSpec_To_internalversion_StageSpec is an autogenerated conversion function.

func Convert_v1alpha1_Stage_To_internalversion_Stage

func Convert_v1alpha1_Stage_To_internalversion_Stage(in *v1alpha1.Stage, out *Stage, s conversion.Scope) error

Convert_v1alpha1_Stage_To_internalversion_Stage is an autogenerated conversion function.

func Convert_v1alpha1_Volume_To_internalversion_Volume

func Convert_v1alpha1_Volume_To_internalversion_Volume(in *v1alpha1.Volume, out *Volume, s conversion.Scope) error

Convert_v1alpha1_Volume_To_internalversion_Volume is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type Component

type Component struct {
	// Name of the component specified as a DNS_LABEL.
	// Each component must have a unique name (DNS_LABEL).
	// Cannot be updated.
	Name string

	// Links is a set of links for the component.
	Links []string

	// Binary is the binary of the component.
	Binary string

	// Image is the image of the component.
	Image string

	// Command is Entrypoint array. Not executed within a shell. Only works with Image.
	Command []string

	// Args is Arguments to the entrypoint.
	Args []string

	// WorkDir is component's working directory.
	WorkDir string

	// Ports is list of ports to expose from the component.
	Ports []Port

	// Envs is list of environment variables to set in the component.
	Envs []Env

	// Volumes is a list of named volumes that can be mounted by containers belonging to the component.
	Volumes []Volume

	// Version is the version of the component.
	Version string
}

func (*Component) DeepCopy

func (in *Component) DeepCopy() *Component

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

func (*Component) DeepCopyInto

func (in *Component) DeepCopyInto(out *Component)

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

type Env

type Env struct {
	// Name of the environment variable.
	Name string

	// Value is using the previously defined environment variables in the component.
	Value string
}

Env represents an environment variable present in a Container.

func (*Env) DeepCopy

func (in *Env) DeepCopy() *Env

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

func (*Env) DeepCopyInto

func (in *Env) DeepCopyInto(out *Env)

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
}

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 string
}

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 KwokConfiguration

type KwokConfiguration struct {
	metav1.TypeMeta
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta
	// Options holds information about the default value.
	Options KwokConfigurationOptions
}

KwokConfiguration provides configuration for the Kwok.

func ConvertToInternalVersionKwokConfiguration

func ConvertToInternalVersionKwokConfiguration(in *v1alpha1.KwokConfiguration) (*KwokConfiguration, error)

func (*KwokConfiguration) DeepCopy

func (in *KwokConfiguration) DeepCopy() *KwokConfiguration

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

func (*KwokConfiguration) DeepCopyInto

func (in *KwokConfiguration) DeepCopyInto(out *KwokConfiguration)

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

func (*KwokConfiguration) DeepCopyObject

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

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

type KwokConfigurationOptions

type KwokConfigurationOptions struct {
	// The default IP assigned to the Pod on maintained Nodes.
	CIDR string

	// The ip of all nodes maintained by the Kwok
	NodeIP string

	// The name of all nodes maintained by the Kwok
	NodeName string

	// The port of all nodes maintained by the Kwok
	NodePort int

	// TLSCertFile is the file containing x509 Certificate
	TLSCertFile string

	// TLSPrivateKeyFile is the ile containing x509 private key
	TLSPrivateKeyFile string

	// Default option to manage (i.e., maintain heartbeat/liveness of) all Nodes or not.
	ManageAllNodes bool

	// Default annotations specified on Nodes to demand manage.
	ManageNodesWithAnnotationSelector string

	// Default labels specified on Nodes to demand manage.
	ManageNodesWithLabelSelector string

	// If a Node/Pod is on a managed Node and has this annotation status will not be modified
	DisregardStatusWithAnnotationSelector string

	// If a Node/Pod is on a managed Node and has this label status will not be modified
	DisregardStatusWithLabelSelector string

	// ServerAddress is server address of the Kwok.
	ServerAddress string

	// Experimental support for getting pod ip from CNI, for CNI-related components, Only works with Linux.
	EnableCNI bool

	// enableDebuggingHandlers enables server endpoints for log collection
	// and local running of containers and commands
	EnableDebuggingHandlers bool

	// enableContentionProfiling enables lock contention profiling, if enableDebuggingHandlers is true.
	EnableContentionProfiling bool

	// EnableProfiling enables /debug/pprof handler.
	EnableProfilingHandler bool
}

func (*KwokConfigurationOptions) DeepCopy

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

func (*KwokConfigurationOptions) DeepCopyInto

func (in *KwokConfigurationOptions) DeepCopyInto(out *KwokConfigurationOptions)

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

type KwokctlConfiguration

type KwokctlConfiguration struct {
	metav1.TypeMeta
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta
	// Options holds information about the default value.
	Options KwokctlConfigurationOptions
	// Components holds information about the components.
	Components []Component
}

KwokctlConfiguration provides configuration for the Kwokctl.

func ConvertToInternalVersionKwokctlConfiguration

func ConvertToInternalVersionKwokctlConfiguration(in *v1alpha1.KwokctlConfiguration) (*KwokctlConfiguration, error)

func (*KwokctlConfiguration) DeepCopy

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

func (*KwokctlConfiguration) DeepCopyInto

func (in *KwokctlConfiguration) DeepCopyInto(out *KwokctlConfiguration)

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

func (*KwokctlConfiguration) DeepCopyObject

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

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

type KwokctlConfigurationOptions

type KwokctlConfigurationOptions struct {

	// KubeApiserverPort is the port to expose apiserver.
	KubeApiserverPort uint32

	// Runtime is the runtime to use.
	Runtime string

	// PrometheusPort is the port to expose Prometheus metrics.
	PrometheusPort uint32

	// KwokVersion is the version of Kwok to use.
	KwokVersion string

	// KubeVersion is the version of Kubernetes to use.
	KubeVersion string

	// EtcdVersion is the version of Etcd to use.
	EtcdVersion string

	// PrometheusVersion is the version of Prometheus to use.
	PrometheusVersion string

	// DockerComposeVersion is the version of docker-compose to use.
	DockerComposeVersion string

	// KindVersion is the version of kind to use.
	KindVersion string

	// SecurePort is the apiserver port on which to serve HTTPS with authentication and authorization.
	SecurePort bool

	// QuietPull is the flag to quiet the pull.
	QuietPull bool

	// KubeSchedulerConfig is the configuration path for kube-scheduler.
	KubeSchedulerConfig string

	// DisableKubeScheduler is the flag to disable kube-scheduler.
	DisableKubeScheduler bool

	// DisableKubeControllerManager is the flag to disable kube-controller-manager.
	DisableKubeControllerManager bool

	// EtcdImage is the image of etcd.
	EtcdImage string

	// KubeApiserverImage is the image of kube-apiserver.
	KubeApiserverImage string

	// KubeControllerManagerImage is the image of kube-controller-manager.
	KubeControllerManagerImage string

	// KubeSchedulerImage is the image of kube-scheduler.
	KubeSchedulerImage string

	// KwokControllerImage is the image of Kwok.
	KwokControllerImage string

	// PrometheusImage is the image of Prometheus.
	PrometheusImage string

	// KindNodeImage is the image of kind node.
	KindNodeImage string

	// BinSuffix is the suffix of the all binary.
	// On Windows is .exe
	BinSuffix string

	// KubeApiserverBinary is the binary of kube-apiserver.
	KubeApiserverBinary string

	// KubeControllerManagerBinary is the binary of kube-controller-manager.
	KubeControllerManagerBinary string

	// KubeSchedulerBinary is the binary of kube-scheduler.
	KubeSchedulerBinary string

	// KubectlBinary is the binary of kubectl.
	KubectlBinary string

	// EtcdBinary is the binary of etcd.
	EtcdBinary string

	// EtcdBinaryTar is the tar of the binary of etcd.
	EtcdBinaryTar string

	// KwokControllerBinary is the binary of kwok.
	KwokControllerBinary string

	// PrometheusBinary  is the binary of Prometheus.
	PrometheusBinary string

	// PrometheusBinaryTar is the tar of binary of Prometheus.
	PrometheusBinaryTar string

	// DockerComposeBinary is the binary of Docker compose.
	DockerComposeBinary string

	// KindBinary is the binary of kind.
	KindBinary string

	// Mode is several default parameter templates for clusters
	Mode string

	// KubeFeatureGates is a set of key=value pairs that describe feature gates for alpha/experimental features of Kubernetes.
	KubeFeatureGates string

	// KubeRuntimeConfig is a set of key=value pairs that enable or disable built-in APIs.
	KubeRuntimeConfig string

	// KubeAuditPolicy is path to the file that defines the audit policy configuration
	KubeAuditPolicy string

	// KubeAuthorization is the flag to enable authorization on secure port.
	KubeAuthorization bool

	// EtcdPeerPort is etcd peer port in the binary runtime
	EtcdPeerPort uint32

	// EtcdPort is etcd port in the binary runtime
	EtcdPort uint32

	// KubeControllerManagerPort is kube-controller-manager port in the binary runtime
	KubeControllerManagerPort uint32

	// KubeSchedulerPort is kube-scheduler port in the binary runtime
	KubeSchedulerPort uint32

	// KwokControllerPort is kube-controller port in the binary runtime
	KwokControllerPort uint32

	// CacheDir is the directory of the cache.
	CacheDir string
}

func (*KwokctlConfigurationOptions) DeepCopy

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

func (*KwokctlConfigurationOptions) DeepCopyInto

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

type Port

type Port struct {
	// Name for the port that can be referred to by components.
	Name string
	// Port is number of port to expose on the component's IP address.
	// This must be a valid port number, 0 < x < 65536.
	Port uint32
	// HostPort is number of port to expose on the host.
	// If specified, this must be a valid port number, 0 < x < 65536.
	HostPort uint32
	// Protocol for port. Must be UDP, TCP, or SCTP.
	Protocol Protocol
}

Port represents a network port in a single component.

func (*Port) DeepCopy

func (in *Port) DeepCopy() *Port

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

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

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

type Protocol

type Protocol string

Protocol defines network protocols supported for things like component ports. +enum

const (
	// ProtocolTCP is the TCP protocol.
	ProtocolTCP Protocol = "TCP"
	// ProtocolUDP is the UDP protocol.
	ProtocolUDP Protocol = "UDP"
	// ProtocolSCTP is the SCTP protocol.
	ProtocolSCTP Protocol = "SCTP"
)

type SelectorOperator

type SelectorOperator string

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

var (
	SelectorOpIn           SelectorOperator = "In"
	SelectorOpNotIn        SelectorOperator = "NotIn"
	SelectorOpExists       SelectorOperator = "Exists"
	SelectorOpDoesNotExist SelectorOperator = "DoesNotExist"
)

type SelectorRequirement

type SelectorRequirement struct {
	// The name of the scope that the selector applies to.
	Key string
	// Represents a scope's relationship to a set of values.
	Operator SelectorOperator
	// 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
}

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 {
	metav1.TypeMeta
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	metav1.ObjectMeta
	// Spec holds information about the request being evaluated.
	Spec StageSpec
}

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

func ConvertToInternalVersionStage

func ConvertToInternalVersionStage(in *v1alpha1.Stage) (*Stage, error)

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 {
	// Duration indicates the stage delay time.
	// If JitterDuration is less than Duration, then JitterDuration is used.
	Duration metav1.Duration
	// 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 Duration
	// If it is a string type, the value get will be parsed by time.ParseDuration.
	DurationFrom *ExpressionFromSource

	// JitterDuration is the duration plus an additional amount chosen uniformly
	// at random from the interval between Duration and JitterDuration.
	JitterDuration *metav1.Duration
	// 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 JitterDuration
	// If it is a string type, the value get will be parsed by time.ParseDuration.
	JitterDurationFrom *ExpressionFromSource
}

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
	// Reason is why the action was taken. It is human-readable.
	Reason string
	// Message is a human-readable description of the status of this operation.
	Message string
}

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
	// Remove means that the Finalizers will be removed from the resource.
	Remove []FinalizerItem
	// Empty means that the Finalizers for that resource will be emptied.
	Empty bool
}

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
	// Finalizers means that finalizers will be modified.
	Finalizers *StageFinalizers
	// Delete means that the resource will be deleted if true.
	Delete bool
	// StatusTemplate indicates the template for modifying the status of the resource in the next.
	StatusTemplate string
}

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.
	APIGroup string
	// Kind of the referent.
	Kind string
}

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
	// 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
	// MatchExpressions is a list of label selector requirements. The requirements are ANDed.
	MatchExpressions []SelectorRequirement
}

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
	// Selector specifies the stags will be applied to the selected resource.
	Selector *StageSelector
	// Weight means the current stage, in case of multiple stages,
	// a random stage will be matched as the next stage based on the weight.
	Weight int
	// Delay means there is a delay in this stage.
	Delay *StageDelay
	// Next indicates that this stage will be moved to.
	Next StageNext
}

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 Volume

type Volume struct {
	// Name of the volume specified.
	Name string
	// Mounted read-only if true, read-write otherwise (false or unspecified).
	ReadOnly bool
	// HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container.
	HostPath string
	// MountPath within the container at which the volume should be mounted.
	MountPath string
}

func (*Volume) DeepCopy

func (in *Volume) DeepCopy() *Volume

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

func (*Volume) DeepCopyInto

func (in *Volume) DeepCopyInto(out *Volume)

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 🇻🇳