v1alpha1

package
v0.0.0-...-253f2d6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the extensions v1alpha1 API group +kubebuilder:object:generate=true +groupName=extensions.hive.openshift.io

Index

Constants

View Source
const (
	Group   = "extensions.hive.openshift.io"
	Version = "v1alpha1"
)
View Source
const (
	ImageNotReadyReason = "NotReady"
	ImageReadyReason    = "Ready"
	ImageReadyMessage   = "Image is ready for use"

	HostConfiguraionFailedReason      = "HostConfigurationFailed"
	HostConfiguraionSucceededReason   = "HostConfigurationSucceeded"
	HostConfigurationSucceededMessage = "Configuration image is attached to the referenced host"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// 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

func BMHRefsMatch

func BMHRefsMatch(ref1 *BareMetalHostReference, ref2 *BareMetalHostReference) bool

Types

type BareMetalHostReference

type BareMetalHostReference struct {
	// Name identifies the BareMetalHost within a namespace
	Name string `json:"name"`
	// Namespace identifies the namespace containing the referenced BareMetalHost
	Namespace string `json:"namespace"`
}

func (*BareMetalHostReference) DeepCopy

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

func (*BareMetalHostReference) DeepCopyInto

func (in *BareMetalHostReference) DeepCopyInto(out *BareMetalHostReference)

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

type ImageClusterInstall

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

	Spec   ImageClusterInstallSpec   `json:"spec,omitempty"`
	Status ImageClusterInstallStatus `json:"status,omitempty"`
}

ImageClusterInstall is the Schema for the imageclusterinstall API

func (*ImageClusterInstall) DeepCopy

func (in *ImageClusterInstall) DeepCopy() *ImageClusterInstall

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

func (*ImageClusterInstall) DeepCopyInto

func (in *ImageClusterInstall) DeepCopyInto(out *ImageClusterInstall)

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

func (*ImageClusterInstall) DeepCopyObject

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

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

func (*ImageClusterInstall) SetupWebhookWithManager

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

func (*ImageClusterInstall) ValidateCreate

func (r *ImageClusterInstall) ValidateCreate() (admission.Warnings, error)

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

func (*ImageClusterInstall) ValidateDelete

func (r *ImageClusterInstall) ValidateDelete() (admission.Warnings, error)

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

func (*ImageClusterInstall) ValidateUpdate

func (r *ImageClusterInstall) ValidateUpdate(old runtime.Object) (admission.Warnings, error)

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

type ImageClusterInstallList

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

ImageClusterInstallList contains a list of ImageClusterInstall

func (*ImageClusterInstallList) DeepCopy

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

func (*ImageClusterInstallList) DeepCopyInto

func (in *ImageClusterInstallList) DeepCopyInto(out *ImageClusterInstallList)

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

func (*ImageClusterInstallList) DeepCopyObject

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

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

type ImageClusterInstallSpec

type ImageClusterInstallSpec struct {
	// ClusterDeploymentRef is a reference to the ClusterDeployment.
	// +optional
	ClusterDeploymentRef *corev1.LocalObjectReference `json:"clusterDeploymentRef"`

	// ImageSetRef is a reference to a ClusterImageSet.
	ImageSetRef hivev1.ClusterImageSetReference `json:"imageSetRef"`

	// ClusterMetadata contains metadata information about the installed cluster.
	// This must be set as soon as all the information is available.
	// +optional
	ClusterMetadata *hivev1.ClusterMetadata `json:"clusterMetadata"`

	// Version is the target OCP version for the cluster
	// TODO: should this use ImageSetRef?
	Version string `json:"version,omitempty"`

	// NodeIP is the desired IP for the host
	NodeIP string `json:"nodeIP,omitempty"`

	// Hostname is the desired hostname for the host
	Hostname string `json:"hostname,omitempty"`

	// SSHKey is the public Secure Shell (SSH) key to provide access to
	// instances. Equivalent to install-config.yaml's sshKey.
	// This key will be added to the host to allow ssh access
	SSHKey string `json:"sshKey,omitempty"`

	// ImageDigestSources lists sources/repositories for the release-image content.
	// +optional
	ImageDigestSources []apicfgv1.ImageDigestMirrors `json:"imageDigestSources,omitempty"`

	// CABundle is a reference to a config map containing the new bundle of trusted certificates for the host.
	// The tls-ca-bundle.pem entry in the config map will be written to /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
	CABundleRef *corev1.LocalObjectReference `json:"caBundleRef,omitempty"`

	// NetworkConfigRef is the reference to a config map containing network configuration files if necessary.
	// Keys should be of the form *.nmconnection and each represent an nmconnection file to be applied to the host.
	// +optional
	NetworkConfigRef *corev1.LocalObjectReference `json:"networkConfigRef,omitempty"`

	// ExtraManifestsRefs is list of config map references containing additional manifests to be applied to the relocated cluster.
	// +optional
	ExtraManifestsRefs []corev1.LocalObjectReference `json:"extraManifestsRef,omitempty"`

	// BareMetalHostRef identifies a BareMetalHost object to be used to attach the configuration to the host.
	// +optional
	BareMetalHostRef *BareMetalHostReference `json:"bareMetalHostRef,omitempty"`
}

ImageClusterInstallSpec defines the desired state of ImageClusterInstall

func (*ImageClusterInstallSpec) DeepCopy

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

func (*ImageClusterInstallSpec) DeepCopyInto

func (in *ImageClusterInstallSpec) DeepCopyInto(out *ImageClusterInstallSpec)

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

type ImageClusterInstallStatus

type ImageClusterInstallStatus struct {
	// Conditions is a list of conditions associated with syncing to the cluster.
	// +optional
	Conditions []hivev1.ClusterInstallCondition `json:"conditions,omitempty"`

	// InstallRestarts is the total count of container restarts on the clusters install job.
	InstallRestarts int `json:"installRestarts,omitempty"`

	BareMetalHostRef *BareMetalHostReference `json:"bareMetalHostRef,omitempty"`

	// ConfigurationImageURL is the externally accessible URL for downloading the image containing the SNO configuration
	ConfigurationImageURL string `json:"configurationImageURL,omitempty"`
}

ImageClusterInstallStatus defines the observed state of ImageClusterInstall

func (*ImageClusterInstallStatus) DeepCopy

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

func (*ImageClusterInstallStatus) DeepCopyInto

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