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
- Variables
- type APIEndpoint
- type BootstrapKubeconfig
- func (in *BootstrapKubeconfig) DeepCopy() *BootstrapKubeconfig
- func (in *BootstrapKubeconfig) DeepCopyInto(out *BootstrapKubeconfig)
- func (in *BootstrapKubeconfig) DeepCopyObject() runtime.Object
- func (r *BootstrapKubeconfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *BootstrapKubeconfig) ValidateCreate() error
- func (r *BootstrapKubeconfig) ValidateDelete() error
- func (r *BootstrapKubeconfig) ValidateUpdate(old runtime.Object) error
- type BootstrapKubeconfigList
- type BootstrapKubeconfigSpec
- type BootstrapKubeconfigStatus
- type ByoCluster
- type ByoClusterList
- type ByoClusterSpec
- type ByoClusterStatus
- type ByoClusterTemplate
- type ByoClusterTemplateList
- type ByoClusterTemplateResource
- type ByoClusterTemplateSpec
- type ByoHost
- type ByoHostList
- type ByoHostSpec
- type ByoHostStatus
- type ByoHostValidator
- type ByoMachine
- type ByoMachineList
- type ByoMachineSpec
- type ByoMachineStatus
- type ByoMachineTemplate
- type ByoMachineTemplateList
- type ByoMachineTemplateResource
- type ByoMachineTemplateSpec
- type ByoMachineTemplateStatus
- type HostInfo
- type K8sInstallerConfig
- type K8sInstallerConfigList
- type K8sInstallerConfigSpec
- type K8sInstallerConfigStatus
- type K8sInstallerConfigTemplate
- type K8sInstallerConfigTemplateList
- type K8sInstallerConfigTemplateResource
- type K8sInstallerConfigTemplateSpec
- type K8sInstallerConfigTemplateStatus
- type NetworkStatus
Constants ¶
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" )
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" )
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" // secret that contains bootstrap information // This secret is available on byohost.Spec.BootstrapSecret field BootstrapDataSecretUnavailableReason = "BootstrapDataSecretUnavailable" // 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
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 = "BYOHostsUnavailable" // InstallationSecretNotAvailableReason indicates that the installation secret is not yet // generated for a given BYOMachine InstallationSecretNotAvailableReason = "InstallationSecretNotAvailable" )
Conditions and Reasons defined on BYOMachine
const APIServerURLScheme = "https"
APIServerURLScheme is the url scheme for the APIServer
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" )
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
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" )
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 ¶
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 ¶
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 ¶
func (in *BootstrapKubeconfig) DeepCopy() *BootstrapKubeconfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapKubeconfig.
func (*BootstrapKubeconfig) DeepCopyInto ¶
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 ¶
func (in *BootstrapKubeconfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BootstrapKubeconfig) SetupWebhookWithManager ¶
func (r *BootstrapKubeconfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*BootstrapKubeconfig) ValidateCreate ¶
func (r *BootstrapKubeconfig) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*BootstrapKubeconfig) ValidateDelete ¶
func (r *BootstrapKubeconfig) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*BootstrapKubeconfig) ValidateUpdate ¶
func (r *BootstrapKubeconfig) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type BootstrapKubeconfigList ¶
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 ¶
func (in *BootstrapKubeconfigList) DeepCopy() *BootstrapKubeconfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapKubeconfigList.
func (*BootstrapKubeconfigList) DeepCopyInto ¶
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 ¶
func (in *BootstrapKubeconfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BootstrapKubeconfigSpec ¶
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 ¶
func (in *BootstrapKubeconfigSpec) DeepCopy() *BootstrapKubeconfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapKubeconfigSpec.
func (*BootstrapKubeconfigSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *BootstrapKubeconfigStatus) DeepCopy() *BootstrapKubeconfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BootstrapKubeconfigStatus.
func (*BootstrapKubeconfigStatus) DeepCopyInto ¶
func (in *BootstrapKubeconfigStatus) DeepCopyInto(out *BootstrapKubeconfigStatus)
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 docker.io/thegnoucommunity/cluster-api-byoh-bundle // +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 ¶
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 ¶
func (in *ByoClusterTemplate) DeepCopy() *ByoClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoClusterTemplate.
func (*ByoClusterTemplate) DeepCopyInto ¶
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 ¶
func (in *ByoClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ByoClusterTemplateList ¶
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 ¶
func (in *ByoClusterTemplateList) DeepCopy() *ByoClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoClusterTemplateList.
func (*ByoClusterTemplateList) DeepCopyInto ¶
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 ¶
func (in *ByoClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ByoClusterTemplateResource ¶
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 ¶
func (in *ByoClusterTemplateResource) DeepCopy() *ByoClusterTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoClusterTemplateResource.
func (*ByoClusterTemplateResource) DeepCopyInto ¶
func (in *ByoClusterTemplateResource) DeepCopyInto(out *ByoClusterTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ByoClusterTemplateSpec ¶
type ByoClusterTemplateSpec struct {
Template ByoClusterTemplateResource `json:"template"`
}
ByoClusterTemplateSpec defines the desired state of ByoClusterTemplate.
func (*ByoClusterTemplateSpec) DeepCopy ¶
func (in *ByoClusterTemplateSpec) DeepCopy() *ByoClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoClusterTemplateSpec.
func (*ByoClusterTemplateSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoHost.
func (*ByoHost) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ByoHost) DeepCopyObject ¶
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 ¶
type ByoHostValidator struct {
// contains filtered or unexported fields
}
+k8s:deepcopy-gen=false ByoHostValidator validates ByoHosts
func (*ByoHostValidator) Handle ¶
nolint: gocritic Handle handles all the requests for ByoHost resource
func (*ByoHostValidator) InjectDecoder ¶
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 ¶
func (in *ByoMachineTemplateList) DeepCopy() *ByoMachineTemplateList
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 ¶
func (in *ByoMachineTemplateResource) DeepCopy() *ByoMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ByoMachineTemplateResource.
func (*ByoMachineTemplateResource) DeepCopyInto ¶
func (in *ByoMachineTemplateResource) DeepCopyInto(out *ByoMachineTemplateResource)
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 ¶
func (in *ByoMachineTemplateSpec) DeepCopy() *ByoMachineTemplateSpec
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 ¶
func (in *ByoMachineTemplateStatus) DeepCopy() *ByoMachineTemplateStatus
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostInfo.
func (*HostInfo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sInstallerConfig ¶
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 ¶
func (in *K8sInstallerConfig) DeepCopy() *K8sInstallerConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfig.
func (*K8sInstallerConfig) DeepCopyInto ¶
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 ¶
func (in *K8sInstallerConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sInstallerConfigList ¶
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 ¶
func (in *K8sInstallerConfigList) DeepCopy() *K8sInstallerConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigList.
func (*K8sInstallerConfigList) DeepCopyInto ¶
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 ¶
func (in *K8sInstallerConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sInstallerConfigSpec ¶
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 ¶
func (in *K8sInstallerConfigSpec) DeepCopy() *K8sInstallerConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigSpec.
func (*K8sInstallerConfigSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *K8sInstallerConfigStatus) DeepCopy() *K8sInstallerConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigStatus.
func (*K8sInstallerConfigStatus) DeepCopyInto ¶
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 ¶
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 ¶
func (in *K8sInstallerConfigTemplate) DeepCopy() *K8sInstallerConfigTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigTemplate.
func (*K8sInstallerConfigTemplate) DeepCopyInto ¶
func (in *K8sInstallerConfigTemplate) DeepCopyInto(out *K8sInstallerConfigTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sInstallerConfigTemplate) DeepCopyObject ¶
func (in *K8sInstallerConfigTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sInstallerConfigTemplateList ¶
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 ¶
func (in *K8sInstallerConfigTemplateList) DeepCopy() *K8sInstallerConfigTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigTemplateList.
func (*K8sInstallerConfigTemplateList) DeepCopyInto ¶
func (in *K8sInstallerConfigTemplateList) DeepCopyInto(out *K8sInstallerConfigTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sInstallerConfigTemplateList) DeepCopyObject ¶
func (in *K8sInstallerConfigTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sInstallerConfigTemplateResource ¶
type K8sInstallerConfigTemplateResource struct { // Spec is the specification of the desired behavior of the installer config. Spec K8sInstallerConfigSpec `json:"spec"` }
func (*K8sInstallerConfigTemplateResource) DeepCopy ¶
func (in *K8sInstallerConfigTemplateResource) DeepCopy() *K8sInstallerConfigTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigTemplateResource.
func (*K8sInstallerConfigTemplateResource) DeepCopyInto ¶
func (in *K8sInstallerConfigTemplateResource) DeepCopyInto(out *K8sInstallerConfigTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sInstallerConfigTemplateSpec ¶
type K8sInstallerConfigTemplateSpec struct {
Template K8sInstallerConfigTemplateResource `json:"template"`
}
K8sInstallerConfigTemplateSpec defines the desired state of K8sInstallerConfigTemplate
func (*K8sInstallerConfigTemplateSpec) DeepCopy ¶
func (in *K8sInstallerConfigTemplateSpec) DeepCopy() *K8sInstallerConfigTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigTemplateSpec.
func (*K8sInstallerConfigTemplateSpec) DeepCopyInto ¶
func (in *K8sInstallerConfigTemplateSpec) DeepCopyInto(out *K8sInstallerConfigTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sInstallerConfigTemplateStatus ¶
type K8sInstallerConfigTemplateStatus struct { }
K8sInstallerConfigTemplateStatus defines the observed state of K8sInstallerConfigTemplate
func (*K8sInstallerConfigTemplateStatus) DeepCopy ¶
func (in *K8sInstallerConfigTemplateStatus) DeepCopy() *K8sInstallerConfigTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sInstallerConfigTemplateStatus.
func (*K8sInstallerConfigTemplateStatus) DeepCopyInto ¶
func (in *K8sInstallerConfigTemplateStatus) DeepCopyInto(out *K8sInstallerConfigTemplateStatus)
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.
Source Files ¶
- bootstrapkubeconfig_types.go
- bootstrapkubeconfig_webhook.go
- byocluster_types.go
- byoclustertemplate.go
- byohost_types.go
- byohost_webhook.go
- byomachine_types.go
- byomachinetemplate_types.go
- condition_consts.go
- doc.go
- groupversion_info.go
- k8sinstallerconfig_types.go
- k8sinstallerconfigtemplate_types.go
- zz_generated.deepcopy.go