shared

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HostRefInitState - intial HostRef state of a new node which has not yet assigned
	HostRefInitState string = "unassigned"

	// RootDiskConvertedAnnotation - annotation set on object when root disk definition got migrated
	RootDiskConvertedAnnotation string = "osp-director.openstack.org/rootdiskconverted"
)
View Source
const (

	// CommonCondTypeEmpty - special state for 0 requested resources and 0 already provisioned
	CommonCondTypeEmpty ConditionType = "Empty"
	// CommonCondTypeWaiting - something is causing the CR to wait
	CommonCondTypeWaiting ConditionType = "Waiting"
	// CommonCondTypeProvisioning - one or more resoources are provisioning
	CommonCondTypeProvisioning ConditionType = "Provisioning"
	// CommonCondTypeProvisioned - the requested resource count has been satisfied
	CommonCondTypeProvisioned ConditionType = "Provisioned"
	// CommonCondTypeDeprovisioning - one or more resources are deprovisioning
	CommonCondTypeDeprovisioning ConditionType = "Deprovisioning"
	// CommonCondTypeError - general catch-all for actual errors
	CommonCondTypeError ConditionType = "Error"
	// CommonCondTypeCreated - general resource created
	CommonCondTypeCreated ConditionType = "Created"

	// CommonCondReasonInit - new resource set to reason Init
	CommonCondReasonInit ConditionReason = "CommonInit"
	// CommonCondReasonDeploymentSecretMissing - deployment secret does not exist
	CommonCondReasonDeploymentSecretMissing ConditionReason = "DeploymentSecretMissing"
	// CommonCondReasonDeploymentSecretError - deployment secret error
	CommonCondReasonDeploymentSecretError ConditionReason = "DeploymentSecretError"
	// CommonCondReasonSecretMissing - secret does not exist
	CommonCondReasonSecretMissing ConditionReason = "SecretMissing"
	// CommonCondReasonSecretError - secret error
	CommonCondReasonSecretError ConditionReason = "SecretError"
	// CommonCondReasonSecretDeleteError - secret deletion error
	CommonCondReasonSecretDeleteError ConditionReason = "SecretDeleteError"
	// CommonCondReasonConfigMapMissing - config map does not exist
	CommonCondReasonConfigMapMissing ConditionReason = "ConfigMapMissing"
	// CommonCondReasonConfigMapError - config map error
	CommonCondReasonConfigMapError ConditionReason = "ConfigMapError"
	// CommonCondReasonIdmSecretMissing - idm secret does not exist
	CommonCondReasonIdmSecretMissing ConditionReason = "IdmSecretMissing"
	// CommonCondReasonIdmSecretError - idm secret error
	CommonCondReasonIdmSecretError ConditionReason = "IdmSecretError"
	// CommonCondReasonCAConfigMapMissing - ca config map does not exist
	CommonCondReasonCAConfigMapMissing ConditionReason = "CAConfigMapMissing"
	// CommonCondReasonCAConfigMapError - ca config map error
	CommonCondReasonCAConfigMapError ConditionReason = "CAConfigMapError"
	// CommonCondReasonNewHostnameError - error creating new hostname
	CommonCondReasonNewHostnameError ConditionReason = "NewHostnameError"
	// CommonCondReasonCRStatusUpdateError - error updating CR status
	CommonCondReasonCRStatusUpdateError ConditionReason = "CRStatusUpdateError"
	// CommonCondReasonNNCPError - NNCP error
	CommonCondReasonNNCPError ConditionReason = "NNCPError"
	// CommonCondReasonOSNetNotFound - openstack network not found
	CommonCondReasonOSNetNotFound ConditionReason = "OSNetNotFound"
	// CommonCondReasonOSNetError - openstack network error
	CommonCondReasonOSNetError ConditionReason = "OSNetError"
	// CommonCondReasonOSNetWaiting - openstack network waiting
	CommonCondReasonOSNetWaiting ConditionReason = "OSNetWaiting"
	// CommonCondReasonOSNetAvailable - openstack networks available
	CommonCondReasonOSNetAvailable ConditionReason = "OSNetAvailable"
	// CommonCondReasonControllerReferenceError - error set controller reference on object
	CommonCondReasonControllerReferenceError ConditionReason = "ControllerReferenceError"
	// CommonCondReasonOwnerRefLabeledObjectsDeleteError - error deleting object using OwnerRef label
	CommonCondReasonOwnerRefLabeledObjectsDeleteError ConditionReason = "OwnerRefLabeledObjectsDeleteError"
	// CommonCondReasonRemoveFinalizerError - error removing finalizer from object
	CommonCondReasonRemoveFinalizerError ConditionReason = "RemoveFinalizerError"
	// CommonCondReasonAddRefLabelError - error adding reference label
	CommonCondReasonAddRefLabelError ConditionReason = "AddRefLabelError"
	// CommonCondReasonAddOSNetLabelError - error adding osnet labels
	CommonCondReasonAddOSNetLabelError ConditionReason = "AddOSNetLabelError"
	// CommonCondReasonCIDRParseError - could not parse CIDR
	CommonCondReasonCIDRParseError ConditionReason = "CIDRParseError"
	// CommonCondReasonServiceNotFound - service not found
	CommonCondReasonServiceNotFound ConditionReason = "ServiceNotFound"
)
View Source
const (

	// ConfigGeneratorCondTypeWaiting - the config generator is blocked by prerequisite objects
	ConfigGeneratorCondTypeWaiting ConditionType = "Waiting"
	// ConfigGeneratorCondTypeInitializing - the config generator is preparing to execute
	ConfigGeneratorCondTypeInitializing ConditionType = "Initializing"
	// ConfigGeneratorCondTypeGenerating - the config generator is executing
	ConfigGeneratorCondTypeGenerating ConditionType = "Generating"
	// ConfigGeneratorCondTypeFinished - the config generation has finished executing
	ConfigGeneratorCondTypeFinished ConditionType = "Finished"
	// ConfigGeneratorCondTypeError - the config generation hit a generic error
	ConfigGeneratorCondTypeError ConditionType = "Error"

	// ConfigGeneratorCondReasonCMUpdated - configmap updated
	ConfigGeneratorCondReasonCMUpdated ConditionReason = "ConfigMapUpdated"
	// ConfigGeneratorCondReasonCMNotFound - configmap not found
	ConfigGeneratorCondReasonCMNotFound ConditionReason = "ConfigMapNotFound"
	// ConfigGeneratorCondReasonCMCreateError - error creating/update CM
	ConfigGeneratorCondReasonCMCreateError ConditionReason = "ConfigMapCreateError"
	// ConfigGeneratorCondReasonCMHashError - error creating/update CM
	ConfigGeneratorCondReasonCMHashError ConditionReason = "ConfigMapHashError"
	// ConfigGeneratorCondReasonCMHashChanged - cm hash changed
	ConfigGeneratorCondReasonCMHashChanged ConditionReason = "ConfigMapHashChanged"
	// ConfigGeneratorCondReasonCustomRolesNotFound - custom roles file not found
	ConfigGeneratorCondReasonCustomRolesNotFound ConditionReason = "CustomRolesNotFound"
	// ConfigGeneratorCondReasonVMInstanceList - VM instance list error
	ConfigGeneratorCondReasonVMInstanceList ConditionReason = "VMInstanceListError"
	// ConfigGeneratorCondReasonFencingTemplateError - Error creating fencing config parameters
	ConfigGeneratorCondReasonFencingTemplateError ConditionReason = "FencingTemplateError"
	// ConfigGeneratorCondReasonEphemeralHeatUpdated - Ephemeral heat created/updated
	ConfigGeneratorCondReasonEphemeralHeatUpdated ConditionReason = "EphemeralHeatUpdated"
	// ConfigGeneratorCondReasonEphemeralHeatLaunch - Ephemeral heat to launch
	ConfigGeneratorCondReasonEphemeralHeatLaunch ConditionReason = "EphemeralHeatLaunch"
	// ConfigGeneratorCondReasonEphemeralHeatDelete - Ephemeral heat delete
	ConfigGeneratorCondReasonEphemeralHeatDelete ConditionReason = "EphemeralHeatDelete"
	// ConfigGeneratorCondReasonExportFailed - Export of Ctlplane Heat Parameters Failed
	ConfigGeneratorCondReasonExportFailed ConditionReason = "CtlplaneExportFailed"
	// ConfigGeneratorCondReasonJobCreated - created job
	ConfigGeneratorCondReasonJobCreated ConditionReason = "JobCreated"
	// ConfigGeneratorCondReasonJobDelete - delete job
	ConfigGeneratorCondReasonJobDelete ConditionReason = "JobDelete"
	// ConfigGeneratorCondReasonJobFailed - failed job
	ConfigGeneratorCondReasonJobFailed ConditionReason = "JobFailed"
	// ConfigGeneratorCondReasonJobFinished - job finished
	ConfigGeneratorCondReasonJobFinished ConditionReason = "JobFinished"
	// ConfigGeneratorCondReasonConfigCreate - config create in progress
	ConfigGeneratorCondReasonConfigCreate ConditionReason = "ConfigCreate"
	// ConfigGeneratorCondReasonWaitingNodesProvisioned - waiting on nodes be provisioned
	ConfigGeneratorCondReasonWaitingNodesProvisioned ConditionReason = "WaitingNodesProvisioned"
	// ConfigGeneratorCondReasonInputLabelError - error adding/update ConfigGeneratorInputLabel
	ConfigGeneratorCondReasonInputLabelError ConditionReason = "ConfigGeneratorInputLabelError"
	// ConfigGeneratorCondReasonRenderEnvFilesError - error rendering environmane file
	ConfigGeneratorCondReasonRenderEnvFilesError ConditionReason = "RenderEnvFilesError"
	// ConfigGeneratorCondReasonClusterServiceIPError - error rendering environmane file
	ConfigGeneratorCondReasonClusterServiceIPError ConditionReason = "ClusterServiceIPError"
)

ConfigGenerator

View Source
const (
	// BaremetalSetCondTypeEmpty - special state for 0 requested BaremetalHosts and 0 already provisioned
	BaremetalSetCondTypeEmpty ConditionType = "Empty"
	// BaremetalSetCondTypeWaiting - something other than BaremetalHost availability is causing the OpenStackBaremetalSet to wait
	BaremetalSetCondTypeWaiting ConditionType = "Waiting"
	// BaremetalSetCondTypeProvisioning - one or more BaremetalHosts are provisioning
	BaremetalSetCondTypeProvisioning ConditionType = "Provisioning"
	// BaremetalSetCondTypeProvisioned - the requested BaremetalHosts count has been satisfied
	BaremetalSetCondTypeProvisioned ConditionType = "Provisioned"
	// BaremetalSetCondTypeDeprovisioning - one or more BaremetalHosts are deprovisioning
	BaremetalSetCondTypeDeprovisioning ConditionType = "Deprovisioning"
	// BaremetalSetCondTypeInsufficient - one or more BaremetalHosts not found (either for scale-up or scale-down) to satisfy count request
	BaremetalSetCondTypeInsufficient ConditionType = "Insufficient availability"
	// BaremetalSetCondTypeError - general catch-all for actual errors
	BaremetalSetCondTypeError ConditionType = "Error"

	// BaremetalHostCondReasonListError - metal3 bmh list objects error
	BaremetalHostCondReasonListError ConditionReason = "BaremetalHostListError"
	// BaremetalHostCondReasonGetError - error get metal3 bmh object
	BaremetalHostCondReasonGetError ConditionReason = "BaremetalHostGetError"
	// BaremetalHostCondReasonUpdateError - error updating metal3 bmh object
	BaremetalHostCondReasonUpdateError ConditionReason = "BaremetalHostUpdateError"
	// BaremetalHostCondReasonCloudInitSecretError - error creating cloud-init secrets for metal3
	BaremetalHostCondReasonCloudInitSecretError ConditionReason = "BaremetalHostCloudInitSecretError"

	// BaremetalSetCondReasonError - General error getting the OSBms object
	BaremetalSetCondReasonError ConditionReason = "BaremetalSetError"
	// BaremetalSetCondReasonBaremetalHostNotFound - bare metal host resource itself was not found
	BaremetalSetCondReasonBaremetalHostNotFound ConditionReason = "BaremetalHostNotFound"
	// BaremetalSetCondReasonBaremetalHostStatusNotFound - bare metal host status not found
	BaremetalSetCondReasonBaremetalHostStatusNotFound ConditionReason = "BaremetalHostStatusNotFound"
	// BaremetalSetCondReasonUserDataSecretDeleteError - error deleting user data secret
	BaremetalSetCondReasonUserDataSecretDeleteError ConditionReason = "BaremetalSetUserDataSecretDeleteError"
	// BaremetalSetCondReasonNetworkDataSecretDeleteError - error deleting network data secret
	BaremetalSetCondReasonNetworkDataSecretDeleteError ConditionReason = "BaremetalSetNetworkDataSecretDeleteError"
	// BaremetalSetCondReasonScaleDownInsufficientAnnotatedHosts - not enough nodes annotated for deletion
	BaremetalSetCondReasonScaleDownInsufficientAnnotatedHosts ConditionReason = "BaremetalSetScaleDownInsufficientAnnotatedHosts"
	// BaremetalSetCondReasonScaleUpInsufficientHosts - not enough nodes for requested host count
	BaremetalSetCondReasonScaleUpInsufficientHosts ConditionReason = "BaremetalSetScaleUpInsufficientHosts"
	// BaremetalSetCondReasonProvisioningErrors - errors during bmh provisioning
	BaremetalSetCondReasonProvisioningErrors ConditionReason = "BaremetalSetProvisioningErrors"
	// BaremetalSetCondReasonVirtualMachineProvisioning - bmh provisioning in progress
	BaremetalSetCondReasonVirtualMachineProvisioning ConditionReason = "BaremetalHostProvisioning"
	// BaremetalSetCondReasonVirtualMachineDeprovisioning - bmh deprovisioning in progress
	BaremetalSetCondReasonVirtualMachineDeprovisioning ConditionReason = "BaremetalHostDeprovisioning"
	// BaremetalSetCondReasonVirtualMachineProvisioned - bmh provisioned
	BaremetalSetCondReasonVirtualMachineProvisioned ConditionReason = "BaremetalHostProvisioned"
	// BaremetalSetCondReasonVirtualMachineCountZero - no bmh requested
	BaremetalSetCondReasonVirtualMachineCountZero ConditionReason = "BaremetalHostCountZero"
)

BaremetalSet

View Source
const (
	// ControlPlaneEmpty - special state for 0 requested VMs and 0 already provisioned
	ControlPlaneEmpty ConditionType = "Empty"
	// ControlPlaneWaiting - something is causing the OpenStackBaremetalSet to wait
	ControlPlaneWaiting ConditionType = "Waiting"
	// ControlPlaneProvisioning - one or more VMs are provisioning
	ControlPlaneProvisioning ConditionType = "Provisioning"
	// ControlPlaneProvisioned - the requested VM count for all roles has been satisfied
	ControlPlaneProvisioned ConditionType = "Provisioned"
	// ControlPlaneDeprovisioning - one or more VMs are deprovisioning
	ControlPlaneDeprovisioning ConditionType = "Deprovisioning"
	// ControlPlaneError - general catch-all for actual errors
	ControlPlaneError ConditionType = "Error"

	// ControlPlaneReasonNetNotFound - osctlplane not found
	ControlPlaneReasonNetNotFound ConditionReason = "CtlPlaneNotFound"
	// ControlPlaneReasonNotSupportedVersion - osctlplane not found
	ControlPlaneReasonNotSupportedVersion ConditionReason = "CtlPlaneNotSupportedVersion"
	// ControlPlaneReasonTripleoPasswordsSecretError - Tripleo password secret error
	ControlPlaneReasonTripleoPasswordsSecretError ConditionReason = "TripleoPasswordsSecretError"
	// ControlPlaneReasonTripleoPasswordsSecretNotFound - Tripleo password secret not found
	ControlPlaneReasonTripleoPasswordsSecretNotFound ConditionReason = "TripleoPasswordsSecretNotFound"
	// ControlPlaneReasonTripleoPasswordsSecretCreateError - Tripleo password secret create error
	ControlPlaneReasonTripleoPasswordsSecretCreateError ConditionReason = "TripleoPasswordsSecretCreateError"
	// ControlPlaneReasonDeploymentSSHKeysSecretError - Deployment SSH Keys Secret Error
	ControlPlaneReasonDeploymentSSHKeysSecretError ConditionReason = "DeploymentSSHKeysSecretError"
	// ControlPlaneReasonDeploymentSSHKeysGenError - Deployment SSH Keys generation Error
	ControlPlaneReasonDeploymentSSHKeysGenError ConditionReason = "DeploymentSSHKeysGenError"
	// ControlPlaneReasonDeploymentSSHKeysSecretCreateOrUpdateError - Deployment SSH Keys Secret Crate or Update Error
	ControlPlaneReasonDeploymentSSHKeysSecretCreateOrUpdateError ConditionReason = "DeploymentSSHKeysSecretCreateOrUpdateError"
)

ControlPlane

View Source
const (

	// DeployCondTypeWaiting - the deployment is waiting
	DeployCondTypeWaiting ConditionType = "Waiting"
	// DeployCondTypeInitializing - the deployment is waiting
	DeployCondTypeInitializing ConditionType = "Initializing"
	// DeployCondTypeRunning - the deployment is running
	DeployCondTypeRunning ConditionType = "Running"
	// DeployCondTypeFinished - the deploy has finished executing
	DeployCondTypeFinished ConditionType = "Finished"
	// DeployCondTypeError - the deployment hit a generic error
	DeployCondTypeError ConditionType = "Error"

	// DeployCondReasonJobCreated - job created
	DeployCondReasonJobCreated ConditionReason = "JobCreated"
	// DeployCondReasonJobCreateFailed - job create failed
	DeployCondReasonJobCreateFailed ConditionReason = "JobCreated"
	// DeployCondReasonJobDelete - job deleted
	DeployCondReasonJobDelete ConditionReason = "JobDeleted"
	// DeployCondReasonJobFinished - job deleted
	DeployCondReasonJobFinished ConditionReason = "JobFinished"
	// DeployCondReasonCVUpdated - error creating/update ConfigVersion
	DeployCondReasonCVUpdated ConditionReason = "ConfigVersionUpdated"
	// DeployCondReasonConfigVersionNotFound - error finding ConfigVersion
	DeployCondReasonConfigVersionNotFound ConditionReason = "ConfigVersionNotFound"
	// DeployCondReasonJobFailed - error creating/update CM
	DeployCondReasonJobFailed ConditionReason = "JobFailed"
	// DeployCondReasonConfigCreate - error creating/update CM
	DeployCondReasonConfigCreate ConditionReason = "ConfigCreate"
)

Deploy

View Source
const (

	// MACCondTypeWaiting - the mac creation is blocked by prerequisite objects
	MACCondTypeWaiting ConditionType = "Waiting"
	// MACCondTypeCreating - we are waiting for mac addresses to be created
	MACCondTypeCreating ConditionType = "Creating"
	// MACCondTypeConfigured - the MAC addresses have been created
	MACCondTypeConfigured ConditionType = "Created"
	// MACCondTypeError - the mac creation hit a error
	MACCondTypeError ConditionType = "Error"

	// MACCondReasonRemovedIPs - the removed MAC reservations
	MACCondReasonRemovedIPs ConditionReason = "RemovedIPs"
	// MACCondReasonNetNotFound - osnet not found
	MACCondReasonNetNotFound ConditionReason = "NetNotFound"
	// MACCondReasonCreateMACError - error creating MAC address
	MACCondReasonCreateMACError ConditionReason = "CreateMACError"
	// MACCondReasonAllMACAddressesCreated - all MAC addresses created
	MACCondReasonAllMACAddressesCreated ConditionReason = "MACAddressesCreated"
	// MACCondReasonError - General error getting the OSMACaddr object
	MACCondReasonError ConditionReason = "MACError"
	// MACCondReasonMACNotFound - osmacaddr object not found
	MACCondReasonMACNotFound ConditionReason = "OpenStackMACNotFound"
)

MACAddress

View Source
const (

	// NetWaiting - the network configuration is blocked by prerequisite objects
	NetWaiting ConditionType = "Waiting"
	// NetInitializing - we are waiting for underlying OCP network resource(s) to appear
	NetInitializing ConditionType = "Initializing"
	// NetConfiguring - the underlying network resources are configuring the nodes
	NetConfiguring ConditionType = "Configuring"
	// NetConfigured - the nodes have been configured by the underlying network resources
	NetConfigured ConditionType = "Configured"
	// NetError - the network configuration hit a generic error
	NetError ConditionType = "Error"

	// NetCondReasonCreated - osnet created
	NetCondReasonCreated ConditionReason = "OpenStackNetCreated"
	// NetCondReasonCreateError - error creating osnet object
	NetCondReasonCreateError ConditionReason = "OpenStackNetCreateError"
	// NetCondReasonNetNotFound - error osnet not found
	NetCondReasonNetNotFound ConditionReason = "OpenStackNetNotFound"
)

Net

View Source
const (

	// NetAttachWaiting - the network configuration is blocked by prerequisite objects
	NetAttachWaiting ConditionType = "Waiting"
	// NetAttachInitializing - we are waiting for underlying OCP network resource(s) to appear
	NetAttachInitializing ConditionType = "Initializing"
	// NetAttachConfiguring - the underlying network resources are configuring the nodes
	NetAttachConfiguring ConditionType = "Configuring"
	// NetAttachConfigured - the nodes have been configured by the underlying network resources
	NetAttachConfigured ConditionType = "Configured"
	// NetAttachError - the network configuration hit a generic error
	NetAttachError ConditionType = "Error"

	// NetAttachCondReasonCreated - osnetattachment created
	NetAttachCondReasonCreated ConditionReason = "OpenStackNetAttachCreated"
	// NetAttachCondReasonCreateError - error creating osnetatt object
	NetAttachCondReasonCreateError ConditionReason = "OpenStackNetAttachCreateError"
)

NetAttach

View Source
const (
	// NetConfigWaiting - the network configuration is blocked by prerequisite objects
	NetConfigWaiting ConditionType = "Waiting"
	// NetConfigInitializing - we are waiting for underlying OCP network resource(s) to appear
	NetConfigInitializing ConditionType = "Initializing"
	// NetConfigConfiguring - the underlying network resources are configuring the nodes
	NetConfigConfiguring ConditionType = "Configuring"
	// NetConfigConfigured - the nodes have been configured by the underlying network resources
	NetConfigConfigured ConditionType = "Configured"
	// NetConfigError - the network configuration hit a generic error
	NetConfigError ConditionType = "Error"

	// NetConfigCondReasonError - osnetcfg error
	NetConfigCondReasonError ConditionReason = "OpenStackNetConfigError"
	// NetConfigCondReasonWaitingOnIPsForHost - waiting on IPs for all configured networks to be created
	NetConfigCondReasonWaitingOnIPsForHost ConditionReason = "WaitingOnIPsForHost"
	// NetConfigCondReasonWaitingOnHost - waiting on host to be added to osnetcfg
	NetConfigCondReasonWaitingOnHost ConditionReason = "WaitingOnHost"
	// NetConfigCondReasonIPReservationError - Failed to do ip reservation
	NetConfigCondReasonIPReservationError ConditionReason = "IPReservationError"
	// NetConfigCondReasonIPReservation - ip reservation created
	NetConfigCondReasonIPReservation ConditionReason = "IPReservationCreated"
)

NetConfig

View Source
const (
	// ProvisionServerCondTypeWaiting - something else is causing the OpenStackProvisionServer to wait
	ProvisionServerCondTypeWaiting ConditionType = "Waiting"
	// ProvisionServerCondTypeProvisioning - the provision server pod is provisioning
	ProvisionServerCondTypeProvisioning ConditionType = "Provisioning"
	// ProvisionServerCondTypeProvisioned - the provision server pod is ready
	ProvisionServerCondTypeProvisioned ConditionType = "Provisioned"
	// ProvisionServerCondTypeError - general catch-all for actual errors
	ProvisionServerCondTypeError ConditionType = "Error"

	// OpenStackProvisionServerCondReasonListError - osprovserver list objects error
	OpenStackProvisionServerCondReasonListError ConditionReason = "OpenStackProvisionServerListError"
	// OpenStackProvisionServerCondReasonGetError - osprovserver list objects error
	OpenStackProvisionServerCondReasonGetError ConditionReason = "OpenStackProvisionServerCondReasonGetError"
	// OpenStackProvisionServerCondReasonNotFound - osprovserver object not found
	OpenStackProvisionServerCondReasonNotFound ConditionReason = "OpenStackProvisionServerNotFound"
	// OpenStackProvisionServerCondReasonInterfaceAcquireError - osprovserver hit an error while finding provisioning interface name
	OpenStackProvisionServerCondReasonInterfaceAcquireError ConditionReason = "OpenStackProvisionServerCondReasonInterfaceAcquireError"
	// OpenStackProvisionServerCondReasonInterfaceNotFound - osprovserver unable to find provisioning interface name
	OpenStackProvisionServerCondReasonInterfaceNotFound ConditionReason = "OpenStackProvisionServerCondReasonInterfaceNotFound"
	// OpenStackProvisionServerCondReasonDeploymentError - osprovserver associated deployment failed to create/update
	OpenStackProvisionServerCondReasonDeploymentError ConditionReason = "OpenStackProvisionServerCondReasonDeploymentError"
	// OpenStackProvisionServerCondReasonDeploymentCreated - osprovserver associated deployment has been created/update
	OpenStackProvisionServerCondReasonDeploymentCreated ConditionReason = "OpenStackProvisionServerCondReasonDeploymentCreated"
	// OpenStackProvisionServerCondReasonProvisioning - osprovserver associated pod is provisioning
	OpenStackProvisionServerCondReasonProvisioning ConditionReason = "OpenStackProvisionServerCondReasonProvisioning"
	// OpenStackProvisionServerCondReasonLocalImageURLParseError - osprovserver was unable to parse its received local image URL
	OpenStackProvisionServerCondReasonLocalImageURLParseError ConditionReason = "OpenStackProvisionServerCondReasonLocalImageURLParseError"
	// OpenStackProvisionServerCondReasonProvisioned - osprovserver associated pod is provisioned
	OpenStackProvisionServerCondReasonProvisioned ConditionReason = "OpenStackProvisionServerCondReasonProvisioned"
	// OpenStackProvisionServerCondReasonCreateError - error creating osprov server object
	OpenStackProvisionServerCondReasonCreateError ConditionReason = "OpenStackProvisionServerCreateError"
	// OpenStackProvisionServerCondReasonCreated - osprov server object created
	OpenStackProvisionServerCondReasonCreated ConditionReason = "OpenStackProvisionServerCreated"
)

ProvisionServer

View Source
const (

	// VMSetCondTypeEmpty - special state for 0 requested VMs and 0 already provisioned
	VMSetCondTypeEmpty ConditionType = "Empty"
	// VMSetCondTypeWaiting - something is causing the OpenStackVmSet to wait
	VMSetCondTypeWaiting ConditionType = "Waiting"
	// VMSetCondTypeProvisioning - one or more VMs are provisioning
	VMSetCondTypeProvisioning ConditionType = "Provisioning"
	// VMSetCondTypeProvisioned - the requested VM count has been satisfied
	VMSetCondTypeProvisioned ConditionType = "Provisioned"
	// VMSetCondTypeDeprovisioning - one or more VMs are deprovisioning
	VMSetCondTypeDeprovisioning ConditionType = "Deprovisioning"
	// VMSetCondTypeError - general catch-all for actual errors
	VMSetCondTypeError ConditionType = "Error"

	// VMSetCondReasonError - error creating osvmset
	VMSetCondReasonError ConditionReason = "OpenStackVMSetError"
	// VMSetCondReasonInitialize - vmset initialize
	VMSetCondReasonInitialize ConditionReason = "OpenStackVMSetInitialize"
	// VMSetCondReasonProvisioning - vmset provisioning
	VMSetCondReasonProvisioning ConditionReason = "OpenStackVMSetProvisioning"
	// VMSetCondReasonDeprovisioning - vmset deprovisioning
	VMSetCondReasonDeprovisioning ConditionReason = "OpenStackVMSetDeprovisioning"
	// VMSetCondReasonProvisioned - vmset provisioned
	VMSetCondReasonProvisioned ConditionReason = "OpenStackVMSetProvisioned"
	// VMSetCondReasonCreated - vmset created
	VMSetCondReasonCreated ConditionReason = "OpenStackVMSetCreated"

	// VMSetCondReasonNamespaceFencingDataError - error creating the namespace fencing data
	VMSetCondReasonNamespaceFencingDataError ConditionReason = "NamespaceFencingDataError"
	// VMSetCondReasonKubevirtFencingServiceAccountError - error creating/reading the KubevirtFencingServiceAccount secret
	VMSetCondReasonKubevirtFencingServiceAccountError ConditionReason = "KubevirtFencingServiceAccountError"
	// VMSetCondReasonKubevirtError - error creating/updating Kubevirt object
	VMSetCondReasonKubevirtError ConditionReason = "KubevirtError"
	// VMSetCondReasonKubeConfigError - error getting the KubeConfig used by the operator
	VMSetCondReasonKubeConfigError ConditionReason = "KubeConfigError"
	// VMSetCondReasonCloudInitSecretError - error creating the CloudInitSecret
	VMSetCondReasonCloudInitSecretError ConditionReason = "CloudInitSecretError"
	// VMSetCondReasonDeploymentSecretMissing - deployment secret does not exist
	VMSetCondReasonDeploymentSecretMissing ConditionReason = "DeploymentSecretMissing"
	// VMSetCondReasonDeploymentSecretError - deployment secret error
	VMSetCondReasonDeploymentSecretError ConditionReason = "DeploymentSecretError"
	// VMSetCondReasonPasswordSecretMissing - password secret does not exist
	VMSetCondReasonPasswordSecretMissing ConditionReason = "PasswordSecretMissing"
	// VMSetCondReasonPasswordSecretError - password secret error
	VMSetCondReasonPasswordSecretError ConditionReason = "PasswordSecretError"

	// VMSetCondReasonVirtualMachineGetError - failed to get virtual machine
	VMSetCondReasonVirtualMachineGetError ConditionReason = "VirtualMachineGetError"
	// VMSetCondReasonVirtualMachineAnnotationMissmatch - Unable to find sufficient amount of VirtualMachine replicas annotated for scale-down
	VMSetCondReasonVirtualMachineAnnotationMissmatch ConditionReason = "VirtualMachineAnnotationMissmatch"
	// VMSetCondReasonVirtualMachineNetworkDataError - Error creating VM NetworkData
	VMSetCondReasonVirtualMachineNetworkDataError ConditionReason = "VMSetCondReasonVirtualMachineNetworkDataError"
	// VMSetCondReasonVirtualMachineProvisioning - virtual machine provisioning in progress
	VMSetCondReasonVirtualMachineProvisioning ConditionReason = "VirtualMachineProvisioning"
	// VMSetCondReasonVirtualMachineDeprovisioning - virtual machine deprovisioning in progress
	VMSetCondReasonVirtualMachineDeprovisioning ConditionReason = "VirtualMachineDeprovisioning"
	// VMSetCondReasonVirtualMachineProvisioned - virtual machines provisioned
	VMSetCondReasonVirtualMachineProvisioned ConditionReason = "VirtualMachineProvisioned"
	// VMSetCondReasonVirtualMachineCountZero - no virtual machines requested
	VMSetCondReasonVirtualMachineCountZero ConditionReason = "VirtualMachineCountZero"

	// VMSetCondReasonPersitentVolumeClaimNotFound - Persitent Volume Claim Not Found
	VMSetCondReasonPersitentVolumeClaimNotFound ConditionReason = "PersitentVolumeClaimNotFound"
	// VMSetCondReasonPersitentVolumeClaimError - Persitent Volume Claim error
	VMSetCondReasonPersitentVolumeClaimError ConditionReason = "PersitentVolumeClaimError"
	// VMSetCondReasonPersitentVolumeClaimCreating - Persitent Volume Claim create in progress
	VMSetCondReasonPersitentVolumeClaimCreating ConditionReason = "PersitentVolumeClaimCreating"
	// VMSetCondReasonBaseImageNotReady - VM base image not ready
	VMSetCondReasonBaseImageNotReady ConditionReason = "BaseImageNotReady"
)

VMSet

View Source
const (

	// NetworkNameLabelSelector -
	NetworkNameLabelSelector = "ooo-netname"
	// NetworkNameLowerLabelSelector -
	NetworkNameLowerLabelSelector = "ooo-netname-lower"
	// SubNetNameLabelSelector -
	SubNetNameLabelSelector = "ooo-subnetname"
	// ControlPlaneNetworkLabelSelector - is the network a ctlplane network?
	ControlPlaneNetworkLabelSelector = "ooo-ctlplane-network"
	// OpenStackNetConfigReconcileLabel - label set on objects on which change
	// trigger a reconcile of the osnetconfig
	OpenStackNetConfigReconcileLabel = "osnetconfig-ref"
	// OpenStackBaremetalSetAppLabel -
	OpenStackBaremetalSetAppLabel = "osp-baremetalset"
	// OwnerControllerNameLabelSelector -
	OwnerControllerNameLabelSelector string = "osp-director.openstack.org/controller"
	// OwnerUIDLabelSelector -
	OwnerUIDLabelSelector string = "osp-director.openstack.org/uid"
	// OwnerNameLabelSelector -
	OwnerNameLabelSelector = "osp-director.openstack.org/name"
	// RequireBMHDeprovision - placed on a BMH to indicate that it must fully deprovision before we are done with it
	RequireBMHDeprovision = "osp-director.openstack.org/require-deprovision"
)
View Source
const (
	// HostRemovalAnnotation - Annotation key placed on VM or BMH resources to target them for scale-down
	HostRemovalAnnotation = "osp-director.openstack.org/delete-host"
)

Variables

This section is empty.

Functions

func InitMap

func InitMap(m *map[string]string)

InitMap - Inititialise a map to an empty map if it is nil.

func IsIPv4

func IsIPv4(ip net.IP) bool

IsIPv4 checks if an IP is v4.

func IsIPv6

func IsIPv6(ip net.IP) bool

IsIPv6 checks if an IP is v6.

func MergeStringMaps

func MergeStringMaps(baseMap map[string]string, extraMaps ...map[string]string) map[string]string

MergeStringMaps - merge two or more string->map maps

Types

type APIAction

type APIAction string

APIAction - typedef to enumerate API verbs

const (
	// APIActionCreate - "create" API verb
	APIActionCreate APIAction = "create"
	// APIActionUpdate - "update" API verb
	APIActionUpdate APIAction = "update"
	// APIActionDelete - "delete" API verb
	APIActionDelete APIAction = "delete"
)

type BackupMode

type BackupMode string

BackupMode - whether the backup should be saved or restored

const (
	// BackupSave - save current operator config
	BackupSave BackupMode = "save"
	// BackupRestore - restore operator config contained in this backup
	BackupRestore BackupMode = "restore"
	// BackupCleanRestore - restore operator config contained in this backup after first deleting current config
	BackupCleanRestore BackupMode = "cleanRestore"
)

type BackupState

type BackupState string

BackupState - the state of this openstack network

const (
	// BackupWaiting - the backup/restore is blocked by prerequisite objects
	BackupWaiting BackupState = "Waiting"
	// BackupQuiescing - the backup/restore is waiting for controllers to complete pending operations
	BackupQuiescing BackupState = "Quiescing"
	// BackupSaving - the backup is saving the current config of the operator
	BackupSaving BackupState = "Saving"
	// BackupSaved - the backup contains the saved config of the operator
	BackupSaved BackupState = "Saved"
	// BackupSaveError - the backup failed to save the operator config for some reason
	BackupSaveError BackupState = "Save Error"
	// BackupCleaning - the backup is waiting to restore until cleaning is completed
	BackupCleaning BackupState = "Cleaning"
	// BackupLoading - the backup is being loaded into the operator to prepare for restoring via reconciliation
	BackupLoading BackupState = "Loading"
	// BackupReconciling - the backup is being restored via reconciliation as the config of the operator
	BackupReconciling BackupState = "Reconciling"
	// BackupRestored - the backup was restored as the config of the operator
	BackupRestored BackupState = "Restored"
	// BackupRestoreError - the backup restore failed for some reason
	BackupRestoreError BackupState = "Restore Error"
)

type Condition

type Condition struct {
	Type               ConditionType          `json:"type"`
	Status             corev1.ConditionStatus `json:"status"`
	Reason             ConditionReason        `json:"reason,omitempty"`
	Message            string                 `json:"message,omitempty"`
	LastHeartbeatTime  metav1.Time            `json:"lastHearbeatTime,omitempty"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime,omitempty"`
}

Condition - A particular overall condition of a certain resource

func NewCondition

func NewCondition(conditionType ConditionType, status corev1.ConditionStatus, reason ConditionReason, message string) Condition

NewCondition - Create a new condition object

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionDetails

type ConditionDetails struct {
	ConditionNotFoundType   ConditionType
	ConditionNotFoundReason ConditionReason
	ConditionErrorType      ConditionType
	ConditionErrordReason   ConditionReason
}

ConditionDetails used for passing condition information into generic functions e.f. GetDataFromSecret

func (*ConditionDetails) DeepCopy

func (in *ConditionDetails) DeepCopy() *ConditionDetails

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

func (*ConditionDetails) DeepCopyInto

func (in *ConditionDetails) DeepCopyInto(out *ConditionDetails)

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

type ConditionList

type ConditionList []Condition

ConditionList - A list of conditions

func (ConditionList) DeepCopy

func (in ConditionList) DeepCopy() ConditionList

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

func (ConditionList) DeepCopyInto

func (in ConditionList) DeepCopyInto(out *ConditionList)

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

func (ConditionList) Find

func (conditions ConditionList) Find(conditionType ConditionType) *Condition

Find - Check for the existence of a particular condition type in a list of conditions

func (ConditionList) GetCurrentCondition

func (conditions ConditionList) GetCurrentCondition() *Condition

GetCurrentCondition - Get current condition with status == corev1.ConditionTrue

func (ConditionList) InitCondition

func (conditions ConditionList) InitCondition() *Condition

InitCondition - Either return the current condition (if non-nil), or return an empty Condition

func (*ConditionList) Set

func (conditions *ConditionList) Set(conditionType ConditionType, status corev1.ConditionStatus, reason ConditionReason, message string)

Set - Set a particular condition in a given condition list

func (*ConditionList) UpdateCurrentCondition

func (conditions *ConditionList) UpdateCurrentCondition(conditionType ConditionType, reason ConditionReason, message string)

UpdateCurrentCondition - update current state condition, and sets previous condition to corev1.ConditionFalse

type ConditionReason

type ConditionReason string

ConditionReason - Why a particular condition is true, false or unknown

const (

	// OsClientCondReasonError - error creating openstackclient
	OsClientCondReasonError ConditionReason = "OpenStackClientError"
	// OsClientCondReasonProvisioned - pod created
	OsClientCondReasonProvisioned ConditionReason = "OpenStackClientProvisioned"
	// OsClientCondReasonCreated - created openstackclient
	OsClientCondReasonCreated ConditionReason = "OpenStackClientCreated"
	// OsClientCondReasonPVCError - error creating pvc
	OsClientCondReasonPVCError ConditionReason = "PVCError"
	// OsClientCondReasonPVCProvisioned - pvcs provisioned
	OsClientCondReasonPVCProvisioned ConditionReason = "PVCProvisioned"
	// OsClientCondReasonPodError - error creating pod
	OsClientCondReasonPodError ConditionReason = "PodError"
	// OsClientCondReasonPodProvisioned - pod created
	OsClientCondReasonPodProvisioned ConditionReason = "OpenStackClientPodProvisioned"
	// OsClientCondReasonPodDeleted - pod deleted
	OsClientCondReasonPodDeleted ConditionReason = "OpenStackClientPodDeleted"
	// OsClientCondReasonPodDeleteError - pod delete error
	OsClientCondReasonPodDeleteError ConditionReason = "PodDeleteError"
	// OsClientCondReasonPodMissing - openstackclient pod missing
	OsClientCondReasonPodMissing ConditionReason = "OpenStackClientPodMissing"
)

Client

const (

	// EphemeralHeatCondGenPassSecretError - error generating password secret
	EphemeralHeatCondGenPassSecretError ConditionReason = "EphemeralHeatCondGenPassSecretError"
	// EphemeralHeatCondWaitOnPassSecret - waiting for the generated password secret to populate
	EphemeralHeatCondWaitOnPassSecret ConditionReason = "EphemeralHeatCondWaitOnPassSecret"
	// EphemeralHeatCondMariaDBError - error creating/updating MariaDB pod or service
	EphemeralHeatCondMariaDBError ConditionReason = "EphemeralHeatCondMariaDBError"
	// EphemeralHeatCondWaitOnMariaDB - waiting for MariaDB pod to be ready
	EphemeralHeatCondWaitOnMariaDB ConditionReason = "EphemeralHeatCondWaitOnMariaDB"
	// EphemeralHeatCondRabbitMQError - error creating/updating RabbitMQ pod or service
	EphemeralHeatCondRabbitMQError ConditionReason = "EphemeralHeatCondRabbitMQError"
	// EphemeralHeatCondWaitOnRabbitMQ - waiting for RabbitMQ pod to be ready
	EphemeralHeatCondWaitOnRabbitMQ ConditionReason = "EphemeralHeatCondWaitOnRabbitMQ"
	// EphemeralHeatCondHeatError - error creating/updating Heat pod or service
	EphemeralHeatCondHeatError ConditionReason = "EphemeralHeatCondHeatError"
	// EphemeralHeatCondWaitOnHeat - waiting for Heat pod to be ready
	EphemeralHeatCondWaitOnHeat ConditionReason = "EphemeralHeatCondWaitOnHeat"
	// EphemeralHeatReady - Heat is available for use
	EphemeralHeatReady ConditionReason = "EphemeralHeatReady"
)

EphemeralHeat

const (

	// IPSetCondReasonError - General error getting the OSIPset object
	IPSetCondReasonError ConditionReason = "OpenStackIPSetError"
	// IPSetCondReasonProvisioned - ipset provisioned
	IPSetCondReasonProvisioned ConditionReason = "OpenStackIPSetProvisioned"
	// IPSetCondReasonWaitingOnHosts - ipset Waiting on hosts to be created on IPSet
	IPSetCondReasonWaitingOnHosts ConditionReason = "OpenStackIPSetWaitingOnHostsCreated"
	// IPSetCondReasonCreated - created ipset
	IPSetCondReasonCreated ConditionReason = "OpenStackIPSetCreated"
)

IPSet

type ConditionType

type ConditionType string

ConditionType - A summarizing name for a given condition

type OSPVersion

type OSPVersion string

OSPVersion - OSP template version

const (

	// TemplateVersionTrain - upstream train template version
	TemplateVersionTrain OSPVersion = "train"
	// TemplateVersion16_2 - OSP 16.2 template version
	TemplateVersion16_2 OSPVersion = "16.2"
	// TemplateVersionWallaby - upstream wallaby template version
	TemplateVersionWallaby OSPVersion = "wallaby"
	// TemplateVersion17_0 - OSP 17.0 template version
	TemplateVersion17_0 OSPVersion = "17.0"
	// TemplateVersion17_1 - OSP 17.1 template version
	TemplateVersion17_1 OSPVersion = "17.1"
)

func GetOSPVersion

func GetOSPVersion(parsedVersion string) (OSPVersion, error)

GetOSPVersion - returns unified ospdirectorv1beta1.OSPVersion for upstream/downstream version

  • TemplateVersion16_2 for eitner 16.2 or upstream train
  • TemplateVersion17_0 for 17.0
  • TemplateVersion17_1 for eitner 17.1 or upstream wallaby

type OpenStackControlPlaneDefaults

type OpenStackControlPlaneDefaults struct {
	OpenStackRelease string
}

OpenStackControlPlaneDefaults -

func (*OpenStackControlPlaneDefaults) DeepCopy

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

func (*OpenStackControlPlaneDefaults) DeepCopyInto

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

type ProvisioningState

type ProvisioningState string

ProvisioningState - the overall state of all VMs in this OpenStackVmSet

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL