v1beta1

package
v0.0.0-...-53753df Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 13 modules, 24 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1beta1 contains API Schema definitions for the agent-install.openshift.io v1beta1 API group +kubebuilder:object:generate=true +groupName=agent-install.openshift.io

Index

Constants

View Source
const (
	SpecSyncedCondition conditionsv1.ConditionType = "SpecSynced"

	ConnectedCondition      conditionsv1.ConditionType = "Connected"
	AgentConnectedReason    string                     = "AgentIsConnected"
	AgentDisconnectedReason string                     = "AgentIsDisconnected"
	AgentConnectedMsg       string                     = "The agent's connection to the installation service is unimpaired"
	AgentDisonnectedMsg     string                     = "The agent has not contacted the installation service in some time, user action should be taken"

	InstalledCondition conditionsv1.ConditionType = "Installed"

	RequirementsMetCondition       conditionsv1.ConditionType = "RequirementsMet"
	AgentReadyReason               string                     = "AgentIsReady"
	AgentReadyMsg                  string                     = "The agent is ready to begin the installation"
	AgentNotReadyReason            string                     = "AgentNotReady"
	AgentNotReadyMsg               string                     = "The agent is not ready to begin the installation"
	AgentAlreadyInstallingReason   string                     = "AgentAlreadyInstalling"
	AgentAlreadyInstallingMsg      string                     = "Installation already started and is in progress"
	AgentIsNotApprovedReason       string                     = "AgentIsNotApproved"
	AgentIsNotApprovedMsg          string                     = "The agent is not approved"
	AgentInstallationStoppedReason string                     = "AgentInstallationStopped"
	AgentInstallationStoppedMsg    string                     = "The agent installation stopped"

	ValidatedCondition             conditionsv1.ConditionType = "Validated"
	AgentValidationsPassingMsg     string                     = "The agent's validations are passing"
	AgentValidationsUnknownMsg     string                     = "The agent's validations have not yet been calculated"
	AgentValidationsFailingMsg     string                     = "The agent's validations are failing:"
	AgentValidationsUserPendingMsg string                     = "The agent's validations are pending for user:"

	InstalledReason              string = "InstallationCompleted"
	InstalledMsg                 string = "The installation has completed:"
	InstallationFailedReason     string = "InstallationFailed"
	InstallationFailedMsg        string = "The installation has failed:"
	InstallationNotStartedReason string = "InstallationNotStarted"
	InstallationNotStartedMsg    string = "The installation has not yet started"
	InstallationInProgressReason string = "InstallationInProgress"
	InstallationInProgressMsg    string = "The installation is in progress:"
	UnknownStatusReason          string = "UnknownStatus"
	UnknownStatusMsg             string = "The installation status is currently not recognized:"

	ValidationsPassingReason     string = "ValidationsPassing"
	ValidationsUnknownReason     string = "ValidationsUnknown"
	ValidationsFailingReason     string = "ValidationsFailing"
	ValidationsUserPendingReason string = "ValidationsUserPending"

	NotAvailableReason string = "NotAvailable"
	NotAvailableMsg    string = "Information not available"

	SyncedOkReason     string = "SyncOK"
	SyncedOkMsg        string = "The Spec has been successfully applied"
	BackendErrorReason string = "BackendError"
	BackendErrorMsg    string = "The Spec could not be synced due to backend error:"
	InputErrorReason   string = "InputError"
	InputErrorMsg      string = "The Spec could not be synced due to an input error:"

	BoundCondition                   conditionsv1.ConditionType = "Bound"
	BoundReason                      string                     = "Bound"
	BoundMsg                         string                     = "The agent is bound to a cluster deployment"
	UnboundReason                    string                     = "Unbound"
	UnboundMsg                       string                     = "The agent is not bound to any cluster deployment"
	BindingReason                    string                     = "Binding"
	BindingMsg                       string                     = "The agent is currently binding to a cluster deployment"
	UnbindingReason                  string                     = "Unbinding"
	UnbindingMsg                     string                     = "The agent is currently unbinding from a cluster deployment"
	UnbindingPendingUserActionReason string                     = "UnbindingPendingUserAction"
	UnbindingPendingUserActionMsg    string                     = "The agent is currently unbinding; Pending host reboot from infraenv image"

	CleanupCondition    conditionsv1.ConditionType = "Cleanup"
	CleanupFailedReason string                     = "CleanupFailed"
)
View Source
const (
	QueryErrorsCondition conditionsv1.ConditionType = "QueryErrors"
	QueryNoErrorsReason  string                     = "NoQueryErrors"
	QueryHasErrorsReason string                     = "HasQueryErrors"
)
View Source
const (
	PVCPrefixAnnotation     = "unsupported.agent-install.openshift.io/assisted-service-pvc-prefix"
	SecretsPrefixAnnotation = "unsupported.agent-install.openshift.io/assisted-service-secrets-prefix"
)

Annotations

View Source
const (
	// ConditionReconcileCompleted reports on whether or not the local cluster is managed.
	ConditionLocalClusterManaged conditionsv1.ConditionType = "LocalClusterManaged"
	// ConditionReconcileCompleted reports whether reconcile completed without error.
	ConditionReconcileCompleted conditionsv1.ConditionType = "ReconcileCompleted"
	// ConditionDeploymentsHealthy reports whether deployments are healthy.
	ConditionDeploymentsHealthy conditionsv1.ConditionType = "DeploymentsHealthy"
	// ReasonLocalClusterImportNotEnabled when the import of local cluster is not enabled.
	ReasonLocalClusterImportNotEnabled string = "Local cluster import is not enabled"
	// ReasonLocalClusterEntitiesCreated when the local cluster is managed.
	ReasonLocalClusterManaged string = "Local cluster is managed."
	// ReasonLocalClusterEntitiesRemoved when the local cluster is not managed.
	ReasonLocalClusterNotManaged string = "Local cluster is not managed."
	// ReasonUnableToDetermineLocalClusterManagedStatus when unable to determine the status of local cluster entities.
	ReasonUnableToDetermineLocalClusterManagedStatus string = "Unable to determine local cluster managed status."
	// ReasonReconcileSucceeded when the reconcile completes all operations without error.
	ReasonReconcileSucceeded string = "ReconcileSucceeded"
	// ReasonDeploymentSucceeded when configuring/deploying the assisted-service deployment completed without errors.
	ReasonDeploymentSucceeded string = "DeploymentSucceeded"
	// ReasonStorageFailure when there was a failure configuring/deploying storage.
	ReasonStorageFailure string = "StorageFailure"
	// ReasonImageHandlerServiceFailure when there was a failure related to the assisted-image-service's service.
	ReasonImageHandlerServiceFailure string = "ImageHandlerServiceFailure"
	// ReasonAgentServiceFailure when there was a failure related to the assisted-service's service.
	ReasonAgentServiceFailure string = "AgentServiceFailure"
	// ReasonAgentServiceFailure when there was a failure related to generating/deploying the service monitor.
	ReasonAgentServiceMonitorFailure string = "AgentServiceMonitorFailure"
	// ReasonImageHandlerRouteFailure when there was a failure configuring/deploying the assisted-image-service's route.
	ReasonImageHandlerRouteFailure string = "ImageHandlerRouteFailure"
	// ReasonAgentRouteFailure when there was a failure configuring/deploying the assisted-service's route.
	ReasonAgentRouteFailure string = "AgentRouteFailure"
	// ReasonAgentLocalAuthSecretFailure when there was a failure generating/deploying the local auth key pair secret.
	ReasonAgentLocalAuthSecretFailure string = "AgentLocalAuthSecretFailure" // #nosec
	// ReasonPostgresSecretFailure when there was a failure generating/deploying the database secret.
	ReasonPostgresSecretFailure string = "PostgresSecretFailure"
	// ReasonImageHandlerServiceAccountFailure when there was a failure related to the assisted-image-service's service account.
	ReasonImageHandlerServiceAccountFailure string = "ImageHandlerServiceAccountFailure"
	// ReasonIngressCertFailure when there was a failure generating/deploying the ingress cert configmap.
	ReasonIngressCertFailure string = "IngressCertFailure"
	// ReasonConfigFailure when there was a failure configuring/deploying the assisted-service configmap.
	ReasonConfigFailure string = "ConfigFailure"
	// ReasonImageHandlerStatefulSetFailure when there was a failure configuring/deploying the assisted-image-service stateful set.
	ReasonImageHandlerStatefulSetFailure string = "ImageHandlerStatefulSetFailure"
	// ReasonDeploymentFailure when there was a failure configuring/deploying the assisted-service deployment.
	ReasonDeploymentFailure string = "DeploymentFailure"
	// ReasonStorageFailure when there was a failure configuring/deploying the validating webhook.
	ReasonValidatingWebHookFailure string = "ValidatingWebHookFailure"
	// ReasonStorageFailure when there was a failure configuring/deploying the validating webhook.
	ReasonMutatingWebHookFailure string = "MutatingWebHookFailure"
	// ReasonWebHookServiceFailure when there was a failure related to the webhook's service.
	ReasonWebHookServiceFailure string = "ReasonWebHookServiceFailure"
	// ReasonWebHookDeploymentFailure when there was a failure configuring/deploying the webhook deployment.
	ReasonWebHookDeploymentFailure string = "ReasonWebHookDeploymentFailure"
	// ReasonWebReasonWebHookClusterRoleBindingFailureHookDeploymentFailure when there was a failure configuring/deploying the webhook cluster role binding.
	ReasonWebHookClusterRoleBindingFailure string = "ReasonWebHookClusterRoleBindingFailure"
	// ReasonWebHookClusterRoleFailure when there was a failure configuring/deploying the webhook cluster role.
	ReasonWebHookClusterRoleFailure string = "ReasonWebHookClusterRoleFailure"
	// ReasonRBACConfigurationFailure when there was a failure configuring/deploying RBAC entities on hosted clusters.
	ReasonRBACConfigurationFailure string = "ReasonRBACConfigurationFailure"
	// ReasonWebHookServiceAccountFailure when there was a failure related to the webhook's service account.
	ReasonWebHookServiceAccountFailure string = "ReasonWebHookServiceAccountFailure"
	// ReasonWebHookAPIServiceFailure when there was a failure related to the webhook's API service.
	ReasonWebHookAPIServiceFailure string = "ReasonWebHookAPIServiceFailure"
	//ReasonWebHookEndpointFailure when there was a failure related to configuring the endpoint that routes to the admission service.
	ReasonWebHookEndpointFailure string = "ReasonWebHookEndpointFailure"
	// ReasonServiceServiceAccount when there was a failure configuring/deploying the assisted-service service-account.
	ReasonServiceServiceAccount string = "ServiceServiceAccount"
	// ReasonNamespaceCreationFailure when there was a failure creating the namespace.
	ReasonNamespaceCreationFailure string = "NamespaceCreationFailure"
	// ReasonSpokeClusterCRDsSyncFailure when there was a failure syncing spoke cluster CRDs.
	ReasonSpokeClusterCRDsSyncFailure string = "SpokeClusterCRDsSyncFailure"
	// ReasonKubeconfigSecretFetchFailure when there was a failure fetching kubeconfig secret.
	ReasonKubeconfigSecretFetchFailure string = "ReasonKubeconfigSecretFetchFailure"
	// ReasonSpokeClientCreationFailure when there was a failure creating spoke client.
	ReasonSpokeClientCreationFailure string = "ReasonSpokeClientCreationFailure"
	// ReasonKonnectivityAgentFailure when there was a failure creating the namespace.
	ReasonKonnectivityAgentFailure string = "KonnectivityAgentFailure"
	// ReasonOSImageCACertRefFailure when there has been a failure resolving the OS image CA using OSImageCACertRef.
	ReasonOSImageCACertRefFailure string = "OSImageCACertRefFailure"
	// ReasonOSImagesShouldBeEmptyFailure when OSImages are not empty but image service is disabled.
	ReasonOSImagesShouldBeEmptyFailure string = "OSImagesShouldBeEmptyFailure"
	// ReasonMonitoringFailure indicates there was a failure monitoring operand status
	ReasonMonitoringFailure string = "MonitoringFailure"
	// ReasonKubernetesIngressMissing indicates the user has not provided the required configuration for kubernetes ingress
	ReasonKubernetesIngressMissing string = "KubernetesIngressConfigMissing"
	// ReasonCertificateFailure indicates that the required certificates could not be created
	ReasonCertificateFailure string = "CertificateConfigurationFailure"

	// IPXEHTTPRouteEnabled is expected value in IPXEHTTPRoute to enable the route
	IPXEHTTPRouteEnabled string = "enabled"
	// IPXEHTTPRouteEnabled is expected value in IPXEHTTPRoute to disable the route
	IPXEHTTPRouteDisabled string = "disabled"
	// ReasonOSImageAdditionalParamsRefFailure when there has been a failure resolving the OS image additional params secret using OSImageAdditionalParamsRef.
	ReasonOSImageAdditionalParamsRefFailure string = "ReasonOSImageAdditionalParamsRefFailure"
	// ReasonImmutableAnnotationFailure when there has been a failure validating immutable annotations.
	ReasonImmutableAnnotationFailure string = "ImmutableAnnotationFailure"
	// ReasonNetworkPolicyFailure when there was a failure configuring/deploying a network policy.
	ReasonNetworkPolicyFailure string = "NetworkPolicyFailure"
)

ConditionType related to our reconcile loop in addition to all the reasons why ConditionStatus could be true or false.

View Source
const (
	Group   string = "agent-install.openshift.io"
	Version string = "v1beta1"
)
View Source
const (
	ImageCreatedReason                = "ImageCreated"
	ImageStateCreated                 = "Image has been created"
	ImageCreationErrorReason          = "ImageCreationError"
	ImageStateFailedToCreate          = "Failed to create image"
	InfraEnvNameLabel                 = "infraenvs.agent-install.openshift.io"
	MissingClusterDeploymentReason    = "MissingClusterDeployment"
	MissingClusterDeploymentReference = "ClusterDeployment is missing"
	InfraEnvAvailableReason           = "InfraEnvAvailable"
	InfraEnvAvailableMessage          = "InfraEnv is available"
)
View Source
const (
	ImageCreatedCondition      conditionsv1.ConditionType = "ImageCreated"
	ClusterDeploymentReference conditionsv1.ConditionType = "ClusterDeploymentReference"
)

Variables

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = schemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Agent

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

	Spec   AgentSpec   `json:"spec,omitempty"`
	Status AgentStatus `json:"status,omitempty"`
}

Agent represents a host that has been discovered by booting from an InfraEnv discovery image and can be installed as part of an OpenShift cluster.

func (*Agent) DeepCopy

func (in *Agent) DeepCopy() *Agent

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

func (*Agent) DeepCopyInto

func (in *Agent) DeepCopyInto(out *Agent)

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

func (*Agent) DeepCopyObject

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

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

type AgentApproval

type AgentApproval struct {
	// AutoApprove indicates whether Agents discovered using this InfraEnv
	// should be automatically approved by the system.
	// If true, any Agent referencing this InfraEnv may be approved without manual intervention.
	// Use only in trusted environments.
	// +optional
	// +kubebuilder:default=false
	AutoApprove bool `json:"autoApprove,omitempty"`
}

AgentApproval defines configuration for automatic approval of Agents discovered by this InfraEnv.

func (*AgentApproval) DeepCopy

func (in *AgentApproval) DeepCopy() *AgentApproval

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

func (*AgentApproval) DeepCopyInto

func (in *AgentApproval) DeepCopyInto(out *AgentApproval)

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

type AgentClassification

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

	Spec   AgentClassificationSpec   `json:"spec,omitempty"`
	Status AgentClassificationStatus `json:"status,omitempty"`
}

AgentClassification is the Schema for the AgentClassifications API

func (*AgentClassification) DeepCopy

func (in *AgentClassification) DeepCopy() *AgentClassification

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

func (*AgentClassification) DeepCopyInto

func (in *AgentClassification) DeepCopyInto(out *AgentClassification)

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

func (*AgentClassification) DeepCopyObject

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

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

type AgentClassificationList

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

AgentClassificationList contains a list of AgentClassification

func (*AgentClassificationList) DeepCopy

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

func (*AgentClassificationList) DeepCopyInto

func (in *AgentClassificationList) DeepCopyInto(out *AgentClassificationList)

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

func (*AgentClassificationList) DeepCopyObject

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

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

type AgentClassificationSpec

type AgentClassificationSpec struct {
	// LabelKey specifies the label key to apply to matched Agents
	//
	// +immutable
	LabelKey string `json:"labelKey"`

	// LabelValue specifies the label value to apply to matched Agents
	//
	// +immutable
	LabelValue string `json:"labelValue"`

	// Query is in gojq format (https://github.com/itchyny/gojq#difference-to-jq)
	// and will be invoked on each Agent's inventory. The query should return a
	// boolean. The operator will apply the label to any Agent for which "true"
	// is returned.
	Query string `json:"query"`
}

AgentClassificationSpec defines the desired state of AgentClassification

func (*AgentClassificationSpec) DeepCopy

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

func (*AgentClassificationSpec) DeepCopyInto

func (in *AgentClassificationSpec) DeepCopyInto(out *AgentClassificationSpec)

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

type AgentClassificationStatus

type AgentClassificationStatus struct {
	// MatchedCount shows how many Agents currently match the classification
	MatchedCount int `json:"matchedCount,omitempty"`

	// ErrorCount shows how many Agents encountered errors when matching the classification
	ErrorCount int `json:"errorCount,omitempty"`

	Conditions []conditionsv1.Condition `json:"conditions,omitempty"`
}

AgentClassificationStatus defines the observed state of AgentClassification

func (*AgentClassificationStatus) DeepCopy

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

func (*AgentClassificationStatus) DeepCopyInto

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

type AgentDeprovisionInfo

type AgentDeprovisionInfo struct {
	ClusterName      string `json:"cluster_name,omitempty"`
	ClusterNamespace string `json:"cluster_namespace,omitempty"`
	NodeName         string `json:"node_name,omitempty"`
	Message          string `json:"message,omitempty"`
}

func (*AgentDeprovisionInfo) DeepCopy

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

func (*AgentDeprovisionInfo) DeepCopyInto

func (in *AgentDeprovisionInfo) DeepCopyInto(out *AgentDeprovisionInfo)

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

type AgentList

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

AgentList contains a list of Agent

func (*AgentList) DeepCopy

func (in *AgentList) DeepCopy() *AgentList

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

func (*AgentList) DeepCopyInto

func (in *AgentList) DeepCopyInto(out *AgentList)

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

func (*AgentList) DeepCopyObject

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

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

type AgentServiceConfig

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

	Spec   AgentServiceConfigSpec   `json:"spec,omitempty"`
	Status AgentServiceConfigStatus `json:"status,omitempty"`
}

AgentServiceConfig represents an Assisted Service deployment. Only an AgentServiceConfig with name="agent" will be reconciled. All other names will be rejected. +operator-sdk:csv:customresourcedefinitions:displayName="Agent Service Config" +operator-sdk:csv:customresourcedefinitions:order=1

func (*AgentServiceConfig) DeepCopy

func (in *AgentServiceConfig) DeepCopy() *AgentServiceConfig

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

func (*AgentServiceConfig) DeepCopyInto

func (in *AgentServiceConfig) DeepCopyInto(out *AgentServiceConfig)

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

func (*AgentServiceConfig) DeepCopyObject

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

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

type AgentServiceConfigList

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

AgentServiceConfigList contains a list of AgentServiceConfig

func (*AgentServiceConfigList) DeepCopy

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

func (*AgentServiceConfigList) DeepCopyInto

func (in *AgentServiceConfigList) DeepCopyInto(out *AgentServiceConfigList)

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

func (*AgentServiceConfigList) DeepCopyObject

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

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

type AgentServiceConfigSpec

type AgentServiceConfigSpec struct {
	// FileSystemStorage defines the spec of the PersistentVolumeClaim to be
	// created for the assisted-service's filesystem (logs, etc).
	// With respect to the resource requests, the amount of filesystem storage
	// consumed will depend largely on the number of clusters created (~200MB
	// per cluster and ~2-3GiB per supported OpenShift version). Minimum 100GiB
	// recommended.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage for service filesystem"
	FileSystemStorage corev1.PersistentVolumeClaimSpec `json:"filesystemStorage"`
	// DatabaseStorage defines the spec of the PersistentVolumeClaim to be
	// created for the database's filesystem.
	// With respect to the resource requests, minimum 10GiB is recommended.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage for database"
	DatabaseStorage corev1.PersistentVolumeClaimSpec `json:"databaseStorage"`
	// ImageStorage defines the spec of the PersistentVolumeClaim to be
	// created for each replica of the image service.
	// If a PersistentVolumeClaim is provided 2GiB per OSImage entry is required
	// +optional
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Storage for images"
	ImageStorage *corev1.PersistentVolumeClaimSpec `json:"imageStorage"`
	// MirrorRegistryRef is the reference to the configmap that contains mirror registry configuration
	// In case no configuration is need, this field will be nil. ConfigMap must contain to entries:
	// ca-bundle.crt - hold the contents of mirror registry certificate/s
	// registries.conf - holds the content of registries.conf file configured with mirror registries
	// +optional
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Mirror Registry and Certificate ConfigMap Name"
	MirrorRegistryRef *corev1.LocalObjectReference `json:"mirrorRegistryRef,omitempty"`

	// OSImages defines a collection of Operating System images (ie. RHCOS images)
	// that the assisted-service should use as the base when generating discovery ISOs.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Operating System Images"
	OSImages []OSImage `json:"osImages,omitempty"`

	// MustGatherImages defines a collection of operator related must-gather images
	// that are used if one the operators fails to be successfully deployed
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Must-Gather Images"
	MustGatherImages []MustGatherImage `json:"mustGatherImages,omitempty"`

	// IPXEHTTPRoute is controlling whether the operator is creating plain HTTP routes
	// iPXE hosts may not work with router cyphers and may access artifacts via HTTP only
	// This setting accepts "enabled,disabled", defaults to disabled. Empty value defaults to disabled
	// The following endpoints would be exposed via http:
	// * api/assisted-installer/v2/infra-envs/<id>/downloads/files?file_name=ipxe-script in assisted-service
	// * boot-artifacts/ and images/<infra-enf id>/pxe-initrd in -image-service
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Expose IPXE HTTP route"
	// +kubebuilder:validation:Enum=enabled;disabled
	// +kubebuilder:validation:default:=disabled
	// +optional
	IPXEHTTPRoute string `json:"iPXEHTTPRoute,omitempty"`
	// UnauthenticatedRegistries is a list of registries from which container images can be pulled
	// without authentication. They will be appended to the default list (quay.io,
	// registry.ci.openshift.org). Any registry on this list will not require credentials
	// to be in the pull secret validated by the assisted-service.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="List of container registries without authentication"
	// +optional
	UnauthenticatedRegistries []string `json:"unauthenticatedRegistries,omitempty"`

	// OSImageCACertRef is a reference to a config map containing a certificate authority certificate
	// this is an optional certificate to allow a user to add a certificate authority for a HTTPS source of images
	// this certificate will be used by the assisted-image-service when pulling OS images.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="OS Image CA Cert ConfigMap reference"
	// +optional
	OSImageCACertRef *corev1.LocalObjectReference `json:"OSImageCACertRef,omitempty"`

	// OSImageAdditionalParamsRef is a reference to a secret containing a headers and query parameters to be used during OS image fetch.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="OS Images additional parameters reference"
	// +optional
	OSImageAdditionalParamsRef *corev1.LocalObjectReference `json:"OSImageAdditionalParamsRef,omitempty"`

	// Ingress contains configuration for the ingress resources.
	// Has no effect when running on an OpenShift cluster.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Ingress"
	// +optional
	Ingress *Ingress `json:"ingress,omitempty"`
}

AgentServiceConfigSpec defines the desired state of AgentServiceConfig.

func (*AgentServiceConfigSpec) DeepCopy

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

func (*AgentServiceConfigSpec) DeepCopyInto

func (in *AgentServiceConfigSpec) DeepCopyInto(out *AgentServiceConfigSpec)

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

type AgentServiceConfigStatus

type AgentServiceConfigStatus struct {
	Conditions           []conditionsv1.Condition `json:"conditions,omitempty"`
	ImmutableAnnotations map[string]string        `json:"immutableAnnotations,omitempty"`
}

AgentServiceConfigStatus defines the observed state of AgentServiceConfig

func (*AgentServiceConfigStatus) DeepCopy

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

func (*AgentServiceConfigStatus) DeepCopyInto

func (in *AgentServiceConfigStatus) DeepCopyInto(out *AgentServiceConfigStatus)

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

type AgentSpec

type AgentSpec struct {
	// +optional
	ClusterDeploymentName *ClusterReference `json:"clusterDeploymentName,omitempty"`
	// Role specifies the desired OpenShift role for this Agent in the cluster.
	// Valid values: 'master' (control plane node running API server, etcd, and scheduler),
	// 'worker' (compute node for running workloads), 'arbiter' (lightweight control plane node
	// for TNA clusters, running only etcd with reduced resource requirements), or 'auto-assign'
	// (let the service automatically assign the role based on cluster requirements).
	// The role affects hardware validation requirements and the node's responsibilities in the cluster.
	Role models.HostRole `json:"role" protobuf:"bytes,1,opt,name=role,casttype=HostRole"`
	// Hostname is the desired hostname to be configured for this host when it joins the cluster.
	// If not specified, the hostname discovered from the host's inventory will be used.
	// This value is written to the host's network configuration during installation.
	Hostname string `json:"hostname,omitempty"`
	// MachineConfigPool specifies the name of a custom MachineConfigPool for this worker node.
	// Only applicable when role is 'worker'. If set, the node will be labeled to use this
	// MachineConfigPool instead of the default 'worker' pool, allowing custom machine
	// configurations to be applied. Leave empty to use the default pool.
	MachineConfigPool string `json:"machineConfigPool,omitempty"`
	// Approved indicates whether this Agent is authorized to participate in cluster installation.
	// When false, the Agent will not be included in installation even if all other requirements
	// are met. Set to true to allow the Agent to proceed with installation.
	Approved bool `json:"approved"`
	// InstallationDiskID defines the installation destination disk (must be equal to the inventory disk id).
	// +optional
	InstallationDiskID string `json:"installation_disk_id,omitempty"`
	// InstallationDiskPath defines the installation destination disk using either its by-id or by-path value.
	// +optional
	InstallationDiskPath string `json:"installation_disk_path,omitempty"`
	// InstallerArgs is a JSON-formatted string containing additional arguments for the coreos-installer
	// command during installation. Use this to customize installation behavior such as appending kernel
	// arguments or configuring network settings that persist after installation.
	InstallerArgs string `json:"installerArgs,omitempty"`
	// IgnitionConfigOverrides is a JSON-formatted string containing user-provided Ignition configuration
	// that will be merged with the base Ignition config generated for this host. Use this to customize
	// the host's initial configuration (files, systemd units, users, etc.). The override is applied
	// during installation and takes precedence over generated configuration.
	IgnitionConfigOverrides string `json:"ignitionConfigOverrides,omitempty"`
	// IgnitionEndpointTokenReference references a secret containing an Authorization Bearer token to fetch the ignition from ignition_endpoint_url.
	IgnitionEndpointTokenReference *IgnitionEndpointTokenReference `json:"ignitionEndpointTokenReference,omitempty"`
	// IgnitionEndpointHTTPHeaders are the additional HTTP headers used when fetching the ignition.
	IgnitionEndpointHTTPHeaders map[string]string `json:"ignitionEndpointHTTPHeaders,omitempty"`
	// NodeLabels are the labels to be applied on the node associated with this agent
	NodeLabels map[string]string `json:"nodeLabels,omitempty"`
	// FencingCredentialsSecretRef is a name of a secret in the Agent's namespace that contains fencing credentials
	FencingCredentialsSecretRef string `json:"fencingCredentialsSecretRef,omitempty"`
}

AgentSpec defines the desired configuration for an Agent, including its cluster assignment, role, installation disk, and additional customizations.

func (*AgentSpec) DeepCopy

func (in *AgentSpec) DeepCopy() *AgentSpec

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

func (*AgentSpec) DeepCopyInto

func (in *AgentSpec) DeepCopyInto(out *AgentSpec)

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

type AgentStatus

type AgentStatus struct {
	// Bootstrap indicates whether this Agent has been selected as the bootstrap node for the cluster
	// installation. The bootstrap node coordinates the initial control plane formation by hosting
	// temporary services that initialize etcd and the Kubernetes API. After the other control plane
	// nodes complete installation, the bootstrap node transitions to become a regular control plane node.
	// Only one Agent per cluster will have this field set to true, and it is always assigned to a master-role Agent.
	Bootstrap bool `json:"bootstrap,omitempty"`
	// Role is the effective OpenShift role assigned to this Agent. This reflects the actual role
	// the Agent will use, which may differ from spec.role if spec.role is 'auto-assign'.
	// Possible values: 'master', 'worker', 'arbiter', 'auto-assign', or 'bootstrap'.
	// +optional
	Role models.HostRole `json:"role" protobuf:"bytes,1,opt,name=role,casttype=HostRole,omitempty"`
	// Inventory contains the hardware and system information discovered from this Agent, including CPU,
	// memory, disks, network interfaces, boot configuration, and system vendor details. This information
	// is gathered by the discovery image when the host boots and is used for validation and installation
	// planning. The inventory is continuously updated while the agent is connected.
	Inventory  HostInventory    `json:"inventory,omitempty"`
	Progress   HostProgressInfo `json:"progress,omitempty"`
	NtpSources []HostNTPSources `json:"ntpSources,omitempty"`
	// Conditions represent the latest available observations of the Agent's state. Standard condition types
	// include: 'SpecSynced' (whether spec changes were successfully applied), 'Connected' (agent's connection
	// to the service), 'RequirementsMet' (whether the agent is ready to begin installation), 'Validated'
	// (whether hardware and configuration validations are passing), 'Installed' (installation completion status),
	// and 'Bound' (whether the agent is bound to a cluster). Each condition includes a status (True/False/Unknown),
	// reason code, and human-readable message.
	Conditions []conditionsv1.Condition `json:"conditions,omitempty"`
	// DebugInfo includes information for debugging the installation process.
	// +optional
	DebugInfo DebugInfo `json:"debugInfo"`

	// ValidationsInfo is a JSON-formatted string containing the validation results for each validation id grouped by category (network, hosts-data, etc.)
	// +optional
	ValidationsInfo common.ValidationsStatus `json:"validationsInfo,omitempty"`

	// InstallationDiskID is the disk that will be used for the installation.
	// +optional
	InstallationDiskID string `json:"installation_disk_id,omitempty"`

	// DeprovisionInfo stores data related to the agent's previous cluster binding in order to clean up when the agent re-registers
	// +optional
	DeprovisionInfo *AgentDeprovisionInfo `json:"deprovision_info,omitempty"`

	// CSRStatus tracks the status of CSR approvals for the agent
	CSRStatus CSRStatus `json:"csrStatus,omitempty"`

	// Kind corresponds to the same field in the model Host. It indicates the type of cluster the host is
	// being installed to; either an existing cluster (day-2) or a new cluster (day-1).
	// Value is one of: "AddToExistingClusterHost" (day-2) or "Host" (day-1)
	// +optional
	Kind string `json:"kind,omitempty"`
}

AgentStatus represents the observed state of an Agent, including hardware inventory, installation progress, validation results, and readiness conditions.

func (*AgentStatus) DeepCopy

func (in *AgentStatus) DeepCopy() *AgentStatus

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

func (*AgentStatus) DeepCopyInto

func (in *AgentStatus) DeepCopyInto(out *AgentStatus)

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

type BootArtifacts

type BootArtifacts struct {
	// InitrdURL specifies an HTTP/S URL that contains the initrd
	// +optional
	InitrdURL string `json:"initrd"`
	// RootfsURL specifies an HTTP/S URL that contains the rootfs
	// +optional
	RootfsURL string `json:"rootfs"`
	// KernelURL specifies an HTTP/S URL that contains the kernel
	// +optional
	KernelURL string `json:"kernel"`
	// IpxeScriptURL specifies an HTTP/S URL that contains the iPXE script
	// +optional
	IpxeScriptURL string `json:"ipxeScript"`
	// DiscoveryIgnitionURL specifies an HTTP/S URL that contains the discovery ignition
	// +optional
	DiscoveryIgnitionURL string `json:"discoveryIgnitionURL"`
}

func (*BootArtifacts) DeepCopy

func (in *BootArtifacts) DeepCopy() *BootArtifacts

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

func (*BootArtifacts) DeepCopyInto

func (in *BootArtifacts) DeepCopyInto(out *BootArtifacts)

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

type CSRInfo

type CSRInfo struct {
	Name       string      `json:"name"`
	Type       CSRType     `json:"type"`
	ApprovedAt metav1.Time `json:"approvedAt"`
}

CSRInfo tracks information about an approved CSR

func (*CSRInfo) DeepCopy

func (in *CSRInfo) DeepCopy() *CSRInfo

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

func (*CSRInfo) DeepCopyInto

func (in *CSRInfo) DeepCopyInto(out *CSRInfo)

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

type CSRStatus

type CSRStatus struct {
	// CSRs that have been approved for the agent by the assisted-service
	ApprovedCSRs []CSRInfo `json:"approvedCSRs,omitempty"`

	// Last time we attempted a CSR approval
	LastApprovalAttempt metav1.Time `json:"lastApprovalAttempt,omitempty"`
}

CSRStatus tracks the status of CSR approvals for the agent

func (*CSRStatus) DeepCopy

func (in *CSRStatus) DeepCopy() *CSRStatus

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

func (*CSRStatus) DeepCopyInto

func (in *CSRStatus) DeepCopyInto(out *CSRStatus)

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

type CSRType

type CSRType string

CSRType represents the type of CSR

const (
	CSRTypeClient  CSRType = "client"
	CSRTypeServing CSRType = "serving"
)

type ClusterReference

type ClusterReference struct {
	// Name is unique within a namespace to reference a cluster resource.
	// +optional
	Name string `json:"name,omitempty"`
	// Namespace defines the space within which the cluster name must be unique.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

ClusterReference represents a Cluster Reference. It has enough information to retrieve cluster in any namespace

func (*ClusterReference) DeepCopy

func (in *ClusterReference) DeepCopy() *ClusterReference

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

func (*ClusterReference) DeepCopyInto

func (in *ClusterReference) DeepCopyInto(out *ClusterReference)

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

type DebugInfo

type DebugInfo struct {
	// EventsURL specifies an HTTP/S URL that contains events which occured during the cluster installation process
	// +optional
	EventsURL string `json:"eventsURL,omitempty"`
	// LogsURL specifies a url for download controller logs tar file.
	// +optional
	LogsURL string `json:"logsURL,omitempty"`
	// State is the current lifecycle state of the Agent. Common values include: 'discovering'
	// (initial hardware discovery), 'known' (ready for installation), 'insufficient' (hardware
	// requirements not met), 'pending-for-input' (waiting for user input), 'preparing-for-installation',
	// 'installing', 'installed', 'error' (installation failed), 'cancelled', 'disabled', 'binding'/'unbinding'
	// (cluster association changes), and various '-unbound' suffixed states for agents not associated with a cluster.
	// +optional
	State string `json:"state,omitempty"`
	//Additional information pertaining to the status of the Agent
	// +optional
	StateInfo string `json:"stateInfo,omitempty"`
}

func (*DebugInfo) DeepCopy

func (in *DebugInfo) DeepCopy() *DebugInfo

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

func (*DebugInfo) DeepCopyInto

func (in *DebugInfo) DeepCopyInto(out *DebugInfo)

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

type HostBoot

type HostBoot struct {
	CurrentBootMode string `json:"currentBootMode,omitempty"`
	PxeInterface    string `json:"pxeInterface,omitempty"`
	DeviceType      string `json:"deviceType,omitempty"`
}

func (*HostBoot) DeepCopy

func (in *HostBoot) DeepCopy() *HostBoot

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

func (*HostBoot) DeepCopyInto

func (in *HostBoot) DeepCopyInto(out *HostBoot)

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

type HostCPU

type HostCPU struct {
	Count int64 `json:"count,omitempty"`
	// Name in REST API: frequency
	ClockMegahertz int64    `json:"clockMegahertz,omitempty"`
	Flags          []string `json:"flags,omitempty"`
	ModelName      string   `json:"modelName,omitempty"`
	Architecture   string   `json:"architecture,omitempty"`
}

func (*HostCPU) DeepCopy

func (in *HostCPU) DeepCopy() *HostCPU

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

func (*HostCPU) DeepCopyInto

func (in *HostCPU) DeepCopyInto(out *HostCPU)

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

type HostDisk

type HostDisk struct {
	ID                      string                      `json:"id"`
	DriveType               string                      `json:"driveType,omitempty"`
	Vendor                  string                      `json:"vendor,omitempty"`
	Name                    string                      `json:"name,omitempty"`
	Path                    string                      `json:"path,omitempty"`
	Hctl                    string                      `json:"hctl,omitempty"`
	ByPath                  string                      `json:"byPath,omitempty"`
	ByID                    string                      `json:"byID,omitempty"`
	Model                   string                      `json:"model,omitempty"`
	Wwn                     string                      `json:"wwn,omitempty"`
	Serial                  string                      `json:"serial,omitempty"`
	SizeBytes               int64                       `json:"sizeBytes,omitempty"`
	Bootable                bool                        `json:"bootable,omitempty"`
	Smart                   string                      `json:"smart,omitempty"`
	InstallationEligibility HostInstallationEligibility `json:"installationEligibility,omitempty"`
	IoPerf                  HostIOPerf                  `json:"ioPerf,omitempty"`
}

func (*HostDisk) DeepCopy

func (in *HostDisk) DeepCopy() *HostDisk

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

func (*HostDisk) DeepCopyInto

func (in *HostDisk) DeepCopyInto(out *HostDisk)

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

type HostGpu

type HostGpu struct {
	// Device address (for example "0000:00:02.0")
	Address string `json:"address,omitempty"`
	// ID of the device (for example "3ea0")
	DeviceID string `json:"deviceID,omitempty"`
	// Product name of the device (for example "UHD Graphics 620 (Whiskey Lake)")
	Name string `json:"name,omitempty"`
	// The name of the device vendor (for example "Intel Corporation")
	Vendor string `json:"vendor,omitempty"`
	// ID of the vendor (for example "8086")
	VendorID string `json:"vendorID,omitempty"`
}

func (*HostGpu) DeepCopy

func (in *HostGpu) DeepCopy() *HostGpu

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

func (*HostGpu) DeepCopyInto

func (in *HostGpu) DeepCopyInto(out *HostGpu)

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

type HostIOPerf

type HostIOPerf struct {
	// 99th percentile of fsync duration in milliseconds
	SyncDurationMilliseconds int64 `json:"syncDurationMilliseconds,omitempty"`
}

func (*HostIOPerf) DeepCopy

func (in *HostIOPerf) DeepCopy() *HostIOPerf

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

func (*HostIOPerf) DeepCopyInto

func (in *HostIOPerf) DeepCopyInto(out *HostIOPerf)

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

type HostInstallationEligibility

type HostInstallationEligibility struct {
	Eligible           bool     `json:"eligible,omitempty"`
	NotEligibleReasons []string `json:"notEligibleReasons"`
}

func (*HostInstallationEligibility) DeepCopy

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

func (*HostInstallationEligibility) DeepCopyInto

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

type HostInterface

type HostInterface struct {
	IPV6Addresses []string `json:"ipV6Addresses"`
	Vendor        string   `json:"vendor,omitempty"`
	Name          string   `json:"name,omitempty"`
	HasCarrier    bool     `json:"hasCarrier,omitempty"`
	Product       string   `json:"product,omitempty"`
	Mtu           int64    `json:"mtu,omitempty"`
	IPV4Addresses []string `json:"ipV4Addresses"`
	Biosdevname   string   `json:"biosDevName,omitempty"`
	ClientId      string   `json:"clientID,omitempty"`
	MacAddress    string   `json:"macAddress,omitempty"`
	Flags         []string `json:"flags"`
	SpeedMbps     int64    `json:"speedMbps,omitempty"`
}

func (*HostInterface) DeepCopy

func (in *HostInterface) DeepCopy() *HostInterface

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

func (*HostInterface) DeepCopyInto

func (in *HostInterface) DeepCopyInto(out *HostInterface)

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

type HostInventory

type HostInventory struct {
	// Name in REST API: timestamp
	ReportTime   *metav1.Time     `json:"reportTime,omitempty"`
	Hostname     string           `json:"hostname,omitempty"`
	BmcAddress   string           `json:"bmcAddress,omitempty"`
	BmcV6address string           `json:"bmcV6Address,omitempty"`
	Memory       HostMemory       `json:"memory,omitempty"`
	Cpu          HostCPU          `json:"cpu,omitempty"`
	Interfaces   []HostInterface  `json:"interfaces,omitempty"`
	Disks        []HostDisk       `json:"disks,omitempty"`
	Boot         HostBoot         `json:"boot,omitempty"`
	SystemVendor HostSystemVendor `json:"systemVendor,omitempty"`
	Gpus         []HostGpu        `json:"gpus,omitempty"`
}

func (*HostInventory) DeepCopy

func (in *HostInventory) DeepCopy() *HostInventory

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

func (*HostInventory) DeepCopyInto

func (in *HostInventory) DeepCopyInto(out *HostInventory)

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

type HostMemory

type HostMemory struct {
	PhysicalBytes int64 `json:"physicalBytes,omitempty"`
	UsableBytes   int64 `json:"usableBytes,omitempty"`
}

func (*HostMemory) DeepCopy

func (in *HostMemory) DeepCopy() *HostMemory

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

func (*HostMemory) DeepCopyInto

func (in *HostMemory) DeepCopyInto(out *HostMemory)

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

type HostNTPSources

type HostNTPSources struct {
	SourceName  string             `json:"sourceName,omitempty"`
	SourceState models.SourceState `json:"sourceState,omitempty"`
}

func (*HostNTPSources) DeepCopy

func (in *HostNTPSources) DeepCopy() *HostNTPSources

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

func (*HostNTPSources) DeepCopyInto

func (in *HostNTPSources) DeepCopyInto(out *HostNTPSources)

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

type HostProgressInfo

type HostProgressInfo struct {
	// current installation stage
	CurrentStage models.HostStage `json:"currentStage,omitempty"`
	// All stages (ordered by their appearance) for this agent
	ProgressStages []models.HostStage `json:"progressStages,omitempty"`
	// Additional information for the current installation stage
	ProgressInfo string `json:"progressInfo,omitempty"`
	// Estimate progress (percentage)
	InstallationPercentage int64 `json:"installationPercentage,omitempty"`
	// host field: progress: stage_started_at
	StageStartTime *metav1.Time `json:"stageStartTime,omitempty"`
	// host field: progress: stage_updated_at
	StageUpdateTime *metav1.Time `json:"stageUpdateTime,omitempty"`
}

func (*HostProgressInfo) DeepCopy

func (in *HostProgressInfo) DeepCopy() *HostProgressInfo

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

func (*HostProgressInfo) DeepCopyInto

func (in *HostProgressInfo) DeepCopyInto(out *HostProgressInfo)

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

type HostSystemVendor

type HostSystemVendor struct {
	SerialNumber string `json:"serialNumber,omitempty"`
	ProductName  string `json:"productName,omitempty"`
	Manufacturer string `json:"manufacturer,omitempty"`
	Virtual      bool   `json:"virtual,omitempty"`
}

func (*HostSystemVendor) DeepCopy

func (in *HostSystemVendor) DeepCopy() *HostSystemVendor

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

func (*HostSystemVendor) DeepCopyInto

func (in *HostSystemVendor) DeepCopyInto(out *HostSystemVendor)

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

type HypershiftAgentServiceConfig

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

	Spec   HypershiftAgentServiceConfigSpec   `json:"spec,omitempty"`
	Status HypershiftAgentServiceConfigStatus `json:"status,omitempty"`
}

HypershiftAgentServiceConfig represents an Assisted Service deployment over zero-worker hypershift cluster. Each resource represents a deployment scheme over hosted cluster that runs in that namespace. +kubebuilder:resource:shortName=hasc +operator-sdk:csv:customresourcedefinitions:displayName="Hypershift Service Config" +operator-sdk:csv:customresourcedefinitions:order=1

func (*HypershiftAgentServiceConfig) DeepCopy

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

func (*HypershiftAgentServiceConfig) DeepCopyInto

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

func (*HypershiftAgentServiceConfig) DeepCopyObject

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

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

type HypershiftAgentServiceConfigList

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

+kubebuilder:object:root=true HypershiftAgentServiceConfigList contains a list of HypershiftAgentServiceConfigs

func (*HypershiftAgentServiceConfigList) DeepCopy

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

func (*HypershiftAgentServiceConfigList) DeepCopyInto

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

func (*HypershiftAgentServiceConfigList) DeepCopyObject

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

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

type HypershiftAgentServiceConfigSpec

type HypershiftAgentServiceConfigSpec struct {
	AgentServiceConfigSpec `json:",inline"`

	// KubeconfigSecretRef is a reference to the secret containing the kubeconfig for the destination Hypershift instance.
	// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Hypershift kubeconfig reference"
	KubeconfigSecretRef corev1.LocalObjectReference `json:"kubeconfigSecretRef"`
}

HypershiftAgentServiceConfigSpec defines the desired state of HypershiftAgentServiceConfig.

func (*HypershiftAgentServiceConfigSpec) DeepCopy

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

func (*HypershiftAgentServiceConfigSpec) DeepCopyInto

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

type HypershiftAgentServiceConfigStatus

type HypershiftAgentServiceConfigStatus struct {
	Conditions []conditionsv1.Condition `json:"conditions,omitempty"`
}

func (*HypershiftAgentServiceConfigStatus) DeepCopy

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

func (*HypershiftAgentServiceConfigStatus) DeepCopyInto

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

type IPXEScriptType

type IPXEScriptType string

IPXEScriptType is the script type that should be served (BootOrderControl/DiscoveryImageAlways) +kubebuilder:validation:Enum="";DiscoveryImageAlways;BootOrderControl

const (
	// DiscoveryImageAlways - Boot from network
	DiscoveryImageAlways IPXEScriptType = "DiscoveryImageAlways"

	// BootOrderControl - Boot with mac identification redirect script
	BootOrderControl IPXEScriptType = "BootOrderControl"
)

type IgnitionEndpointTokenReference

type IgnitionEndpointTokenReference struct {
	// Namespace is the namespace of the secret containing the ignition endpoint token.
	Namespace string `json:"namespace"`
	// Name is the name of the secret containing the ignition endpoint token.
	Name string `json:"name"`
}

func (*IgnitionEndpointTokenReference) DeepCopy

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

func (*IgnitionEndpointTokenReference) DeepCopyInto

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

type InfraEnv

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

	Spec   InfraEnvSpec   `json:"spec,omitempty"`
	Status InfraEnvStatus `json:"status,omitempty"`
}

InfraEnv represents an infrastructure environment for discovering and booting hosts. It generates a discovery ISO or iPXE configuration that hosts can boot from to register as Agents. Multiple Agents can be discovered from a single InfraEnv, and can later be assigned to different clusters.

func (*InfraEnv) DeepCopy

func (in *InfraEnv) DeepCopy() *InfraEnv

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

func (*InfraEnv) DeepCopyInto

func (in *InfraEnv) DeepCopyInto(out *InfraEnv)

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

func (*InfraEnv) DeepCopyObject

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

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

type InfraEnvDebugInfo

type InfraEnvDebugInfo struct {
	// EventsURL specifies an HTTP/S URL that contains InfraEnv events
	// +optional
	EventsURL string `json:"eventsURL"`
	// StaticNetworkDownloadURL specifies an HTTP/S URL that contains the static network config
	StaticNetworkDownloadURL string `json:"staticNetworkDownloadURL,omitempty"`
}

func (*InfraEnvDebugInfo) DeepCopy

func (in *InfraEnvDebugInfo) DeepCopy() *InfraEnvDebugInfo

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

func (*InfraEnvDebugInfo) DeepCopyInto

func (in *InfraEnvDebugInfo) DeepCopyInto(out *InfraEnvDebugInfo)

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

type InfraEnvList

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

InfraEnvList contains a list of InfraEnvs

func (*InfraEnvList) DeepCopy

func (in *InfraEnvList) DeepCopy() *InfraEnvList

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

func (*InfraEnvList) DeepCopyInto

func (in *InfraEnvList) DeepCopyInto(out *InfraEnvList)

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

func (*InfraEnvList) DeepCopyObject

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

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

type InfraEnvSpec

type InfraEnvSpec struct {
	// Proxy defines the proxy settings for agents and clusters that use the InfraEnv. If
	// unset, the agents and clusters will not be configured to use a proxy.
	// +optional
	Proxy *Proxy `json:"proxy,omitempty"`

	// AdditionalNTPSources is a list of NTP sources (hostname or IP) to be added to all cluster
	// hosts. They are added to any NTP sources that were configured through other means.
	// +optional
	AdditionalNTPSources []string `json:"additionalNTPSources,omitempty"`

	// NTPSources is a list of NTP sources (hostname or IP) to be used as the exclusive NTP
	// configuration for hosts in this InfraEnv. Mutually exclusive with AdditionalNTPSources.
	// +optional
	NTPSources []string `json:"ntpSources,omitempty"`

	// SSHAuthorizedKey is a SSH public keys that will be added to all agents for use in debugging.
	// +optional
	SSHAuthorizedKey string `json:"sshAuthorizedKey,omitempty"`

	// PullSecretRef is the reference to the secret to use when pulling images.
	PullSecretRef *corev1.LocalObjectReference `json:"pullSecretRef"`

	// AgentLabels lists labels to apply to Agents that are associated with this InfraEnv upon
	// the creation of the Agents.
	// +optional
	AgentLabels map[string]string `json:"agentLabels,omitempty"`

	// NMStateConfigLabelSelector uses label matching to associate NMStateConfig resources with this InfraEnv.
	// Hosts that boot from this InfraEnv and match the NMStateConfig's MAC address will apply the corresponding
	// static network configuration. This enables pre-configuring network settings for specific hosts before
	// they boot from the discovery image.
	// +optional
	NMStateConfigLabelSelector metav1.LabelSelector `json:"nmStateConfigLabelSelector,omitempty"`

	// ClusterRef is the reference to the single ClusterDeployment that will be installed from
	// this InfraEnv.
	// Future versions will allow for multiple ClusterDeployments and this reference will be
	// removed.
	// +optional
	ClusterRef *ClusterReference `json:"clusterRef,omitempty"`

	// Json formatted string containing the user overrides for the initial ignition config
	// +optional
	IgnitionConfigOverride string `json:"ignitionConfigOverride,omitempty"`

	// CpuArchitecture specifies the CPU architecture for hosts that will boot from this InfraEnv's
	// discovery image. Valid values: 'x86_64' (default, Intel/AMD 64-bit), 'aarch64' (ARM 64-bit),
	// 'arm64' (alias for aarch64), 'ppc64le' (IBM POWER), 's390x' (IBM Z). The architecture must
	// match both the physical hardware and the desired OpenShift release architecture.
	// +kubebuilder:default=x86_64
	// +optional
	CpuArchitecture string `json:"cpuArchitecture,omitempty"`

	// IPXEScriptType the script type that should be served (DiscoveryImageAlways/BootOrderControl)
	// DiscoveryImageAlways: Boot unconditionaly from the network discovery image
	// BootOrderControl: Boot from discovery ISO depending on the host's state.
	// When the value is BootOrderControl, the service will look for an Agent record that matches the host's MAC address;
	// if found, and if that Agent is in a state where it is provisioned and attached to a cluster, then host will boot the host disk.
	// Otherwise it will boot the discovery ISO using the same script as the DiscoveryImageAlways option.
	// +kubebuilder:default=DiscoveryImageAlways
	// +optional
	IPXEScriptType IPXEScriptType `json:"ipxeScriptType"`

	// KernelArguments is the additional kernel arguments to be passed during boot time of the discovery image.
	// Applicable for both iPXE, and ISO streaming from Image Service.
	// +optional
	KernelArguments []KernelArgument `json:"kernelArguments,omitempty"`

	// PEM-encoded X.509 certificate bundle. Hosts discovered by this
	// infra-env will trust the certificates in this bundle. Clusters formed
	// from the hosts discovered by this infra-env will also trust the
	// certificates in this bundle.
	// +optional
	AdditionalTrustBundle string `json:"additionalTrustBundle,omitempty"`

	// OSImageVersion is the version of OS image to use when generating the InfraEnv.
	// The version should refer to an OSImage specified in the AgentServiceConfig
	// (i.e. OSImageVersion should equal to an OpenshiftVersion in OSImages list).
	// Note: OSImageVersion can't be specified along with ClusterRef while creating an InfraEnv.
	// +optional
	OSImageVersion string `json:"osImageVersion,omitempty"`

	// OSStream is the OS stream to use when generating the InfraEnv (e.g. rhel-9, rhel-10).
	// If unset and ClusterRef is set, the cluster's OS stream is used.
	// Note: OSStream can't be specified along with ClusterRef while creating an InfraEnv.
	// +optional
	OSStream string `json:"osStream,omitempty"`

	// MirrorRegistryRef references a ConfigMap containing mirror registry configuration in TOML format.
	// The referenced ConfigMap should contain 'registries.conf' and optionally 'ca-bundle.crt' keys.
	// This configuration is embedded into the discovery image so that agents can pull container images
	// from mirror registries during the discovery and installation process. For the installed cluster
	// to use mirror registries, you must also configure mirrorRegistryRef on the AgentClusterInstall.
	// +optional
	MirrorRegistryRef *v1beta1.MirrorRegistryConfigMapReference `json:"mirrorRegistryRef,omitempty"`

	// ImageType specifies the type of discovery ISO to be generated by the Assisted Installer.
	// Supported values include:
	// - full-iso: A complete Red Hat CoreOS (RHCOS) ISO, customized with a specific ignition file.
	// - minimal-iso: A lightweight ISO that retrieves the remainder of the RHCOS root file system (rootfs) dynamically from the Internet
	// +optional
	ImageType models.ImageType `json:"imageType,omitempty"`

	// AgentApproval defines configuration for automatic approval of Agents
	// discovered by this InfraEnv.
	// +optional
	AgentApproval *AgentApproval `json:"agentApproval,omitempty"`

	// NetworkDiscoveryDelaySeconds is the number of seconds to wait before mapping host MACs
	// to interfaces when applying static network config on minimal ISO.
	// This can be used on hosts that need time to discover their NICs.
	// +optional
	// +kubebuilder:validation:Minimum=0
	NetworkDiscoveryDelaySeconds *int64 `json:"networkDiscoveryDelaySeconds,omitempty"`
}

InfraEnvSpec defines the desired configuration for the infrastructure environment, including the discovery image type, network settings, and host discovery parameters. These settings are baked into the discovery ISO/iPXE configuration and affect all hosts that boot from this InfraEnv.

func (*InfraEnvSpec) DeepCopy

func (in *InfraEnvSpec) DeepCopy() *InfraEnvSpec

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

func (*InfraEnvSpec) DeepCopyInto

func (in *InfraEnvSpec) DeepCopyInto(out *InfraEnvSpec)

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

type InfraEnvStatus

type InfraEnvStatus struct {
	// ISODownloadURL specifies an HTTP/S URL that contains a discovery ISO containing the
	// configuration from this InfraEnv.
	ISODownloadURL string                   `json:"isoDownloadURL,omitempty"`
	CreatedTime    *metav1.Time             `json:"createdTime,omitempty"`
	Conditions     []conditionsv1.Condition `json:"conditions,omitempty"`
	// AgentLabelSelector specifies the label that will be applied to Agents that boot from the
	// installation media of this InfraEnv. This is how a user would identify which agents are
	// associated with a particular InfraEnv.
	// +optional
	AgentLabelSelector metav1.LabelSelector `json:"agentLabelSelector,omitempty"`
	// InfraEnvDebugInfo includes information for debugging the installation process.
	// +optional
	InfraEnvDebugInfo InfraEnvDebugInfo `json:"debugInfo"`
	// BootArtifacts specifies the URLs for each boot artifact
	// +optional
	BootArtifacts BootArtifacts `json:"bootArtifacts"`
}

func (*InfraEnvStatus) DeepCopy

func (in *InfraEnvStatus) DeepCopy() *InfraEnvStatus

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

func (*InfraEnvStatus) DeepCopyInto

func (in *InfraEnvStatus) DeepCopyInto(out *InfraEnvStatus)

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

type Ingress

type Ingress struct {
	// AssistedServiceHostname is the hostname to be assigned to the assisted-service ingress.
	// Has no effect when running on an OpenShift cluster.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Assisted Service hostname"
	AssistedServiceHostname string `json:"assistedServiceHostname"`

	// ImageServiceHostname is the hostname to be assigned to the assisted-image-service ingress.
	// Has no effect when running on an OpenShift cluster.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Assisted Image Service hostname"
	ImageServiceHostname string `json:"imageServiceHostname"`

	// ClassName is the name of the ingress class to be used when configuring ingress resources.
	// Has no effect when running on an OpenShift cluster.
	//+operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Class Name"
	// +optional
	ClassName *string `json:"className,omitempty"`
}

func (*Ingress) DeepCopy

func (in *Ingress) DeepCopy() *Ingress

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

func (*Ingress) DeepCopyInto

func (in *Ingress) DeepCopyInto(out *Ingress)

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

type Interface

type Interface struct {
	// nic name used in the yaml, which relates 1:1 to the mac address.
	// Name in REST API: logicalNICName
	Name string `json:"name"`
	// mac address present on the host.
	// +kubebuilder:validation:Pattern=`^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$`
	MacAddress string `json:"macAddress"`
}

func (*Interface) DeepCopy

func (in *Interface) DeepCopy() *Interface

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

func (*Interface) DeepCopyInto

func (in *Interface) DeepCopyInto(out *Interface)

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

type KernelArgument

type KernelArgument struct {
	// Operation is the operation to apply on the kernel argument.
	// +kubebuilder:validation:Enum=append;replace;delete
	Operation string `json:"operation,omitempty"`

	// Value can have the form <parameter> or <parameter>=<value>. The following examples should be supported:
	// rd.net.timeout.carrier=60
	// isolcpus=1,2,10-20,100-2000:2/25
	// quiet
	// +kubebuilder:validation:Pattern=`^(?:(?:[^ \t\n\r"]+)|(?:"[^"]*"))+$`
	Value string `json:"value,omitempty"`
}

func (*KernelArgument) DeepCopy

func (in *KernelArgument) DeepCopy() *KernelArgument

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

func (*KernelArgument) DeepCopyInto

func (in *KernelArgument) DeepCopyInto(out *KernelArgument)

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

type MustGatherImage

type MustGatherImage struct {
	// OpenshiftVersion is the Major.Minor version of OpenShift that this image
	// is to be associated with.
	OpenshiftVersion string `json:"openshiftVersion"`
	// CPUArchitecture is the CPU architecture of the image (x86_64/arm64/multi/etc).
	// +kubebuilder:validation:Enum=x86_64;aarch64;arm64;ppc64le;s390x;multi
	// +optional
	CPUArchitecture string `json:"cpuArchitecture"`
	// Name specifies the name of the component (e.g. operator)
	// that the image is used to collect information about.
	Name string `json:"name"`
	// Url specifies the path to the Operating System image.
	Url string `json:"url"`
}

func (*MustGatherImage) DeepCopy

func (in *MustGatherImage) DeepCopy() *MustGatherImage

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

func (*MustGatherImage) DeepCopyInto

func (in *MustGatherImage) DeepCopyInto(out *MustGatherImage)

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

type NMStateConfig

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

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

func (*NMStateConfig) DeepCopy

func (in *NMStateConfig) DeepCopy() *NMStateConfig

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

func (*NMStateConfig) DeepCopyInto

func (in *NMStateConfig) DeepCopyInto(out *NMStateConfig)

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

func (*NMStateConfig) DeepCopyObject

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

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

type NMStateConfigList

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

NMStateConfigList contains a list of NMStateConfigs

func (*NMStateConfigList) DeepCopy

func (in *NMStateConfigList) DeepCopy() *NMStateConfigList

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

func (*NMStateConfigList) DeepCopyInto

func (in *NMStateConfigList) DeepCopyInto(out *NMStateConfigList)

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

func (*NMStateConfigList) DeepCopyObject

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

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

type NMStateConfigSpec

type NMStateConfigSpec struct {
	// Interfaces is an array of interface objects containing the name and MAC
	// address for interfaces that are referenced in the raw nmstate config YAML.
	// Interfaces listed here will be automatically renamed in the nmstate config
	// YAML to match the real device name that is observed to have the
	// corresponding MAC address. At least one interface must be listed so that it
	// can be used to identify the correct host, which is done by matching any MAC
	// address in this list to any MAC address observed on the host.
	// +kubebuilder:validation:MinItems=1
	Interfaces []*Interface `json:"interfaces,omitempty"`
	// yaml that can be processed by nmstate, using custom marshaling/unmarshaling that will allow to populate nmstate config as plain yaml.
	// +kubebuilder:validation:XPreserveUnknownFields
	NetConfig NetConfig `json:"config,omitempty"`
}

func (*NMStateConfigSpec) DeepCopy

func (in *NMStateConfigSpec) DeepCopy() *NMStateConfigSpec

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

func (*NMStateConfigSpec) DeepCopyInto

func (in *NMStateConfigSpec) DeepCopyInto(out *NMStateConfigSpec)

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

type NetConfig

type NetConfig struct {
	Raw RawNetConfig `json:"-"`
}

NetConfig contains the namestatectl yaml [1] as string instead of golang struct so we don't need to be in sync with the schema.

[1] https://github.com/nmstate/nmstate/blob/base/libnmstate/schemas/operational-state.yaml +kubebuilder:validation:Type=object

func (*NetConfig) DeepCopy

func (in *NetConfig) DeepCopy() *NetConfig

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

func (*NetConfig) DeepCopyInto

func (in *NetConfig) DeepCopyInto(out *NetConfig)

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

func (NetConfig) MarshalJSON

func (t NetConfig) MarshalJSON() (output []byte, err error)

We are using behind the scenes the golang encode/json so we need to return json here for golang to work well, the upper yaml parser will convert it to yaml making nmstate yaml transparent to kubernetes-nmstate

func (NetConfig) String

func (t NetConfig) String() string

Simple stringer for State

func (*NetConfig) UnmarshalJSON

func (t *NetConfig) UnmarshalJSON(b []byte) error

Bypass State parsing and directly store it as yaml string to later on pass it to namestatectl using it as transparent data at kubernetes-nmstate

type OSImage

type OSImage struct {
	// OpenshiftVersion is the Major.Minor version of OpenShift that this image
	// is to be associated with.
	OpenshiftVersion string `json:"openshiftVersion"`
	// Version is the Operating System version of the image.
	Version string `json:"version"`
	// Url specifies the path to the Operating System image.
	Url string `json:"url"`
	// rootFSUrl specifies the path to the root filesystem.
	// +optional
	// Deprecated: this field is ignored (will be removed in a future release).
	RootFSUrl string `json:"rootFSUrl"`
	// The CPU architecture of the image (x86_64/arm64/etc).
	// +optional
	CPUArchitecture string `json:"cpuArchitecture"`
	// OSStream is the OS stream of this image (e.g. rhel-9, rhel-10).
	// +optional
	OSStream string `json:"osStream,omitempty"`
	// DefaultOSStream indicates whether this OS image is the default stream
	// for its OpenShift version and CPU architecture.
	// +optional
	DefaultOSStream *bool `json:"defaultOsStream,omitempty"`
}

OSImage defines an Operating System image and the OpenShift version it is associated with.

func (*OSImage) DeepCopy

func (in *OSImage) DeepCopy() *OSImage

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

func (*OSImage) DeepCopyInto

func (in *OSImage) DeepCopyInto(out *OSImage)

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

type Proxy

type Proxy struct {
	// HTTPProxy is the URL of the proxy for HTTP requests.
	// +optional
	HTTPProxy string `json:"httpProxy,omitempty"`

	// HTTPSProxy is the URL of the proxy for HTTPS requests.
	// +optional
	HTTPSProxy string `json:"httpsProxy,omitempty"`

	// NoProxy is a comma-separated list of domains and CIDRs for which the proxy should not be
	// used.
	// +optional
	NoProxy string `json:"noProxy,omitempty"`
}

Proxy defines the proxy settings for agents and clusters that use the InfraEnv. At least one of HTTPProxy or HTTPSProxy is required.

func (*Proxy) DeepCopy

func (in *Proxy) DeepCopy() *Proxy

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

func (*Proxy) DeepCopyInto

func (in *Proxy) DeepCopyInto(out *Proxy)

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

type RawNetConfig

type RawNetConfig []byte

func (RawNetConfig) DeepCopy

func (in RawNetConfig) DeepCopy() RawNetConfig

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

func (RawNetConfig) DeepCopyInto

func (in RawNetConfig) DeepCopyInto(out *RawNetConfig)

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