v1beta1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Overview

Package v1beta1 contains the v1beta1 API implementation.

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

Index

Constants

View Source
const (
	// DefaultClusterName is the cluster name used in the generated bootstrap-kubeconfig
	DefaultClusterName = "default-cluster"

	// DefaultContext is the context name used in the generated bootstrap-kubeconfig
	DefaultContext = "default-context"

	// DefaultNamespace is the namespace used in the generated bootstrap-kubeconfig
	DefaultNamespace = "default"

	// DefaultAuth is the auth in the generated bootstrap-kubeconfig
	DefaultAuth = "default-auth"

	// BootstrapTokenDescription is the bootstrap token description for the secret that is generated
	BootstrapTokenDescription = "Token generated by cluster-api-provider-bringyourownhost"

	// BootstrapTokenExtraGroups is the byoh group that has access to create CertificateSigningRequest
	BootstrapTokenExtraGroups = "system:bootstrappers:byoh"
)
View Source
const (
	// HostCleanupAnnotation annotation used to mark a host for cleanup
	HostCleanupAnnotation = "byoh.infrastructure.cluster.x-k8s.io/unregistering"
	// EndPointIPAnnotation annotation used to store the IP address of the endpoint
	EndPointIPAnnotation = "byoh.infrastructure.cluster.x-k8s.io/endpointip"
	// K8sVersionAnnotation annotation used to store the k8s version
	K8sVersionAnnotation = "byoh.infrastructure.cluster.x-k8s.io/k8sversion"
	// AttachedByoMachineLabel label used to mark a node name attached to a byo host
	AttachedByoMachineLabel = "byoh.infrastructure.cluster.x-k8s.io/byomachine-name"
	// BundleLookupBaseRegistryAnnotation annotation used to store the base registry for the bundle lookup
	BundleLookupBaseRegistryAnnotation = "byoh.infrastructure.cluster.x-k8s.io/bundle-registry"
)
View Source
const (
	// K8sNodeBootstrapSucceeded documents if the node is successfully bootstrapped by kubeadm
	// This condition is managed by the host agent. and it could be always true
	// if the host is unmanaged; instead, in case of managed host, it depends
	// on the node currently being hosting a ByoMachine or not.
	K8sNodeBootstrapSucceeded clusterv1.ConditionType = "K8sNodeBootstrapSucceeded"

	// K8sComponentsInstallationSucceeded documents if the required Kubernetes
	// components are currently installed on the node.
	K8sComponentsInstallationSucceeded clusterv1.ConditionType = "K8sComponentsInstallationSucceeded"

	// WaitingForMachineRefReason indicates when a ByoHost is registered into a capacity pool and
	// waiting for a byohost.Status.MachineRef to be assigned
	WaitingForMachineRefReason = "WaitingForMachineRefToBeAssigned"

	// BootstrapDataSecretUnavailableReason indicates that the bootstrap provider is yet to provide the
	// secret that contains bootstrap information
	// This secret is available on byohost.Spec.BootstrapSecret field
	BootstrapDataSecretUnavailableReason = "BootstrapDataSecretUnavailable"

	// K8sInstallationSecretUnavailableReason indicates that the installer controller is yet to provide the
	// secret that contains installation and uninstallation scripts
	// This secret is available on byohost.Spec.K8sInstallationSecret field
	K8sInstallationSecretUnavailableReason = "K8sInstallationSecretUnavailable"

	// CleanK8sDirectoriesFailedReason indicates that clean k8s directories failed for some reason, please
	// delete it manually for reconcile to proceed.
	// The cleaned directories are /run/kubeadm and /etc/cni/net.d
	CleanK8sDirectoriesFailedReason = "CleanK8sDirectoriesFailed"

	// CloudInitExecutionFailedReason indicates that cloudinit failed to parse and execute the directives
	// that are part of the cloud-config file
	CloudInitExecutionFailedReason = "CloudInitExecutionFailed"

	// K8sNodeAbsentReason indicates that the node is not a Kubernetes node
	// This is usually set after executing kubeadm reset on the node
	K8sNodeAbsentReason = "K8sNodeAbsent"

	// K8sComponentsInstallingReason indicates that the k8s components are being
	// downloaded and installed
	// TODO unused, remove it
	K8sComponentsInstallingReason = "K8sComponentsInstalling"

	// K8sComponentsInstallationFailedReason indicates that the installer failed to install all the
	// k8s components on this host
	K8sComponentsInstallationFailedReason = "K8sComponentsInstallationFailed"
)

Conditions and Reasons defined on BYOHost

View Source
const (

	// BYOHostReady documents the k8s node is ready and can take on workloads
	BYOHostReady clusterv1.ConditionType = "BYOHostReady"

	// WaitingForClusterInfrastructureReason indicates the cluster that the ByoMachine belongs to
	// is waiting to be owned by the corresponding CAPI Cluster
	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"

	// WaitingForBootstrapDataSecretReason indicates that the bootstrap provider is yet to provide the
	// secret that contains bootstrap information
	// This secret is available on Machine.Spec.Bootstrap.DataSecretName
	WaitingForBootstrapDataSecretReason = "WaitingForBootstrapDataSecret"

	// BYOHostsUnavailableReason indicates that no byohosts are available in the capacity pool
	BYOHostsUnavailableReason = "BYOHostsUnavailable"

	// InstallationSecretNotAvailableReason indicates that the installation secret is not yet
	// generated for a given BYOMachine
	InstallationSecretNotAvailableReason = "InstallationSecretNotAvailable"
)

Conditions and Reasons defined on BYOMachine

View Source
const APIServerURLScheme = "https"

APIServerURLScheme is the url scheme for the APIServer

View Source
const (
	// ClusterFinalizer allows ReconcileByoCluster to clean up Byo
	// resources associated with ByoCluster before removing it from the
	// API server.
	ClusterFinalizer = "byocluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (

	// ClusterOrResourcePausedReason indicates that either
	// Spec.Paused field on the cluster is set to true
	// or the resource is marked with Paused annotation
	ClusterOrResourcePausedReason = "ClusterOrResourcePaused"
)

Reasons common to all Byo Resources

View Source
const (
	// K8sInstallerConfigFinalizer allows ReconcileK8sInstallerConfig to clean up secret
	// resources associated with K8sInstallerConfig before removing it from the
	// API Server.
	K8sInstallerConfigFinalizer = "k8sinstallerconfig.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// MachineFinalizer allows ReconcileByoMachine to clean up Byo
	// resources associated with ByoMachine before removing it from the
	// API Server.
	MachineFinalizer = "byomachine.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: "v1beta1"}

	// 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.
	Port int32 `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 BootstrapKubeconfig added in v0.3.0

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

	Spec   BootstrapKubeconfigSpec   `json:"spec,omitempty"`
	Status BootstrapKubeconfigStatus `json:"status,omitempty"`
}

BootstrapKubeconfig is the Schema for the bootstrapkubeconfigs API

func (*BootstrapKubeconfig) DeepCopy added in v0.3.0

func (in *BootstrapKubeconfig) DeepCopy() *BootstrapKubeconfig

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

func (*BootstrapKubeconfig) DeepCopyInto added in v0.3.0

func (in *BootstrapKubeconfig) DeepCopyInto(out *BootstrapKubeconfig)

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

func (*BootstrapKubeconfig) DeepCopyObject added in v0.3.0

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

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

func (*BootstrapKubeconfig) SetupWebhookWithManager added in v0.3.0

func (r *BootstrapKubeconfig) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*BootstrapKubeconfig) ValidateCreate added in v0.3.0

func (r *BootstrapKubeconfig) ValidateCreate() error

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

func (*BootstrapKubeconfig) ValidateDelete added in v0.3.0

func (r *BootstrapKubeconfig) ValidateDelete() error

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

func (*BootstrapKubeconfig) ValidateUpdate added in v0.3.0

func (r *BootstrapKubeconfig) ValidateUpdate(old runtime.Object) error

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

type BootstrapKubeconfigList added in v0.3.0

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

BootstrapKubeconfigList contains a list of BootstrapKubeconfig

func (*BootstrapKubeconfigList) DeepCopy added in v0.3.0

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

func (*BootstrapKubeconfigList) DeepCopyInto added in v0.3.0

func (in *BootstrapKubeconfigList) DeepCopyInto(out *BootstrapKubeconfigList)

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

func (*BootstrapKubeconfigList) DeepCopyObject added in v0.3.0

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

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

type BootstrapKubeconfigSpec added in v0.3.0

type BootstrapKubeconfigSpec struct {
	// APIServer is the address of the kubernetes cluster (https://hostname:port).
	APIServer string `json:"apiserver"`

	// InsecureSkipTLSVerify skips the validity check for the server's certificate. This will make your HTTPS connections insecure.
	// +optional
	// +kubebuilder:default=false
	InsecureSkipTLSVerify bool `json:"insecure-skip-tls-verify,omitempty"`

	// CertificateAuthorityData contains PEM-encoded certificate authority certificates.
	CertificateAuthorityData string `json:"certificate-authority-data"`
}

BootstrapKubeconfigSpec defines the desired state of BootstrapKubeconfig

func (*BootstrapKubeconfigSpec) DeepCopy added in v0.3.0

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

func (*BootstrapKubeconfigSpec) DeepCopyInto added in v0.3.0

func (in *BootstrapKubeconfigSpec) DeepCopyInto(out *BootstrapKubeconfigSpec)

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

type BootstrapKubeconfigStatus added in v0.3.0

type BootstrapKubeconfigStatus struct {
	// BootstrapKubeconfigData is an optional reference to a bootstrap kubeconfig info
	// for starting the host registration process
	// +optional
	BootstrapKubeconfigData *string `json:"bootstrapKubeconfigData,omitempty"`
}

BootstrapKubeconfigStatus defines the observed state of BootstrapKubeconfig

func (*BootstrapKubeconfigStatus) DeepCopy added in v0.3.0

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

func (*BootstrapKubeconfigStatus) DeepCopyInto added in v0.3.0

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

type ByoCluster

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

	Spec   ByoClusterSpec   `json:"spec,omitempty"`
	Status ByoClusterStatus `json:"status,omitempty"`
}

ByoCluster is the Schema for the byoclusters API

func (*ByoCluster) DeepCopy

func (in *ByoCluster) DeepCopy() *ByoCluster

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

func (*ByoCluster) DeepCopyInto

func (in *ByoCluster) DeepCopyInto(out *ByoCluster)

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

func (*ByoCluster) DeepCopyObject

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

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

func (*ByoCluster) GetConditions

func (byoCluster *ByoCluster) GetConditions() clusterv1.Conditions

GetConditions gets the condition for the ByoCluster status

func (*ByoCluster) SetConditions

func (byoCluster *ByoCluster) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions for the ByoCluster status

type ByoClusterList

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

ByoClusterList contains a list of ByoCluster

func (*ByoClusterList) DeepCopy

func (in *ByoClusterList) DeepCopy() *ByoClusterList

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

func (*ByoClusterList) DeepCopyInto

func (in *ByoClusterList) DeepCopyInto(out *ByoClusterList)

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

func (*ByoClusterList) DeepCopyObject

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

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

type ByoClusterSpec

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

	// BundleLookupBaseRegistry is the base Registry URL that is used for pulling byoh bundle images,
	// if not set, the default will be set to https://projects.registry.vmware.com/cluster_api_provider_bringyourownhost
	// +optional
	BundleLookupBaseRegistry string `json:"bundleLookupBaseRegistry,omitempty"`
}

ByoClusterSpec defines the desired state of ByoCluster

func (*ByoClusterSpec) DeepCopy

func (in *ByoClusterSpec) DeepCopy() *ByoClusterSpec

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

func (*ByoClusterSpec) DeepCopyInto

func (in *ByoClusterSpec) DeepCopyInto(out *ByoClusterSpec)

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

type ByoClusterStatus

type ByoClusterStatus struct {
	// +optional
	Ready bool `json:"ready,omitempty"`

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

	// FailureDomains is a list of failure domain objects synced from the infrastructure provider.
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}

ByoClusterStatus defines the observed state of ByoCluster

func (*ByoClusterStatus) DeepCopy

func (in *ByoClusterStatus) DeepCopy() *ByoClusterStatus

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

func (*ByoClusterStatus) DeepCopyInto

func (in *ByoClusterStatus) DeepCopyInto(out *ByoClusterStatus)

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

type ByoClusterTemplate added in v0.3.0

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

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

ByoClusterTemplate is the Schema for the byoclustertemplates API.

func (*ByoClusterTemplate) DeepCopy added in v0.3.0

func (in *ByoClusterTemplate) DeepCopy() *ByoClusterTemplate

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

func (*ByoClusterTemplate) DeepCopyInto added in v0.3.0

func (in *ByoClusterTemplate) DeepCopyInto(out *ByoClusterTemplate)

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

func (*ByoClusterTemplate) DeepCopyObject added in v0.3.0

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

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

type ByoClusterTemplateList added in v0.3.0

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

ByoClusterTemplateList contains a list of ByoClusterTemplate.

func (*ByoClusterTemplateList) DeepCopy added in v0.3.0

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

func (*ByoClusterTemplateList) DeepCopyInto added in v0.3.0

func (in *ByoClusterTemplateList) DeepCopyInto(out *ByoClusterTemplateList)

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

func (*ByoClusterTemplateList) DeepCopyObject added in v0.3.0

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

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

type ByoClusterTemplateResource added in v0.3.0

type ByoClusterTemplateResource 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       ByoClusterSpec       `json:"spec"`
}

ByoClusterTemplateResource describes the data needed to create a ByoCluster from a template.

func (*ByoClusterTemplateResource) DeepCopy added in v0.3.0

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

func (*ByoClusterTemplateResource) DeepCopyInto added in v0.3.0

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

type ByoClusterTemplateSpec added in v0.3.0

type ByoClusterTemplateSpec struct {
	Template ByoClusterTemplateResource `json:"template"`
}

ByoClusterTemplateSpec defines the desired state of ByoClusterTemplate.

func (*ByoClusterTemplateSpec) DeepCopy added in v0.3.0

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

func (*ByoClusterTemplateSpec) DeepCopyInto added in v0.3.0

func (in *ByoClusterTemplateSpec) DeepCopyInto(out *ByoClusterTemplateSpec)

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

type ByoHost

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

	Spec   ByoHostSpec   `json:"spec,omitempty"`
	Status ByoHostStatus `json:"status,omitempty"`
}

ByoHost is the Schema for the byohosts API

func (*ByoHost) DeepCopy

func (in *ByoHost) DeepCopy() *ByoHost

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

func (*ByoHost) DeepCopyInto

func (in *ByoHost) DeepCopyInto(out *ByoHost)

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

func (*ByoHost) DeepCopyObject

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

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

func (*ByoHost) GetConditions

func (byoHost *ByoHost) GetConditions() clusterv1.Conditions

GetConditions gets the ByoHost status conditions

func (*ByoHost) SetConditions

func (byoHost *ByoHost) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the ByoHost status conditions

type ByoHostList

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

ByoHostList contains a list of ByoHost

func (*ByoHostList) DeepCopy

func (in *ByoHostList) DeepCopy() *ByoHostList

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

func (*ByoHostList) DeepCopyInto

func (in *ByoHostList) DeepCopyInto(out *ByoHostList)

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

func (*ByoHostList) DeepCopyObject

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

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

type ByoHostSpec

type ByoHostSpec struct {
	// BootstrapSecret is an optional reference to a Cluster API Secret
	// for bootstrap purpose
	// +optional
	BootstrapSecret *corev1.ObjectReference `json:"bootstrapSecret,omitempty"`

	// InstallationSecret is an optional reference to InstallationSecret
	// generated by InstallerController for K8s installation
	// +optional
	InstallationSecret *corev1.ObjectReference `json:"installationSecret,omitempty"`

	// UninstallationScript is an optional field to store uninstall script
	// generated by InstallerController
	// +optional
	UninstallationScript *string `json:"uninstallationScript,omitempty"`
}

ByoHostSpec defines the desired state of ByoHost

func (*ByoHostSpec) DeepCopy

func (in *ByoHostSpec) DeepCopy() *ByoHostSpec

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

func (*ByoHostSpec) DeepCopyInto

func (in *ByoHostSpec) DeepCopyInto(out *ByoHostSpec)

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

type ByoHostStatus

type ByoHostStatus struct {
	// MachineRef is an optional reference to a Cluster API Machine
	// using this host.
	// +optional
	MachineRef *corev1.ObjectReference `json:"machineRef,omitempty"`

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

	// HostDetails returns the platform details of the host.
	// +optional
	HostDetails HostInfo `json:"hostinfo,omitempty"`

	// Network returns the network status for each of the host's configured
	// network interfaces.
	// +optional
	Network []NetworkStatus `json:"network,omitempty"`
}

ByoHostStatus defines the observed state of ByoHost

func (*ByoHostStatus) DeepCopy

func (in *ByoHostStatus) DeepCopy() *ByoHostStatus

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

func (*ByoHostStatus) DeepCopyInto

func (in *ByoHostStatus) DeepCopyInto(out *ByoHostStatus)

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

type ByoHostValidator added in v0.3.0

type ByoHostValidator struct {
	// contains filtered or unexported fields
}

+k8s:deepcopy-gen=false ByoHostValidator validates ByoHosts

func (*ByoHostValidator) Handle added in v0.3.0

nolint: gocritic Handle handles all the requests for ByoHost resource

func (*ByoHostValidator) InjectDecoder added in v0.3.0

func (v *ByoHostValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type ByoMachine

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

	Spec   ByoMachineSpec   `json:"spec,omitempty"`
	Status ByoMachineStatus `json:"status,omitempty"`
}

ByoMachine is the Schema for the byomachines API

func (*ByoMachine) DeepCopy

func (in *ByoMachine) DeepCopy() *ByoMachine

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

func (*ByoMachine) DeepCopyInto

func (in *ByoMachine) DeepCopyInto(out *ByoMachine)

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

func (*ByoMachine) DeepCopyObject

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

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

func (*ByoMachine) GetConditions

func (byoMachine *ByoMachine) GetConditions() clusterv1.Conditions

GetConditions returns the conditions of ByoMachine status

func (*ByoMachine) SetConditions

func (byoMachine *ByoMachine) SetConditions(conditions clusterv1.Conditions)

SetConditions sets the conditions of ByoMachine status

type ByoMachineList

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

ByoMachineList contains a list of ByoMachine

func (*ByoMachineList) DeepCopy

func (in *ByoMachineList) DeepCopy() *ByoMachineList

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

func (*ByoMachineList) DeepCopyInto

func (in *ByoMachineList) DeepCopyInto(out *ByoMachineList)

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

func (*ByoMachineList) DeepCopyObject

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

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

type ByoMachineSpec

type ByoMachineSpec struct {
	// Label Selector to choose the byohost
	Selector *metav1.LabelSelector `json:"selector,omitempty"`

	ProviderID string `json:"providerID,omitempty"`

	// InstallerRef is an optional reference to a installer-specific resource that holds
	// the details of InstallationSecret to be used to install BYOH Bundle.
	// +optional
	InstallerRef *corev1.ObjectReference `json:"installerRef,omitempty"`
}

ByoMachineSpec defines the desired state of ByoMachine

func (*ByoMachineSpec) DeepCopy

func (in *ByoMachineSpec) DeepCopy() *ByoMachineSpec

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

func (*ByoMachineSpec) DeepCopyInto

func (in *ByoMachineSpec) DeepCopyInto(out *ByoMachineSpec)

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

type ByoMachineStatus

type ByoMachineStatus struct {

	// HostInfo has the attached host platform details.
	// +optional
	HostInfo HostInfo `json:"hostinfo,omitempty"`

	// +optional
	Ready bool `json:"ready"`

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

ByoMachineStatus defines the observed state of ByoMachine

func (*ByoMachineStatus) DeepCopy

func (in *ByoMachineStatus) DeepCopy() *ByoMachineStatus

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

func (*ByoMachineStatus) DeepCopyInto

func (in *ByoMachineStatus) DeepCopyInto(out *ByoMachineStatus)

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

type ByoMachineTemplate

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

	Spec   ByoMachineTemplateSpec   `json:"spec,omitempty"`
	Status ByoMachineTemplateStatus `json:"status,omitempty"`
}

ByoMachineTemplate is the Schema for the byomachinetemplates API

func (*ByoMachineTemplate) DeepCopy

func (in *ByoMachineTemplate) DeepCopy() *ByoMachineTemplate

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

func (*ByoMachineTemplate) DeepCopyInto

func (in *ByoMachineTemplate) DeepCopyInto(out *ByoMachineTemplate)

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

func (*ByoMachineTemplate) DeepCopyObject

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

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

type ByoMachineTemplateList

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

ByoMachineTemplateList contains a list of ByoMachineTemplate

func (*ByoMachineTemplateList) DeepCopy

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

func (*ByoMachineTemplateList) DeepCopyInto

func (in *ByoMachineTemplateList) DeepCopyInto(out *ByoMachineTemplateList)

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

func (*ByoMachineTemplateList) DeepCopyObject

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

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

type ByoMachineTemplateResource

type ByoMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec ByoMachineSpec `json:"spec"`
}

ByoMachineTemplateResource defines the desired state of ByoMachineTemplateResource

func (*ByoMachineTemplateResource) DeepCopy

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

func (*ByoMachineTemplateResource) DeepCopyInto

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

type ByoMachineTemplateSpec

type ByoMachineTemplateSpec struct {
	Template ByoMachineTemplateResource `json:"template"`
}

ByoMachineTemplateSpec defines the desired state of ByoMachineTemplate

func (*ByoMachineTemplateSpec) DeepCopy

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

func (*ByoMachineTemplateSpec) DeepCopyInto

func (in *ByoMachineTemplateSpec) DeepCopyInto(out *ByoMachineTemplateSpec)

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

type ByoMachineTemplateStatus

type ByoMachineTemplateStatus struct {
}

ByoMachineTemplateStatus defines the observed state of ByoMachineTemplate

func (*ByoMachineTemplateStatus) DeepCopy

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

func (*ByoMachineTemplateStatus) DeepCopyInto

func (in *ByoMachineTemplateStatus) DeepCopyInto(out *ByoMachineTemplateStatus)

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

type HostInfo added in v0.3.0

type HostInfo struct {
	// The Operating System reported by the host.
	OSName string `json:"osname,omitempty"`

	// OS Image reported by the host.
	OSImage string `json:"osimage,omitempty"`

	// The Architecture reported by the host.
	Architecture string `json:"architecture,omitempty"`
}

HostInfo is a set of details about the host platform.

func (*HostInfo) DeepCopy added in v0.3.0

func (in *HostInfo) DeepCopy() *HostInfo

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

func (*HostInfo) DeepCopyInto added in v0.3.0

func (in *HostInfo) DeepCopyInto(out *HostInfo)

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

type K8sInstallerConfig added in v0.3.0

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

	Spec   K8sInstallerConfigSpec   `json:"spec,omitempty"`
	Status K8sInstallerConfigStatus `json:"status,omitempty"`
}

K8sInstallerConfig is the Schema for the k8sinstallerconfigs API

func (*K8sInstallerConfig) DeepCopy added in v0.3.0

func (in *K8sInstallerConfig) DeepCopy() *K8sInstallerConfig

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

func (*K8sInstallerConfig) DeepCopyInto added in v0.3.0

func (in *K8sInstallerConfig) DeepCopyInto(out *K8sInstallerConfig)

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

func (*K8sInstallerConfig) DeepCopyObject added in v0.3.0

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

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

type K8sInstallerConfigList added in v0.3.0

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

K8sInstallerConfigList contains a list of K8sInstallerConfig

func (*K8sInstallerConfigList) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigList) DeepCopyInto added in v0.3.0

func (in *K8sInstallerConfigList) DeepCopyInto(out *K8sInstallerConfigList)

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

func (*K8sInstallerConfigList) DeepCopyObject added in v0.3.0

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

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

type K8sInstallerConfigSpec added in v0.3.0

type K8sInstallerConfigSpec struct {
	// BundleRepo is the OCI registry from which the carvel imgpkg bundle will be downloaded
	BundleRepo string `json:"bundleRepo"`

	// BundleType is the type of bundle (e.g. k8s) that needs to be downloaded
	BundleType string `json:"bundleType"`
}

K8sInstallerConfigSpec defines the desired state of K8sInstallerConfig

func (*K8sInstallerConfigSpec) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigSpec) DeepCopyInto added in v0.3.0

func (in *K8sInstallerConfigSpec) DeepCopyInto(out *K8sInstallerConfigSpec)

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

type K8sInstallerConfigStatus added in v0.3.0

type K8sInstallerConfigStatus struct {
	// Ready indicates the InstallationSecret field is ready to be consumed
	// +optional
	Ready bool `json:"ready,omitempty"`

	// InstallationSecret is an optional reference to a generated installation secret by K8sInstallerConfig controller
	// +optional
	InstallationSecret *corev1.ObjectReference `json:"installationSecret,omitempty"`
}

K8sInstallerConfigStatus defines the observed state of K8sInstallerConfig

func (*K8sInstallerConfigStatus) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigStatus) DeepCopyInto added in v0.3.0

func (in *K8sInstallerConfigStatus) DeepCopyInto(out *K8sInstallerConfigStatus)

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

type K8sInstallerConfigTemplate added in v0.3.0

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

	Spec   K8sInstallerConfigTemplateSpec   `json:"spec,omitempty"`
	Status K8sInstallerConfigTemplateStatus `json:"status,omitempty"`
}

K8sInstallerConfigTemplate is the Schema for the k8sinstallerconfigtemplates API

func (*K8sInstallerConfigTemplate) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigTemplate) DeepCopyInto added in v0.3.0

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

func (*K8sInstallerConfigTemplate) DeepCopyObject added in v0.3.0

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

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

type K8sInstallerConfigTemplateList added in v0.3.0

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

K8sInstallerConfigTemplateList contains a list of K8sInstallerConfigTemplate

func (*K8sInstallerConfigTemplateList) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigTemplateList) DeepCopyInto added in v0.3.0

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

func (*K8sInstallerConfigTemplateList) DeepCopyObject added in v0.3.0

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

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

type K8sInstallerConfigTemplateResource added in v0.3.0

type K8sInstallerConfigTemplateResource struct {
	// Spec is the specification of the desired behavior of the installer config.
	Spec K8sInstallerConfigSpec `json:"spec"`
}

func (*K8sInstallerConfigTemplateResource) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigTemplateResource) DeepCopyInto added in v0.3.0

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

type K8sInstallerConfigTemplateSpec added in v0.3.0

type K8sInstallerConfigTemplateSpec struct {
	Template K8sInstallerConfigTemplateResource `json:"template"`
}

K8sInstallerConfigTemplateSpec defines the desired state of K8sInstallerConfigTemplate

func (*K8sInstallerConfigTemplateSpec) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigTemplateSpec) DeepCopyInto added in v0.3.0

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

type K8sInstallerConfigTemplateStatus added in v0.3.0

type K8sInstallerConfigTemplateStatus struct {
}

K8sInstallerConfigTemplateStatus defines the observed state of K8sInstallerConfigTemplate

func (*K8sInstallerConfigTemplateStatus) DeepCopy added in v0.3.0

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

func (*K8sInstallerConfigTemplateStatus) DeepCopyInto added in v0.3.0

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

type NetworkStatus

type NetworkStatus struct {
	// Connected is a flag that indicates whether this network is currently
	// connected to the VM.
	Connected bool `json:"connected,omitempty"`

	// IPAddrs is one or more IP addresses reported by vm-tools.
	// +optional
	IPAddrs []string `json:"ipAddrs,omitempty"`

	// MACAddr is the MAC address of the network device.
	MACAddr string `json:"macAddr"`

	// NetworkInterfaceName is the name of the network interface.
	// +optional
	NetworkInterfaceName string `json:"networkInterfaceName,omitempty"`

	// IsDefault is a flag that indicates whether this interface name is where
	// the default gateway sit on.
	IsDefault bool `json:"isDefault,omitempty"`
}

NetworkStatus provides information about one of a VM's networks.

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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