v1alpha1

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the infrastructure v1alpha1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	// ResourceGroupAnnotationName tracks the name of a resource group a InMemoryCluster cluster is linked to.
	ResourceGroupAnnotationName = "inmemorycluster.infrastructure.cluster.x-k8s.io/resource-group"

	// ClusterFinalizer allows InMemoryClusterReconciler to clean up resources associated with InMemoryCluster before
	// removing it from the API server.
	ClusterFinalizer = "inmemorycluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// VMProvisionedCondition documents the status of the provisioning VM implementing the InMemoryMachine.
	VMProvisionedCondition clusterv1.ConditionType = "VMProvisioned"

	// WaitingForClusterInfrastructureReason (Severity=Info) documents an InMemoryMachine VM waiting for the cluster
	// infrastructure to be ready.
	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"

	// WaitingControlPlaneInitializedReason (Severity=Info) documents an InMemoryMachine VM waiting
	// for the control plane to be initialized.
	WaitingControlPlaneInitializedReason = "WaitingControlPlaneInitialized"

	// WaitingForBootstrapDataReason (Severity=Info) documents an InMemoryMachine VM waiting for the bootstrap
	// data to be ready before starting to create the CloudMachine/VM.
	WaitingForBootstrapDataReason = "WaitingForBootstrapData"

	// VMWaitingForStartupTimeoutReason (Severity=Info) documents a InMemoryMachine VM provisioning.
	VMWaitingForStartupTimeoutReason = "WaitingForStartupTimeout"
)
View Source
const (
	// NodeProvisionedCondition documents the status of the provisioning of the node hosted on the InMemoryMachine.
	NodeProvisionedCondition clusterv1.ConditionType = "NodeProvisioned"

	// NodeWaitingForStartupTimeoutReason (Severity=Info) documents a InMemoryMachine Node provisioning.
	NodeWaitingForStartupTimeoutReason = "WaitingForStartupTimeout"
)
View Source
const (
	// EtcdProvisionedCondition documents the status of the provisioning of the etcd member hosted on the InMemoryMachine.
	EtcdProvisionedCondition clusterv1.ConditionType = "EtcdProvisioned"

	// EtcdWaitingForStartupTimeoutReason (Severity=Info) documents a InMemoryMachine etcd pod provisioning.
	EtcdWaitingForStartupTimeoutReason = "WaitingForStartupTimeout"
)
View Source
const (
	// APIServerProvisionedCondition documents the status of the provisioning of the APIServer instance hosted on the InMemoryMachine.
	APIServerProvisionedCondition clusterv1.ConditionType = "APIServerProvisioned"

	// APIServerWaitingForStartupTimeoutReason (Severity=Info) documents a InMemoryMachine API server pod provisioning.
	APIServerWaitingForStartupTimeoutReason = "WaitingForStartupTimeout"
)
View Source
const (
	// MachineFinalizer allows ReconcileInMemoryMachine to clean up resources associated with InMemoryMachine before
	// removing it from the API server.
	MachineFinalizer = "inmemorymachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.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
)

Functions

This section is empty.

Types

type APIEndpoint

type APIEndpoint struct {
	// Host is the hostname on which the API server is serving.
	Host string `json:"host"`

	// Port is the port on which the API server is serving.
	// Defaults to 6443 if not set.
	Port int `json:"port"`
}

APIEndpoint represents a reachable Kubernetes API endpoint.

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

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

type CommonProvisioningSettings

type CommonProvisioningSettings struct {
	// StartupDuration defines the duration of the object provisioning phase.
	StartupDuration metav1.Duration `json:"startupDuration"`

	// StartupJitter adds some randomness on StartupDuration; the actual duration will be StartupDuration plus an additional
	// amount chosen uniformly at random from the interval between zero and `StartupJitter*StartupDuration`.
	// NOTE: this is modeled as string because the usage of float is highly discouraged, as support for them varies across languages.
	StartupJitter string `json:"startupJitter,omitempty"`
}

CommonProvisioningSettings holds parameters that applies to provisioning of most of the objects.

func (*CommonProvisioningSettings) DeepCopy

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

func (*CommonProvisioningSettings) DeepCopyInto

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

type InMemoryAPIServerBehaviour

type InMemoryAPIServerBehaviour struct {
	// Provisioning defines variables influencing how the APIServer hosted on the InMemoryMachine is going to be provisioned.
	// NOTE: APIServer provisioning includes all the steps from starting the static Pod to the Pod become ready and being registered in K8s.
	Provisioning CommonProvisioningSettings `json:"provisioning,omitempty"`
}

InMemoryAPIServerBehaviour defines the behaviour of the APIServer hosted on the InMemoryMachine.

func (*InMemoryAPIServerBehaviour) DeepCopy

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

func (*InMemoryAPIServerBehaviour) DeepCopyInto

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

type InMemoryCluster

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

	Spec   InMemoryClusterSpec   `json:"spec,omitempty"`
	Status InMemoryClusterStatus `json:"status,omitempty"`
}

InMemoryCluster is the schema for the in-memory cluster API.

func (*InMemoryCluster) DeepCopy

func (in *InMemoryCluster) DeepCopy() *InMemoryCluster

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

func (*InMemoryCluster) DeepCopyInto

func (in *InMemoryCluster) DeepCopyInto(out *InMemoryCluster)

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

func (*InMemoryCluster) DeepCopyObject

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

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

func (*InMemoryCluster) Default

func (c *InMemoryCluster) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryCluster) GetConditions

func (c *InMemoryCluster) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*InMemoryCluster) SetConditions

func (c *InMemoryCluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*InMemoryCluster) SetupWebhookWithManager

func (c *InMemoryCluster) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryCluster) ValidateCreate

func (c *InMemoryCluster) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryCluster) ValidateDelete

func (c *InMemoryCluster) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryCluster) ValidateUpdate

func (c *InMemoryCluster) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryClusterList

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

InMemoryClusterList contains a list of InMemoryCluster.

func (*InMemoryClusterList) DeepCopy

func (in *InMemoryClusterList) DeepCopy() *InMemoryClusterList

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

func (*InMemoryClusterList) DeepCopyInto

func (in *InMemoryClusterList) DeepCopyInto(out *InMemoryClusterList)

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

func (*InMemoryClusterList) DeepCopyObject

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

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

type InMemoryClusterSpec

type InMemoryClusterSpec struct {
	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint"`
}

InMemoryClusterSpec defines the desired state of the InMemoryCluster.

func (*InMemoryClusterSpec) DeepCopy

func (in *InMemoryClusterSpec) DeepCopy() *InMemoryClusterSpec

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

func (*InMemoryClusterSpec) DeepCopyInto

func (in *InMemoryClusterSpec) DeepCopyInto(out *InMemoryClusterSpec)

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

type InMemoryClusterStatus

type InMemoryClusterStatus struct {
	// Ready denotes that the in-memory cluster (infrastructure) is ready.
	// +optional
	Ready bool `json:"ready"`

	// Conditions defines current service state of the InMemoryCluster.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

InMemoryClusterStatus defines the observed state of the InMemoryCluster.

func (*InMemoryClusterStatus) DeepCopy

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

func (*InMemoryClusterStatus) DeepCopyInto

func (in *InMemoryClusterStatus) DeepCopyInto(out *InMemoryClusterStatus)

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

type InMemoryClusterTemplate

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

	Spec InMemoryClusterTemplateSpec `json:"spec,omitempty"`
}

InMemoryClusterTemplate is the Schema for the inmemoryclustertemplates API.

func (*InMemoryClusterTemplate) DeepCopy

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

func (*InMemoryClusterTemplate) DeepCopyInto

func (in *InMemoryClusterTemplate) DeepCopyInto(out *InMemoryClusterTemplate)

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

func (*InMemoryClusterTemplate) DeepCopyObject

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

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

func (*InMemoryClusterTemplate) Default

func (c *InMemoryClusterTemplate) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) SetupWebhookWithManager

func (c *InMemoryClusterTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryClusterTemplate) ValidateCreate

func (c *InMemoryClusterTemplate) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) ValidateDelete

func (c *InMemoryClusterTemplate) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryClusterTemplate) ValidateUpdate

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryClusterTemplateList

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

InMemoryClusterTemplateList contains a list of InMemoryClusterTemplate.

func (*InMemoryClusterTemplateList) DeepCopy

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

func (*InMemoryClusterTemplateList) DeepCopyInto

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

func (*InMemoryClusterTemplateList) DeepCopyObject

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

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

type InMemoryClusterTemplateResource

type InMemoryClusterTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`
	Spec       InMemoryClusterSpec  `json:"spec"`
}

InMemoryClusterTemplateResource describes the data needed to create a InMemoryCluster from a template.

func (*InMemoryClusterTemplateResource) DeepCopy

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

func (*InMemoryClusterTemplateResource) DeepCopyInto

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

type InMemoryClusterTemplateSpec

type InMemoryClusterTemplateSpec struct {
	Template InMemoryClusterTemplateResource `json:"template"`
}

InMemoryClusterTemplateSpec defines the desired state of InMemoryClusterTemplate.

func (*InMemoryClusterTemplateSpec) DeepCopy

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

func (*InMemoryClusterTemplateSpec) DeepCopyInto

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

type InMemoryEtcdBehaviour

type InMemoryEtcdBehaviour struct {
	// Provisioning defines variables influencing how the etcd member hosted on the InMemoryMachine is going to be provisioned.
	// NOTE: Etcd provisioning includes all the steps from starting the static Pod to the Pod become ready and being registered in K8s.
	Provisioning CommonProvisioningSettings `json:"provisioning,omitempty"`
}

InMemoryEtcdBehaviour defines the behaviour of the etcd member hosted on the InMemoryMachine.

func (*InMemoryEtcdBehaviour) DeepCopy

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

func (*InMemoryEtcdBehaviour) DeepCopyInto

func (in *InMemoryEtcdBehaviour) DeepCopyInto(out *InMemoryEtcdBehaviour)

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

type InMemoryMachine

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

	Spec   InMemoryMachineSpec   `json:"spec,omitempty"`
	Status InMemoryMachineStatus `json:"status,omitempty"`
}

InMemoryMachine is the schema for the in-memory machine API.

func (*InMemoryMachine) DeepCopy

func (in *InMemoryMachine) DeepCopy() *InMemoryMachine

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

func (*InMemoryMachine) DeepCopyInto

func (in *InMemoryMachine) DeepCopyInto(out *InMemoryMachine)

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

func (*InMemoryMachine) DeepCopyObject

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

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

func (*InMemoryMachine) Default

func (c *InMemoryMachine) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryMachine) GetConditions

func (c *InMemoryMachine) GetConditions() clusterv1.Conditions

GetConditions returns the set of conditions for this object.

func (*InMemoryMachine) SetConditions

func (c *InMemoryMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions on this object.

func (*InMemoryMachine) SetupWebhookWithManager

func (c *InMemoryMachine) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryMachine) ValidateCreate

func (c *InMemoryMachine) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachine) ValidateDelete

func (c *InMemoryMachine) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachine) ValidateUpdate

func (c *InMemoryMachine) ValidateUpdate(_ runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryMachineBehaviour

type InMemoryMachineBehaviour struct {
	// VM defines the behaviour of the VM implementing the InMemoryMachine.
	VM *InMemoryVMBehaviour `json:"vm,omitempty"`

	// Node defines the behaviour of the Node (the kubelet) hosted on the InMemoryMachine.
	Node *InMemoryNodeBehaviour `json:"node,omitempty"`

	// APIServer defines the behaviour of the APIServer hosted on the InMemoryMachine.
	APIServer *InMemoryAPIServerBehaviour `json:"apiServer,omitempty"`

	// Etcd defines the behaviour of the etcd member hosted on the InMemoryMachine.
	Etcd *InMemoryEtcdBehaviour `json:"etcd,omitempty"`
}

InMemoryMachineBehaviour defines the behaviour of the InMemoryMachine.

func (*InMemoryMachineBehaviour) DeepCopy

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

func (*InMemoryMachineBehaviour) DeepCopyInto

func (in *InMemoryMachineBehaviour) DeepCopyInto(out *InMemoryMachineBehaviour)

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

type InMemoryMachineList

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

InMemoryMachineList contains a list of InMemoryMachine.

func (*InMemoryMachineList) DeepCopy

func (in *InMemoryMachineList) DeepCopy() *InMemoryMachineList

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

func (*InMemoryMachineList) DeepCopyInto

func (in *InMemoryMachineList) DeepCopyInto(out *InMemoryMachineList)

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

func (*InMemoryMachineList) DeepCopyObject

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

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

type InMemoryMachineSpec

type InMemoryMachineSpec struct {
	// ProviderID will be the container name in ProviderID format (in-memory:////<name>)
	// +optional
	ProviderID *string `json:"providerID,omitempty"`

	// Behaviour of the InMemoryMachine; this will allow to make a simulation more alike to real use cases
	// e.g. by defining the duration of the provisioning phase mimicking the performances of the target infrastructure.
	Behaviour *InMemoryMachineBehaviour `json:"behaviour,omitempty"`
}

InMemoryMachineSpec defines the desired state of InMemoryMachine.

func (*InMemoryMachineSpec) DeepCopy

func (in *InMemoryMachineSpec) DeepCopy() *InMemoryMachineSpec

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

func (*InMemoryMachineSpec) DeepCopyInto

func (in *InMemoryMachineSpec) DeepCopyInto(out *InMemoryMachineSpec)

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

type InMemoryMachineStatus

type InMemoryMachineStatus struct {
	// Ready denotes that the machine is ready
	// +optional
	Ready bool `json:"ready"`

	// Conditions defines current service state of the InMemoryMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

InMemoryMachineStatus defines the observed state of InMemoryMachine.

func (*InMemoryMachineStatus) DeepCopy

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

func (*InMemoryMachineStatus) DeepCopyInto

func (in *InMemoryMachineStatus) DeepCopyInto(out *InMemoryMachineStatus)

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

type InMemoryMachineTemplate

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

	Spec InMemoryMachineTemplateSpec `json:"spec,omitempty"`
}

InMemoryMachineTemplate is the schema for the in-memory machine template API.

func (*InMemoryMachineTemplate) DeepCopy

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

func (*InMemoryMachineTemplate) DeepCopyInto

func (in *InMemoryMachineTemplate) DeepCopyInto(out *InMemoryMachineTemplate)

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

func (*InMemoryMachineTemplate) DeepCopyObject

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

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

func (*InMemoryMachineTemplate) Default

func (c *InMemoryMachineTemplate) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) SetupWebhookWithManager

func (c *InMemoryMachineTemplate) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*InMemoryMachineTemplate) ValidateCreate

func (c *InMemoryMachineTemplate) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) ValidateDelete

func (c *InMemoryMachineTemplate) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type.

func (*InMemoryMachineTemplate) ValidateUpdate

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.

type InMemoryMachineTemplateList

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

InMemoryMachineTemplateList contains a list of InMemoryMachineTemplate.

func (*InMemoryMachineTemplateList) DeepCopy

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

func (*InMemoryMachineTemplateList) DeepCopyInto

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

func (*InMemoryMachineTemplateList) DeepCopyObject

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

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

type InMemoryMachineTemplateResource

type InMemoryMachineTemplateResource struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta clusterv1.ObjectMeta `json:"metadata,omitempty"`

	// Spec is the specification of the desired behavior of the machine.
	Spec InMemoryMachineSpec `json:"spec"`
}

InMemoryMachineTemplateResource describes the data needed to create a InMemoryMachine from a template.

func (*InMemoryMachineTemplateResource) DeepCopy

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

func (*InMemoryMachineTemplateResource) DeepCopyInto

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

type InMemoryMachineTemplateSpec

type InMemoryMachineTemplateSpec struct {
	Template InMemoryMachineTemplateResource `json:"template"`
}

InMemoryMachineTemplateSpec defines the desired state of InMemoryMachineTemplate.

func (*InMemoryMachineTemplateSpec) DeepCopy

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

func (*InMemoryMachineTemplateSpec) DeepCopyInto

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

type InMemoryNodeBehaviour

type InMemoryNodeBehaviour struct {
	// Provisioning defines variables influencing how the Node (the kubelet) hosted on the InMemoryMachine is going to be provisioned.
	// NOTE: Node provisioning includes all the steps from starting kubelet to the node become ready, get a provider ID, and being registered in K8s.
	Provisioning CommonProvisioningSettings `json:"provisioning,omitempty"`
}

InMemoryNodeBehaviour defines the behaviour of the Node (the kubelet) hosted on the InMemoryMachine.

func (*InMemoryNodeBehaviour) DeepCopy

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

func (*InMemoryNodeBehaviour) DeepCopyInto

func (in *InMemoryNodeBehaviour) DeepCopyInto(out *InMemoryNodeBehaviour)

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

type InMemoryVMBehaviour

type InMemoryVMBehaviour struct {
	// Provisioning defines variables influencing how the VM implementing the InMemoryMachine is going to be provisioned.
	// NOTE: VM provisioning includes all the steps from creation to power-on.
	Provisioning CommonProvisioningSettings `json:"provisioning,omitempty"`
}

InMemoryVMBehaviour defines the behaviour of the VM implementing the InMemoryMachine.

func (*InMemoryVMBehaviour) DeepCopy

func (in *InMemoryVMBehaviour) DeepCopy() *InMemoryVMBehaviour

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

func (*InMemoryVMBehaviour) DeepCopyInto

func (in *InMemoryVMBehaviour) DeepCopyInto(out *InMemoryVMBehaviour)

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