v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API.

Index

Constants

View Source
const (
	// ChainNameLabel is the label set on miners linked to a chain.
	ChainNameLabel = "apps.onex.io/chain-name"

	// MinerSetNameLabel is the label set on miners linked to a minerset.
	MinerSetNameLabel = "apps.onex.io/minerset-name"

	// MinerDeploymentNameLabel is the label set on miners if they're controlled by MinerDeployment.
	MinerDeploymentNameLabel = "apps.onex.io/deployment-name"

	// MinerNamespaceAnnotation is the annotation set on pods identifying the namespace of the miner the pod belongs to.
	MinerNamespaceAnnotation = "apps.onex.io/miner-namespace"

	// MinerAnnotation is the annotation set on pods identifying the miner the pod belongs to.
	MinerAnnotation = "apps.onex.io/miner"

	// OwnerKindAnnotation is the annotation set on pods identifying the owner kind.
	OwnerKindAnnotation = "apps.onex.io/owner-kind"

	// OwnerNameAnnotation is the annotation set on pods identifying the owner name.
	OwnerNameAnnotation = "apps.onex.io/owner-name"

	// DisableMinerCreate is an annotation that can be used to signal a MinerSet to stop creating new miners.
	// It is utilized in the OnDelete MinerSetStrategy to allow the MinerSet controller to scale down
	// older MinerSets when Miners are deleted and add the new replicas to the latest MinerSet.
	DisableMinerCreateAnnotation = "apps.onex.io/disable-miner-create"

	// DeleteMinerAnnotation marks control plane and worker nodes that will be given priority for deletion
	// when KCP or a minerset scales down. This annotation is given top priority on all delete policies.
	DeleteMinerAnnotation = "apps.onex.io/delete-miner"

	// WatchLabel is a label othat can be applied to any OneX API object.
	//
	// Controllers which allow for selective reconciliation may check this label and proceed
	// with reconciliation of the object only if this label and a configured value is present.
	WatchLabel = "apps.onex.io/watch-filter"

	// PausedAnnotation is an annotation that can be applied to any OneX API
	// object to prevent a controller from processing a resource.
	//
	// Controllers working with OneX objects must check the existence of this annotation
	// on the reconciled object.
	PausedAnnotation = "apps.onex.io/paused"

	// MinerSkipRemediationAnnotation is the annotation used to mark the miners
	// that should not be considered for remediation by MinerHealthCheck reconciler.
	MinerSkipRemediationAnnotation = "apps.onex.io/skip-remediation"
)
View Source
const (
	// DeletingReason (Severity=Info) documents a condition not in Status=True because the underlying object it is currently being deleted.
	DeletingReason = "Deleting"

	// DeletionFailedReason (Severity=Warning) documents a condition not in Status=True because the underlying object
	// encountered problems during deletion. This is a warning because the reconciler will retry deletion.
	DeletionFailedReason = "DeletionFailed"

	// DeletedReason (Severity=Info) documents a condition not in Status=True because the underlying object was deleted.
	DeletedReason = "Deleted"

	// IncorrectExternalRefReason (Severity=Error) documents a CAPI object with an incorrect external object reference.
	IncorrectExternalRefReason = "IncorrectExternalRef"
)

Common ConditionReason used by Cluster API objects.

View Source
const (
	// ControlPlaneInitializedCondition reports if the cluster's control plane has been initialized such that the
	// cluster's apiserver is reachable and at least one control plane Miner has a node reference. Once this
	// condition is marked true, its value is never changed. See the ControlPlaneReady condition for an indication of
	// the current readiness of the cluster's control plane.
	ControlPlaneInitializedCondition ConditionType = "ControlPlaneInitialized"

	// MissingPodRefReason (Severity=Info) documents a cluster waiting for at least one control plane Miner to have
	// its node reference populated.
	MissingPodRefReason = "MissingPodRef"

	// WaitingForControlPlaneProviderInitializedReason (Severity=Info) documents a cluster waiting for the control plane
	// provider to report successful control plane initialization.
	WaitingForControlPlaneProviderInitializedReason = "WaitingForControlPlaneProviderInitialized"

	// ControlPlaneReadyCondition reports the ready condition from the control plane object defined for this cluster.
	// This condition is mirrored from the Ready condition in the control plane ref object, and
	// the absence of this condition might signal problems in the reconcile external loops or the fact that
	// the control plane provider does not implement the Ready condition yet.
	ControlPlaneReadyCondition ConditionType = "ControlPlaneReady"

	// WaitingForControlPlaneFallbackReason (Severity=Info) documents a cluster waiting for the control plane
	// to be available.
	// NOTE: This reason is used only as a fallback when the control plane object is not reporting its own ready condition.
	WaitingForControlPlaneFallbackReason = "WaitingForControlPlane"

	// WaitingForControlPlaneAvailableReason (Severity=Info) documents a Cluster API object
	// waiting for the control plane miner to be available.
	//
	// NOTE: Having the control plane miner available is a pre-condition for joining additional control planes
	// or workers nodes.
	WaitingForControlPlaneAvailableReason = "WaitingForControlPlaneAvailable"
)
View Source
const (
	// BootstrapReadyCondition reports a summary of current status of the bootstrap object defined for this miner.
	// This condition is mirrored from the Ready condition in the bootstrap ref object, and
	// the absence of this condition might signal problems in the reconcile external loops or the fact that
	// the bootstrap provider does not implement the Ready condition yet.
	BootstrapReadyCondition ConditionType = "BootstrapReady"

	// WaitingForDataSecretFallbackReason (Severity=Info) documents a miner waiting for the bootstrap data secret
	// to be available.
	// NOTE: This reason is used only as a fallback when the bootstrap object is not reporting its own ready condition.
	WaitingForDataSecretFallbackReason = "WaitingForDataSecret"

	// DrainingSucceededCondition provide evidence of the status of the node drain operation which happens during the miner
	// deletion process.
	DrainingSucceededCondition ConditionType = "DrainingSucceeded"

	// DrainingReason (Severity=Info) documents a miner node being drained.
	DrainingReason = "Draining"

	// DrainingFailedReason (Severity=Warning) documents a miner node drain operation failed.
	DrainingFailedReason = "DrainingFailed"

	// PreDrainDeleteHookSucceededCondition reports a miner waiting for a PreDrainDeleteHook before being delete.
	PreDrainDeleteHookSucceededCondition ConditionType = "PreDrainDeleteHookSucceeded"

	// PreTerminateDeleteHookSucceededCondition reports a miner waiting for a PreDrainDeleteHook before being delete.
	PreTerminateDeleteHookSucceededCondition ConditionType = "PreTerminateDeleteHookSucceeded"

	// WaitingExternalHookReason (Severity=Info) provide evidence that we are waiting for an external hook to complete.
	WaitingExternalHookReason = "WaitingExternalHook"

	// VolumeDetachSucceededCondition reports a miner waiting for volumes to be detached.
	VolumeDetachSucceededCondition ConditionType = "VolumeDetachSucceeded"

	// WaitingForVolumeDetachReason (Severity=Info) provide evidence that a miner node waiting for volumes to be attached.
	WaitingForVolumeDetachReason = "WaitingForVolumeDetach"
)
View Source
const (
	// MinerHealthCheckSucceededCondition is set on miners that have passed a healthcheck by the MinerHealthCheck controller.
	// In the event that the health check fails it will be set to False.
	MinerHealthCheckSucceededCondition ConditionType = "HealthCheckSucceeded"

	// MinerHealthCheckSuccededCondition is set on miners that have passed a healthcheck by the MinerHealthCheck controller.
	// In the event that the health check fails it will be set to False.
	// Deprecated: This const is going to be removed in a next release. Use MinerHealthCheckSucceededCondition instead.
	MinerHealthCheckSuccededCondition ConditionType = "HealthCheckSucceeded"

	// MinerHasFailureReason is the reason used when a miner has either a FailureReason or a FailureMessage set on its status.
	MinerHasFailureReason = "MinerHasFailure"

	// PodStartupTimeoutReason is the reason used when a miner's node does not appear within the specified timeout.
	PodStartupTimeoutReason = "PodStartupTimeout"

	// UnhealthyPodConditionReason is the reason used when a miner's node has one of the MinerHealthCheck's unhealthy conditions.
	UnhealthyPodConditionReason = "UnhealthyPod"
)
View Source
const (
	// MinerOwnerRemediatedCondition is set on miners that have failed a healthcheck by the MinerHealthCheck controller.
	// MinerOwnerRemediatedCondition is set to False after a health check fails, but should be changed to True by the owning controller after remediation succeeds.
	MinerOwnerRemediatedCondition ConditionType = "OwnerRemediated"

	// WaitingForRemediationReason is the reason used when a miner fails a health check and remediation is needed.
	WaitingForRemediationReason = "WaitingForRemediation"

	// RemediationFailedReason is the reason used when a remediation owner fails to remediate an unhealthy miner.
	RemediationFailedReason = "RemediationFailed"

	// RemediationInProgressReason is the reason used when an unhealthy miner is being remediated by the remediation owner.
	RemediationInProgressReason = "RemediationInProgress"

	// ExternalRemediationTemplateAvailable is set on minerhealthchecks when MinerHealthCheck controller uses external remediation.
	// ExternalRemediationTemplateAvailable is set to false if external remediation template is not found.
	ExternalRemediationTemplateAvailable ConditionType = "ExternalRemediationTemplateAvailable"

	// ExternalRemediationTemplateNotFound is the reason used when a miner health check fails to find external remediation template.
	ExternalRemediationTemplateNotFound = "ExternalRemediationTemplateNotFound"

	// ExternalRemediationRequestAvailable is set on minerhealthchecks when MinerHealthCheck controller uses external remediation.
	// ExternalRemediationRequestAvailable is set to false if creating external remediation request fails.
	ExternalRemediationRequestAvailable ConditionType = "ExternalRemediationRequestAvailable"

	// ExternalRemediationRequestCreationFailed is the reason used when a miner health check fails to create external remediation request.
	ExternalRemediationRequestCreationFailed = "ExternalRemediationRequestCreationFailed"
)
View Source
const (
	// MinerPodHealthyCondition provides info about the operational state of the Kubernetes node hosted on the miner by summarizing  node conditions.
	// If the conditions defined in a Kubernetes node (i.e., PodReady, PodMemoryPressure, PodDiskPressure, PodPIDPressure, and PodNetworkUnavailable) are in a healthy state, it will be set to True.
	MinerPodHealthyCondition ConditionType = "PodHealthy"

	// WaitingForPodRefReason (Severity=Info) documents a miner.spec.providerId is not assigned yet.
	WaitingForPodRefReason = "WaitingForPodRef"

	// PodProvisioningReason (Severity=Info) documents miner in the process of provisioning a node.
	// NB. provisioning --> PodRef == "".
	PodProvisioningReason = "PodProvisioning"

	// PodNotFoundReason (Severity=Error) documents a miner's node has previously been observed but is now gone.
	// NB. provisioned --> PodRef != "".
	PodNotFoundReason = "PodNotFound"

	// PodConditionsFailedReason (Severity=Warning) documents a node is not in a healthy state due to the failed state of at least 1 Kubelet condition.
	PodConditionsFailedReason = "PodConditionsFailed"
)

Conditions and condition Reasons for the Miner's Pod object.

View Source
const (
	// MinersCreatedCondition documents that the miners controlled by the MinerSet are created.
	// When this condition is false, it indicates that there was an error when cloning the infrastructure/bootstrap template or
	// when generating the miner object.
	MinersCreatedCondition ConditionType = "MinersCreated"

	// MinersReadyCondition reports an aggregate of current status of the miners controlled by the MinerSet.
	MinersReadyCondition ConditionType = "MinersReady"

	// BootstrapTemplateCloningFailedReason (Severity=Error) documents a MinerSet failing to
	// clone the bootstrap template.
	BootstrapTemplateCloningFailedReason = "BootstrapTemplateCloningFailed"

	// InfrastructureTemplateCloningFailedReason (Severity=Error) documents a MinerSet failing to
	// clone the infrastructure template.
	InfrastructureTemplateCloningFailedReason = "InfrastructureTemplateCloningFailed"

	// MinerCreationFailedReason (Severity=Error) documents a MinerSet failing to
	// generate a miner object.
	MinerCreationFailedReason = "MinerCreationFailed"

	// ResizedCondition documents a MinerSet is resizing the set of controlled miners.
	ResizedCondition ConditionType = "Resized"

	// ScalingUpReason (Severity=Info) documents a MinerSet is increasing the number of replicas.
	ScalingUpReason = "ScalingUp"

	// ScalingDownReason (Severity=Info) documents a MinerSet is decreasing the number of replicas.
	ScalingDownReason = "ScalingDown"

	ConfigMapsCreatedCondition ConditionType = "ConfigMapsCreated"

	ConfigMapCreationFailedReason = "ConfigMapCreationFailed"
)
View Source
const (
	// TopologyReconciledCondition provides evidence about the reconciliation of a Cluster topology into
	// the managed objects of the Cluster.
	// Status false means that for any reason, the values defined in Cluster.spec.topology are not yet applied to
	// managed objects on the Cluster; status true means that Cluster.spec.topology have been applied to
	// the objects in the Cluster (but this does not imply those objects are already reconciled to the spec provided).
	TopologyReconciledCondition ConditionType = "TopologyReconciled"

	// TopologyReconcileFailedReason (Severity=Error) documents the reconciliation of a Cluster topology
	// failing due to an error.
	TopologyReconcileFailedReason = "TopologyReconcileFailed"

	// TopologyReconciledControlPlaneUpgradePendingReason (Severity=Info) documents reconciliation of a Cluster topology
	// not yet completed because Control Plane is not yet updated to match the desired topology spec.
	TopologyReconciledControlPlaneUpgradePendingReason = "ControlPlaneUpgradePending"

	// TopologyReconciledMinerDeploymentsUpgradePendingReason (Severity=Info) documents reconciliation of a Cluster topology
	// not yet completed because at least one of the MinerDeployments is not yet updated to match the desired topology spec.
	TopologyReconciledMinerDeploymentsUpgradePendingReason = "MinerDeploymentsUpgradePending"

	// TopologyReconciledHookBlockingReason (Severity=Info) documents reconciliation of a Cluster topology
	// not yet completed because at least one of the lifecycle hooks is blocking.
	TopologyReconciledHookBlockingReason = "LifecycleHookBlocking"
)

Conditions and condition reasons for Clusters with a managed Topology.

View Source
const (
	// MinerPhasePending is the first state a Miner is assigned by
	// Cloud Miner controller after being created.
	MinerPhasePending = MinerPhase("Pending")

	// MinerPhaseProvisioning is the state when the
	// Miner infrastructure is being created.
	MinerPhaseProvisioning = MinerPhase("Provisioning")

	// MinerPhaseRunning is the Miner state when it has
	// become a running miner and ready to mine.
	MinerPhaseRunning = MinerPhase("Running")

	// MinerPhaseDeleting is the Miner state when a delete
	// request has been sent to the API Server,
	// but its infrastructure has not yet been fully deleted.
	MinerPhaseDeleting = MinerPhase("Deleting")

	// MinerPhaseFailed is the Miner state when the system
	// might require user intervention.
	MinerPhaseFailed = MinerPhase("Failed")

	// MinerPhaseUnknown is returned if the Miner state cannot be determined.
	MinerPhaseUnknown = MinerPhase("Unknown")
)
View Source
const (
	// ChainFinalizer is the finalizer used by the Chain controller to
	// clean up referenced template resources if necessary when a Chain is being deleted.
	ChainFinalizer = "chain.onex.io/finalizer"
)
View Source
const (
	// ChargeRequestFinalizer is the finalizer used by the ChargeRequest controller to
	// clean up referenced template resources if necessary when a ChargeRequest is being deleted.
	ChargeRequestFinalizer = "chargerequest.onex.io/finalizer"
)
View Source
const GroupName = "apps.onex.io"

GroupName is the group name used in this package.

View Source
const (
	// MinerFinalizer is the finalizer used by the Miner controller to
	// clean up referenced template resources if necessary when a Miner is being deleted.
	MinerFinalizer = "miner.onex.io/finalizer"
)
View Source
const (
	// MinerSetFinalizer is the finalizer used by the MinerSet controller to
	// clean up referenced template resources if necessary when a MinerSet is being deleted.
	MinerSetFinalizer = "minerset.onex.io/finalizer"
)

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs)

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Convert_apps_ChainList_To_v1beta1_ChainList

func Convert_apps_ChainList_To_v1beta1_ChainList(in *apps.ChainList, out *ChainList, s conversion.Scope) error

Convert_apps_ChainList_To_v1beta1_ChainList is an autogenerated conversion function.

func Convert_apps_ChainSpec_To_v1beta1_ChainSpec

func Convert_apps_ChainSpec_To_v1beta1_ChainSpec(in *apps.ChainSpec, out *ChainSpec, s conversion.Scope) error

Convert_apps_ChainSpec_To_v1beta1_ChainSpec is an autogenerated conversion function.

func Convert_apps_ChainStatus_To_v1beta1_ChainStatus

func Convert_apps_ChainStatus_To_v1beta1_ChainStatus(in *apps.ChainStatus, out *ChainStatus, s conversion.Scope) error

Convert_apps_ChainStatus_To_v1beta1_ChainStatus is an autogenerated conversion function.

func Convert_apps_Chain_To_v1beta1_Chain

func Convert_apps_Chain_To_v1beta1_Chain(in *apps.Chain, out *Chain, s conversion.Scope) error

Convert_apps_Chain_To_v1beta1_Chain is an autogenerated conversion function.

func Convert_apps_Condition_To_v1beta1_Condition

func Convert_apps_Condition_To_v1beta1_Condition(in *apps.Condition, out *Condition, s conversion.Scope) error

Convert_apps_Condition_To_v1beta1_Condition is an autogenerated conversion function.

func Convert_apps_LocalObjectReference_To_v1beta1_LocalObjectReference

func Convert_apps_LocalObjectReference_To_v1beta1_LocalObjectReference(in *apps.LocalObjectReference, out *LocalObjectReference, s conversion.Scope) error

Convert_apps_LocalObjectReference_To_v1beta1_LocalObjectReference is an autogenerated conversion function.

func Convert_apps_MinerAddress_To_v1beta1_MinerAddress

func Convert_apps_MinerAddress_To_v1beta1_MinerAddress(in *apps.MinerAddress, out *MinerAddress, s conversion.Scope) error

Convert_apps_MinerAddress_To_v1beta1_MinerAddress is an autogenerated conversion function.

func Convert_apps_MinerList_To_v1beta1_MinerList

func Convert_apps_MinerList_To_v1beta1_MinerList(in *apps.MinerList, out *MinerList, s conversion.Scope) error

Convert_apps_MinerList_To_v1beta1_MinerList is an autogenerated conversion function.

func Convert_apps_MinerSetList_To_v1beta1_MinerSetList

func Convert_apps_MinerSetList_To_v1beta1_MinerSetList(in *apps.MinerSetList, out *MinerSetList, s conversion.Scope) error

Convert_apps_MinerSetList_To_v1beta1_MinerSetList is an autogenerated conversion function.

func Convert_apps_MinerSetSpec_To_v1beta1_MinerSetSpec

func Convert_apps_MinerSetSpec_To_v1beta1_MinerSetSpec(in *apps.MinerSetSpec, out *MinerSetSpec, s conversion.Scope) error

Convert_apps_MinerSetSpec_To_v1beta1_MinerSetSpec is an autogenerated conversion function.

func Convert_apps_MinerSetStatus_To_v1beta1_MinerSetStatus

func Convert_apps_MinerSetStatus_To_v1beta1_MinerSetStatus(in *apps.MinerSetStatus, out *MinerSetStatus, s conversion.Scope) error

Convert_apps_MinerSetStatus_To_v1beta1_MinerSetStatus is an autogenerated conversion function.

func Convert_apps_MinerSet_To_v1beta1_MinerSet

func Convert_apps_MinerSet_To_v1beta1_MinerSet(in *apps.MinerSet, out *MinerSet, s conversion.Scope) error

Convert_apps_MinerSet_To_v1beta1_MinerSet is an autogenerated conversion function.

func Convert_apps_MinerSpec_To_v1beta1_MinerSpec

func Convert_apps_MinerSpec_To_v1beta1_MinerSpec(in *apps.MinerSpec, out *MinerSpec, s conversion.Scope) error

Convert_apps_MinerSpec_To_v1beta1_MinerSpec is an autogenerated conversion function.

func Convert_apps_MinerStatus_To_v1beta1_MinerStatus

func Convert_apps_MinerStatus_To_v1beta1_MinerStatus(in *apps.MinerStatus, out *MinerStatus, s conversion.Scope) error

Convert_apps_MinerStatus_To_v1beta1_MinerStatus is an autogenerated conversion function.

func Convert_apps_MinerTemplateSpec_To_v1beta1_MinerTemplateSpec

func Convert_apps_MinerTemplateSpec_To_v1beta1_MinerTemplateSpec(in *apps.MinerTemplateSpec, out *MinerTemplateSpec, s conversion.Scope) error

Convert_apps_MinerTemplateSpec_To_v1beta1_MinerTemplateSpec is an autogenerated conversion function.

func Convert_apps_Miner_To_v1beta1_Miner

func Convert_apps_Miner_To_v1beta1_Miner(in *apps.Miner, out *Miner, s conversion.Scope) error

Convert_apps_Miner_To_v1beta1_Miner is an autogenerated conversion function.

func Convert_apps_ObjectMeta_To_v1beta1_ObjectMeta

func Convert_apps_ObjectMeta_To_v1beta1_ObjectMeta(in *apps.ObjectMeta, out *ObjectMeta, s conversion.Scope) error

Convert_apps_ObjectMeta_To_v1beta1_ObjectMeta is an autogenerated conversion function.

func Convert_apps_PodInfo_To_v1beta1_PodInfo

func Convert_apps_PodInfo_To_v1beta1_PodInfo(in *apps.PodInfo, out *PodInfo, s conversion.Scope) error

Convert_apps_PodInfo_To_v1beta1_PodInfo is an autogenerated conversion function.

func Convert_v1beta1_ChainList_To_apps_ChainList

func Convert_v1beta1_ChainList_To_apps_ChainList(in *ChainList, out *apps.ChainList, s conversion.Scope) error

Convert_v1beta1_ChainList_To_apps_ChainList is an autogenerated conversion function.

func Convert_v1beta1_ChainSpec_To_apps_ChainSpec

func Convert_v1beta1_ChainSpec_To_apps_ChainSpec(in *ChainSpec, out *apps.ChainSpec, s conversion.Scope) error

Convert_v1beta1_ChainSpec_To_apps_ChainSpec is an autogenerated conversion function.

func Convert_v1beta1_ChainStatus_To_apps_ChainStatus

func Convert_v1beta1_ChainStatus_To_apps_ChainStatus(in *ChainStatus, out *apps.ChainStatus, s conversion.Scope) error

Convert_v1beta1_ChainStatus_To_apps_ChainStatus is an autogenerated conversion function.

func Convert_v1beta1_Chain_To_apps_Chain

func Convert_v1beta1_Chain_To_apps_Chain(in *Chain, out *apps.Chain, s conversion.Scope) error

Convert_v1beta1_Chain_To_apps_Chain is an autogenerated conversion function.

func Convert_v1beta1_Condition_To_apps_Condition

func Convert_v1beta1_Condition_To_apps_Condition(in *Condition, out *apps.Condition, s conversion.Scope) error

Convert_v1beta1_Condition_To_apps_Condition is an autogenerated conversion function.

func Convert_v1beta1_LocalObjectReference_To_apps_LocalObjectReference

func Convert_v1beta1_LocalObjectReference_To_apps_LocalObjectReference(in *LocalObjectReference, out *apps.LocalObjectReference, s conversion.Scope) error

Convert_v1beta1_LocalObjectReference_To_apps_LocalObjectReference is an autogenerated conversion function.

func Convert_v1beta1_MinerAddress_To_apps_MinerAddress

func Convert_v1beta1_MinerAddress_To_apps_MinerAddress(in *MinerAddress, out *apps.MinerAddress, s conversion.Scope) error

Convert_v1beta1_MinerAddress_To_apps_MinerAddress is an autogenerated conversion function.

func Convert_v1beta1_MinerList_To_apps_MinerList

func Convert_v1beta1_MinerList_To_apps_MinerList(in *MinerList, out *apps.MinerList, s conversion.Scope) error

Convert_v1beta1_MinerList_To_apps_MinerList is an autogenerated conversion function.

func Convert_v1beta1_MinerSetList_To_apps_MinerSetList

func Convert_v1beta1_MinerSetList_To_apps_MinerSetList(in *MinerSetList, out *apps.MinerSetList, s conversion.Scope) error

Convert_v1beta1_MinerSetList_To_apps_MinerSetList is an autogenerated conversion function.

func Convert_v1beta1_MinerSetSpec_To_apps_MinerSetSpec

func Convert_v1beta1_MinerSetSpec_To_apps_MinerSetSpec(in *MinerSetSpec, out *apps.MinerSetSpec, s conversion.Scope) error

Convert_v1beta1_MinerSetSpec_To_apps_MinerSetSpec is an autogenerated conversion function.

func Convert_v1beta1_MinerSetStatus_To_apps_MinerSetStatus

func Convert_v1beta1_MinerSetStatus_To_apps_MinerSetStatus(in *MinerSetStatus, out *apps.MinerSetStatus, s conversion.Scope) error

Convert_v1beta1_MinerSetStatus_To_apps_MinerSetStatus is an autogenerated conversion function.

func Convert_v1beta1_MinerSet_To_apps_MinerSet

func Convert_v1beta1_MinerSet_To_apps_MinerSet(in *MinerSet, out *apps.MinerSet, s conversion.Scope) error

Convert_v1beta1_MinerSet_To_apps_MinerSet is an autogenerated conversion function.

func Convert_v1beta1_MinerSpec_To_apps_MinerSpec

func Convert_v1beta1_MinerSpec_To_apps_MinerSpec(in *MinerSpec, out *apps.MinerSpec, s conversion.Scope) error

Convert_v1beta1_MinerSpec_To_apps_MinerSpec is an autogenerated conversion function.

func Convert_v1beta1_MinerStatus_To_apps_MinerStatus

func Convert_v1beta1_MinerStatus_To_apps_MinerStatus(in *MinerStatus, out *apps.MinerStatus, s conversion.Scope) error

Convert_v1beta1_MinerStatus_To_apps_MinerStatus is an autogenerated conversion function.

func Convert_v1beta1_MinerTemplateSpec_To_apps_MinerTemplateSpec

func Convert_v1beta1_MinerTemplateSpec_To_apps_MinerTemplateSpec(in *MinerTemplateSpec, out *apps.MinerTemplateSpec, s conversion.Scope) error

Convert_v1beta1_MinerTemplateSpec_To_apps_MinerTemplateSpec is an autogenerated conversion function.

func Convert_v1beta1_Miner_To_apps_Miner

func Convert_v1beta1_Miner_To_apps_Miner(in *Miner, out *apps.Miner, s conversion.Scope) error

Convert_v1beta1_Miner_To_apps_Miner is an autogenerated conversion function.

func Convert_v1beta1_ObjectMeta_To_apps_ObjectMeta

func Convert_v1beta1_ObjectMeta_To_apps_ObjectMeta(in *ObjectMeta, out *apps.ObjectMeta, s conversion.Scope) error

Convert_v1beta1_ObjectMeta_To_apps_ObjectMeta is an autogenerated conversion function.

func Convert_v1beta1_PodInfo_To_apps_PodInfo

func Convert_v1beta1_PodInfo_To_apps_PodInfo(in *PodInfo, out *apps.PodInfo, s conversion.Scope) error

Convert_v1beta1_PodInfo_To_apps_PodInfo is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

func SetDefaults_Chain

func SetDefaults_Chain(obj *Chain)

SetDefaults_Chain sets defaults for Chain.

func SetDefaults_ChainSpec

func SetDefaults_ChainSpec(obj *ChainSpec)

SetDefaults_ChainSpec sets defaults for Chain spec.

func SetDefaults_Miner

func SetDefaults_Miner(obj *Miner)

SetDefaults_Miner sets defaults for Miner.

func SetDefaults_MinerSpec

func SetDefaults_MinerSpec(obj *MinerSpec)

SetDefaults_MinerSpec sets defaults for Miner spec.

func SetObjectDefaults_Chain

func SetObjectDefaults_Chain(in *Chain)

func SetObjectDefaults_ChainList

func SetObjectDefaults_ChainList(in *ChainList)

func SetObjectDefaults_Miner

func SetObjectDefaults_Miner(in *Miner)

func SetObjectDefaults_MinerList

func SetObjectDefaults_MinerList(in *MinerList)

func SetObjectDefaults_MinerSet

func SetObjectDefaults_MinerSet(in *MinerSet)

func SetObjectDefaults_MinerSetList

func SetObjectDefaults_MinerSetList(in *MinerSetList)

Types

type Chain

type Chain struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the chain.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec ChainSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Status is the most recently observed status of the Chain.
	// This data may be out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Status ChainStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Chain is the Schema for the chains API.

func (*Chain) DeepCopy

func (in *Chain) DeepCopy() *Chain

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

func (*Chain) DeepCopyInto

func (in *Chain) DeepCopyInto(out *Chain)

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

func (*Chain) DeepCopyObject

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

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

func (*Chain) Descriptor

func (*Chain) Descriptor() ([]byte, []int)

func (*Chain) GetConditions

func (ch *Chain) GetConditions() Conditions

GetConditions returns the set of conditions for this object.

func (*Chain) Marshal

func (m *Chain) Marshal() (dAtA []byte, err error)

func (*Chain) MarshalTo

func (m *Chain) MarshalTo(dAtA []byte) (int, error)

func (*Chain) MarshalToSizedBuffer

func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) Reset

func (m *Chain) Reset()

func (*Chain) SetConditions

func (ch *Chain) SetConditions(conditions Conditions)

SetConditions sets the conditions on this object.

func (*Chain) Size

func (m *Chain) Size() (n int)

func (*Chain) String

func (this *Chain) String() string

func (Chain) SwaggerDoc

func (Chain) SwaggerDoc() map[string]string

func (*Chain) Unmarshal

func (m *Chain) Unmarshal(dAtA []byte) error

func (*Chain) XXX_DiscardUnknown

func (m *Chain) XXX_DiscardUnknown()

func (*Chain) XXX_Marshal

func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chain) XXX_Merge

func (m *Chain) XXX_Merge(src proto.Message)

func (*Chain) XXX_Size

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal

func (m *Chain) XXX_Unmarshal(b []byte) error

type ChainList

type ChainList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of schema objects.
	Items []Chain `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ChainList is a list of Chain objects.

func (*ChainList) DeepCopy

func (in *ChainList) DeepCopy() *ChainList

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

func (*ChainList) DeepCopyInto

func (in *ChainList) DeepCopyInto(out *ChainList)

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

func (*ChainList) DeepCopyObject

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

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

func (*ChainList) Descriptor

func (*ChainList) Descriptor() ([]byte, []int)

func (*ChainList) Marshal

func (m *ChainList) Marshal() (dAtA []byte, err error)

func (*ChainList) MarshalTo

func (m *ChainList) MarshalTo(dAtA []byte) (int, error)

func (*ChainList) MarshalToSizedBuffer

func (m *ChainList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainList) ProtoMessage

func (*ChainList) ProtoMessage()

func (*ChainList) Reset

func (m *ChainList) Reset()

func (*ChainList) Size

func (m *ChainList) Size() (n int)

func (*ChainList) String

func (this *ChainList) String() string

func (ChainList) SwaggerDoc

func (ChainList) SwaggerDoc() map[string]string

func (*ChainList) Unmarshal

func (m *ChainList) Unmarshal(dAtA []byte) error

func (*ChainList) XXX_DiscardUnknown

func (m *ChainList) XXX_DiscardUnknown()

func (*ChainList) XXX_Marshal

func (m *ChainList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainList) XXX_Merge

func (m *ChainList) XXX_Merge(src proto.Message)

func (*ChainList) XXX_Size

func (m *ChainList) XXX_Size() int

func (*ChainList) XXX_Unmarshal

func (m *ChainList) XXX_Unmarshal(b []byte) error

type ChainSpec

type ChainSpec struct {
	// The display name of the chain.
	// +optional
	DisplayName string `json:"displayName,omitempty" protobuf:"bytes,1,opt,name=displayName"`

	// Genesis node machine configuration.
	// +optional
	MinerType string `json:"minerType,omitempty" protobuf:"bytes,2,opt,name=minerType"`

	// Image specify the blockchain node image.
	// +optional
	Image string `json:"image,omitempty" protobuf:"bytes,3,opt,name=image"`

	// Minimum number of seconds for the miners to mine a block.
	// +optional
	MinMineIntervalSeconds int32 `json:"minMineIntervalSeconds,omitempty" protobuf:"bytes,4,opt,name=minMineIntervalSeconds"`

	// Default bootstrap OneX's Genesis account with 1M TBB tokens.
	// This field is automatic generated by OneX, you should not set this field.
	// +optional
	BootstrapAccount *string `json:"bootstrapAccount,omitempty" protobuf:"bytes,5,opt,name=bootstrapAccount"`
}

ChainSpec defines the desired state of Chain.

func (*ChainSpec) DeepCopy

func (in *ChainSpec) DeepCopy() *ChainSpec

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

func (*ChainSpec) DeepCopyInto

func (in *ChainSpec) DeepCopyInto(out *ChainSpec)

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

func (*ChainSpec) Descriptor

func (*ChainSpec) Descriptor() ([]byte, []int)

func (*ChainSpec) Marshal

func (m *ChainSpec) Marshal() (dAtA []byte, err error)

func (*ChainSpec) MarshalTo

func (m *ChainSpec) MarshalTo(dAtA []byte) (int, error)

func (*ChainSpec) MarshalToSizedBuffer

func (m *ChainSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainSpec) ProtoMessage

func (*ChainSpec) ProtoMessage()

func (*ChainSpec) Reset

func (m *ChainSpec) Reset()

func (*ChainSpec) Size

func (m *ChainSpec) Size() (n int)

func (*ChainSpec) String

func (this *ChainSpec) String() string

func (ChainSpec) SwaggerDoc

func (ChainSpec) SwaggerDoc() map[string]string

func (*ChainSpec) Unmarshal

func (m *ChainSpec) Unmarshal(dAtA []byte) error

func (*ChainSpec) XXX_DiscardUnknown

func (m *ChainSpec) XXX_DiscardUnknown()

func (*ChainSpec) XXX_Marshal

func (m *ChainSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainSpec) XXX_Merge

func (m *ChainSpec) XXX_Merge(src proto.Message)

func (*ChainSpec) XXX_Size

func (m *ChainSpec) XXX_Size() int

func (*ChainSpec) XXX_Unmarshal

func (m *ChainSpec) XXX_Unmarshal(b []byte) error

type ChainStatus

type ChainStatus struct {
	// +optional
	ConfigMapRef *LocalObjectReference `json:"configMapRef,omitempty" protobuf:"bytes,1,opt,name=configMapRef"`

	// +optional
	MinerRef *LocalObjectReference `json:"minerRef,omitempty" protobuf:"bytes,2,opt,name=minerRef"`

	// ObservedGeneration is the latest generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"`

	// Conditions defines the current state of the Chain
	// +optional
	Conditions Conditions `json:"conditions,omitempty" protobuf:"bytes,4,rep,name=conditions"`
}

ChainStatus defines the observed state of Chain.

func (*ChainStatus) DeepCopy

func (in *ChainStatus) DeepCopy() *ChainStatus

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

func (*ChainStatus) DeepCopyInto

func (in *ChainStatus) DeepCopyInto(out *ChainStatus)

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

func (*ChainStatus) Descriptor

func (*ChainStatus) Descriptor() ([]byte, []int)

func (*ChainStatus) Marshal

func (m *ChainStatus) Marshal() (dAtA []byte, err error)

func (*ChainStatus) MarshalTo

func (m *ChainStatus) MarshalTo(dAtA []byte) (int, error)

func (*ChainStatus) MarshalToSizedBuffer

func (m *ChainStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainStatus) ProtoMessage

func (*ChainStatus) ProtoMessage()

func (*ChainStatus) Reset

func (m *ChainStatus) Reset()

func (*ChainStatus) Size

func (m *ChainStatus) Size() (n int)

func (*ChainStatus) String

func (this *ChainStatus) String() string

func (ChainStatus) SwaggerDoc

func (ChainStatus) SwaggerDoc() map[string]string

func (*ChainStatus) Unmarshal

func (m *ChainStatus) Unmarshal(dAtA []byte) error

func (*ChainStatus) XXX_DiscardUnknown

func (m *ChainStatus) XXX_DiscardUnknown()

func (*ChainStatus) XXX_Marshal

func (m *ChainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainStatus) XXX_Merge

func (m *ChainStatus) XXX_Merge(src proto.Message)

func (*ChainStatus) XXX_Size

func (m *ChainStatus) XXX_Size() int

func (*ChainStatus) XXX_Unmarshal

func (m *ChainStatus) XXX_Unmarshal(b []byte) error

type ChargeRequest

type ChargeRequest struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the chargerequest.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec ChargeRequestSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Status is the most recently observed status of the ChargeRequest.
	// This data may be out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Status ChargeRequestStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

ChargeRequest is the Schema for the chargerequests API.

func (*ChargeRequest) DeepCopy

func (in *ChargeRequest) DeepCopy() *ChargeRequest

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

func (*ChargeRequest) DeepCopyInto

func (in *ChargeRequest) DeepCopyInto(out *ChargeRequest)

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

func (*ChargeRequest) DeepCopyObject

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

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

func (*ChargeRequest) Descriptor

func (*ChargeRequest) Descriptor() ([]byte, []int)

func (*ChargeRequest) GetConditions

func (cr *ChargeRequest) GetConditions() Conditions

GetConditions returns the set of conditions for this object.

func (*ChargeRequest) Marshal

func (m *ChargeRequest) Marshal() (dAtA []byte, err error)

func (*ChargeRequest) MarshalTo

func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, error)

func (*ChargeRequest) MarshalToSizedBuffer

func (m *ChargeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChargeRequest) ProtoMessage

func (*ChargeRequest) ProtoMessage()

func (*ChargeRequest) Reset

func (m *ChargeRequest) Reset()

func (*ChargeRequest) SetConditions

func (cr *ChargeRequest) SetConditions(conditions Conditions)

SetConditions sets the conditions on this object.

func (*ChargeRequest) Size

func (m *ChargeRequest) Size() (n int)

func (*ChargeRequest) String

func (this *ChargeRequest) String() string

func (ChargeRequest) SwaggerDoc

func (ChargeRequest) SwaggerDoc() map[string]string

func (*ChargeRequest) Unmarshal

func (m *ChargeRequest) Unmarshal(dAtA []byte) error

func (*ChargeRequest) XXX_DiscardUnknown

func (m *ChargeRequest) XXX_DiscardUnknown()

func (*ChargeRequest) XXX_Marshal

func (m *ChargeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeRequest) XXX_Merge

func (m *ChargeRequest) XXX_Merge(src proto.Message)

func (*ChargeRequest) XXX_Size

func (m *ChargeRequest) XXX_Size() int

func (*ChargeRequest) XXX_Unmarshal

func (m *ChargeRequest) XXX_Unmarshal(b []byte) error

type ChargeRequestList

type ChargeRequestList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of schema objects.
	Items []ChargeRequest `json:"items" protobuf:"bytes,2,rep,name=items"`
}

ChargeRequestList is a list of ChargeRequest objects.

func (*ChargeRequestList) DeepCopy

func (in *ChargeRequestList) DeepCopy() *ChargeRequestList

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

func (*ChargeRequestList) DeepCopyInto

func (in *ChargeRequestList) DeepCopyInto(out *ChargeRequestList)

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

func (*ChargeRequestList) DeepCopyObject

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

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

func (*ChargeRequestList) Descriptor

func (*ChargeRequestList) Descriptor() ([]byte, []int)

func (*ChargeRequestList) Marshal

func (m *ChargeRequestList) Marshal() (dAtA []byte, err error)

func (*ChargeRequestList) MarshalTo

func (m *ChargeRequestList) MarshalTo(dAtA []byte) (int, error)

func (*ChargeRequestList) MarshalToSizedBuffer

func (m *ChargeRequestList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChargeRequestList) ProtoMessage

func (*ChargeRequestList) ProtoMessage()

func (*ChargeRequestList) Reset

func (m *ChargeRequestList) Reset()

func (*ChargeRequestList) Size

func (m *ChargeRequestList) Size() (n int)

func (*ChargeRequestList) String

func (this *ChargeRequestList) String() string

func (ChargeRequestList) SwaggerDoc

func (ChargeRequestList) SwaggerDoc() map[string]string

func (*ChargeRequestList) Unmarshal

func (m *ChargeRequestList) Unmarshal(dAtA []byte) error

func (*ChargeRequestList) XXX_DiscardUnknown

func (m *ChargeRequestList) XXX_DiscardUnknown()

func (*ChargeRequestList) XXX_Marshal

func (m *ChargeRequestList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeRequestList) XXX_Merge

func (m *ChargeRequestList) XXX_Merge(src proto.Message)

func (*ChargeRequestList) XXX_Size

func (m *ChargeRequestList) XXX_Size() int

func (*ChargeRequestList) XXX_Unmarshal

func (m *ChargeRequestList) XXX_Unmarshal(b []byte) error

type ChargeRequestSpec

type ChargeRequestSpec struct {
	// +optional
	From     string `json:"from,omitempty" protobuf:"bytes,1,opt,name=from"`
	Password string `json:"password,omitempty" protobuf:"bytes,2,opt,name=password"`
}

ChargeRequestSpec defines the desired state of ChargeRequest.

func (*ChargeRequestSpec) DeepCopy

func (in *ChargeRequestSpec) DeepCopy() *ChargeRequestSpec

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

func (*ChargeRequestSpec) DeepCopyInto

func (in *ChargeRequestSpec) DeepCopyInto(out *ChargeRequestSpec)

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

func (*ChargeRequestSpec) Descriptor

func (*ChargeRequestSpec) Descriptor() ([]byte, []int)

func (*ChargeRequestSpec) Marshal

func (m *ChargeRequestSpec) Marshal() (dAtA []byte, err error)

func (*ChargeRequestSpec) MarshalTo

func (m *ChargeRequestSpec) MarshalTo(dAtA []byte) (int, error)

func (*ChargeRequestSpec) MarshalToSizedBuffer

func (m *ChargeRequestSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChargeRequestSpec) ProtoMessage

func (*ChargeRequestSpec) ProtoMessage()

func (*ChargeRequestSpec) Reset

func (m *ChargeRequestSpec) Reset()

func (*ChargeRequestSpec) Size

func (m *ChargeRequestSpec) Size() (n int)

func (*ChargeRequestSpec) String

func (this *ChargeRequestSpec) String() string

func (ChargeRequestSpec) SwaggerDoc

func (ChargeRequestSpec) SwaggerDoc() map[string]string

func (*ChargeRequestSpec) Unmarshal

func (m *ChargeRequestSpec) Unmarshal(dAtA []byte) error

func (*ChargeRequestSpec) XXX_DiscardUnknown

func (m *ChargeRequestSpec) XXX_DiscardUnknown()

func (*ChargeRequestSpec) XXX_Marshal

func (m *ChargeRequestSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeRequestSpec) XXX_Merge

func (m *ChargeRequestSpec) XXX_Merge(src proto.Message)

func (*ChargeRequestSpec) XXX_Size

func (m *ChargeRequestSpec) XXX_Size() int

func (*ChargeRequestSpec) XXX_Unmarshal

func (m *ChargeRequestSpec) XXX_Unmarshal(b []byte) error

type ChargeRequestStatus

type ChargeRequestStatus struct {
	// +optional
	Conditions Conditions `json:"conditions,omitempty" protobuf:"bytes,1,rep,name=conditions"`
}

ChargeRequestStatus defines the observed state of ChargeRequest.

func (*ChargeRequestStatus) DeepCopy

func (in *ChargeRequestStatus) DeepCopy() *ChargeRequestStatus

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

func (*ChargeRequestStatus) DeepCopyInto

func (in *ChargeRequestStatus) DeepCopyInto(out *ChargeRequestStatus)

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

func (*ChargeRequestStatus) Descriptor

func (*ChargeRequestStatus) Descriptor() ([]byte, []int)

func (*ChargeRequestStatus) Marshal

func (m *ChargeRequestStatus) Marshal() (dAtA []byte, err error)

func (*ChargeRequestStatus) MarshalTo

func (m *ChargeRequestStatus) MarshalTo(dAtA []byte) (int, error)

func (*ChargeRequestStatus) MarshalToSizedBuffer

func (m *ChargeRequestStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChargeRequestStatus) ProtoMessage

func (*ChargeRequestStatus) ProtoMessage()

func (*ChargeRequestStatus) Reset

func (m *ChargeRequestStatus) Reset()

func (*ChargeRequestStatus) Size

func (m *ChargeRequestStatus) Size() (n int)

func (*ChargeRequestStatus) String

func (this *ChargeRequestStatus) String() string

func (ChargeRequestStatus) SwaggerDoc

func (ChargeRequestStatus) SwaggerDoc() map[string]string

func (*ChargeRequestStatus) Unmarshal

func (m *ChargeRequestStatus) Unmarshal(dAtA []byte) error

func (*ChargeRequestStatus) XXX_DiscardUnknown

func (m *ChargeRequestStatus) XXX_DiscardUnknown()

func (*ChargeRequestStatus) XXX_Marshal

func (m *ChargeRequestStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeRequestStatus) XXX_Merge

func (m *ChargeRequestStatus) XXX_Merge(src proto.Message)

func (*ChargeRequestStatus) XXX_Size

func (m *ChargeRequestStatus) XXX_Size() int

func (*ChargeRequestStatus) XXX_Unmarshal

func (m *ChargeRequestStatus) XXX_Unmarshal(b []byte) error

type Condition

type Condition struct {
	// Type of condition in CamelCase or in foo.example.com/CamelCase.
	// Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
	// can be useful (see .node.status.conditions), the ability to deconflict is important.
	Type ConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ConditionType"`

	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`

	// Severity provides an explicit classification of Reason code, so the users or machines can immediately
	// understand the current situation and act accordingly.
	// The Severity field MUST be set only when Status=False.
	// +optional
	Severity ConditionSeverity `json:"severity" protobuf:"bytes,3,opt,name=severity,casttype=ConditionSeverity"`

	// Last time the condition transitioned from one status to another.
	// This should be when the underlying condition changed. If that is not known, then using the time when
	// the API field changed is acceptable.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`

	// The reason for the condition's last transition in CamelCase.
	// The specific API may choose whether or not this field is considered a guaranteed API.
	// This field may not be empty.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`

	// A human readable message indicating details about the transition.
	// This field may be empty.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

Condition defines an observation of a cloud miner resource operational state.

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.

func (*Condition) Descriptor

func (*Condition) Descriptor() ([]byte, []int)

func (*Condition) Marshal

func (m *Condition) Marshal() (dAtA []byte, err error)

func (*Condition) MarshalTo

func (m *Condition) MarshalTo(dAtA []byte) (int, error)

func (*Condition) MarshalToSizedBuffer

func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) Size

func (m *Condition) Size() (n int)

func (*Condition) String

func (this *Condition) String() string

func (Condition) SwaggerDoc

func (Condition) SwaggerDoc() map[string]string

func (*Condition) Unmarshal

func (m *Condition) Unmarshal(dAtA []byte) error

func (*Condition) XXX_DiscardUnknown

func (m *Condition) XXX_DiscardUnknown()

func (*Condition) XXX_Marshal

func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Condition) XXX_Merge

func (m *Condition) XXX_Merge(src proto.Message)

func (*Condition) XXX_Size

func (m *Condition) XXX_Size() int

func (*Condition) XXX_Unmarshal

func (m *Condition) XXX_Unmarshal(b []byte) error

type ConditionSeverity

type ConditionSeverity string

ConditionSeverity expresses the severity of a Condition Type failing.

const (
	// ConditionSeverityError specifies that a condition with `Status=False` is an error.
	ConditionSeverityError ConditionSeverity = "Error"

	// ConditionSeverityWarning specifies that a condition with `Status=False` is a warning.
	ConditionSeverityWarning ConditionSeverity = "Warning"

	// ConditionSeverityInfo specifies that a condition with `Status=False` is informative.
	ConditionSeverityInfo ConditionSeverity = "Info"

	// ConditionSeverityNone should apply only to conditions with `Status=True`.
	ConditionSeverityNone ConditionSeverity = ""
)

type ConditionType

type ConditionType string

ConditionType is a valid value for Condition.Type.

const (
	// InfrastructureReadyCondition reports a summary of current status of the infrastructure object defined for this cluster/miner/minerpool.
	// This condition is mirrored from the Ready condition in the infrastructure ref object, and
	// the absence of this condition might signal problems in the reconcile external loops or the fact that
	// the infrastructure provider does not implement the Ready condition yet.
	InfrastructureReadyCondition ConditionType = "InfrastructureReady"

	// WaitingForInfrastructureFallbackReason (Severity=Info) documents a cluster/miner/minerpool waiting for the underlying infrastructure
	// to be available.
	// NOTE: This reason is used only as a fallback when the infrastructure object is not reporting its own ready condition.
	WaitingForInfrastructureFallbackReason = "WaitingForInfrastructure"
)
const (
	// RemediationAllowedCondition is set on MinerHealthChecks to show the status of whether the MinerHealthCheck is
	// allowed to remediate any Miners or whether it is blocked from remediating any further.
	RemediationAllowedCondition ConditionType = "RemediationAllowed"

	// TooManyUnhealthyReason is the reason used when too many Miners are unhealthy and the MinerHealthCheck is blocked
	// from making any further remediations.
	TooManyUnhealthyReason = "TooManyUnhealthy"
)
const (
	// MinerDeploymentAvailableCondition means the MinerDeployment is available, that is, at least the minimum available
	// miners required (i.e. Spec.Replicas-MaxUnavailable when MinerDeploymentStrategyType = RollingUpdate) are up and running for at least minReadySeconds.
	MinerDeploymentAvailableCondition ConditionType = "Available"

	// WaitingForAvailableMinersReason (Severity=Warning) reflects the fact that the required minimum number of miners for a minerdeployment are not available.
	WaitingForAvailableMinersReason = "WaitingForAvailableMiners"
)
const (
	// Approved indicates the charge request was approved.
	ChargeApproved ConditionType = "Approved"
)
const (
	// ReadyCondition defines the Ready condition type that summarizes the operational state of a Cluster API object.
	ReadyCondition ConditionType = "Ready"
)

Common ConditionTypes used by Cluster API objects.

type Conditions

type Conditions []Condition

Conditions provide observations of the operational state of a cloud miner resource.

func (Conditions) DeepCopy

func (in Conditions) DeepCopy() Conditions

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

func (Conditions) DeepCopyInto

func (in Conditions) DeepCopyInto(out *Conditions)

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

type LocalObjectReference

type LocalObjectReference struct {
	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// TODO: Add other useful fields. apiVersion, kind, uid?
	// +optional
	Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
}

LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.

func (*LocalObjectReference) DeepCopy

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

func (*LocalObjectReference) DeepCopyInto

func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference)

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

func (*LocalObjectReference) Descriptor

func (*LocalObjectReference) Descriptor() ([]byte, []int)

func (*LocalObjectReference) Marshal

func (m *LocalObjectReference) Marshal() (dAtA []byte, err error)

func (*LocalObjectReference) MarshalTo

func (m *LocalObjectReference) MarshalTo(dAtA []byte) (int, error)

func (*LocalObjectReference) MarshalToSizedBuffer

func (m *LocalObjectReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalObjectReference) ProtoMessage

func (*LocalObjectReference) ProtoMessage()

func (*LocalObjectReference) Reset

func (m *LocalObjectReference) Reset()

func (*LocalObjectReference) Size

func (m *LocalObjectReference) Size() (n int)

func (*LocalObjectReference) String

func (this *LocalObjectReference) String() string

func (LocalObjectReference) SwaggerDoc

func (LocalObjectReference) SwaggerDoc() map[string]string

func (*LocalObjectReference) Unmarshal

func (m *LocalObjectReference) Unmarshal(dAtA []byte) error

func (*LocalObjectReference) XXX_DiscardUnknown

func (m *LocalObjectReference) XXX_DiscardUnknown()

func (*LocalObjectReference) XXX_Marshal

func (m *LocalObjectReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalObjectReference) XXX_Merge

func (m *LocalObjectReference) XXX_Merge(src proto.Message)

func (*LocalObjectReference) XXX_Size

func (m *LocalObjectReference) XXX_Size() int

func (*LocalObjectReference) XXX_Unmarshal

func (m *LocalObjectReference) XXX_Unmarshal(b []byte) error

type Miner

type Miner struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the miner.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec MinerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Most recently observed status of the miner.
	// This data may not be up to date.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Status MinerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

Miner is the Schema for the miners API.

func (*Miner) DeepCopy

func (in *Miner) DeepCopy() *Miner

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

func (*Miner) DeepCopyInto

func (in *Miner) DeepCopyInto(out *Miner)

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

func (*Miner) DeepCopyObject

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

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

func (*Miner) Descriptor

func (*Miner) Descriptor() ([]byte, []int)

func (*Miner) GetConditions

func (m *Miner) GetConditions() Conditions

GetConditions returns the set of conditions for this object.

func (*Miner) Marshal

func (m *Miner) Marshal() (dAtA []byte, err error)

func (*Miner) MarshalTo

func (m *Miner) MarshalTo(dAtA []byte) (int, error)

func (*Miner) MarshalToSizedBuffer

func (m *Miner) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Miner) ProtoMessage

func (*Miner) ProtoMessage()

func (*Miner) Reset

func (m *Miner) Reset()

func (*Miner) SetConditions

func (m *Miner) SetConditions(conditions Conditions)

SetConditions sets the conditions on this object.

func (*Miner) Size

func (m *Miner) Size() (n int)

func (*Miner) String

func (this *Miner) String() string

func (Miner) SwaggerDoc

func (Miner) SwaggerDoc() map[string]string

func (*Miner) Unmarshal

func (m *Miner) Unmarshal(dAtA []byte) error

func (*Miner) XXX_DiscardUnknown

func (m *Miner) XXX_DiscardUnknown()

func (*Miner) XXX_Marshal

func (m *Miner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Miner) XXX_Merge

func (m *Miner) XXX_Merge(src proto.Message)

func (*Miner) XXX_Size

func (m *Miner) XXX_Size() int

func (*Miner) XXX_Unmarshal

func (m *Miner) XXX_Unmarshal(b []byte) error

type MinerAddress

type MinerAddress struct {
	// Miner address type, one of Hostname, ExternalIP or InternalIP.
	Type MinerAddressType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=MinerAddressType"`

	// The machine address.
	Address string `json:"address" protobuf:"bytes,2,opt,name=address"`
}

MinerAddress contains information for the miner's address.

func (*MinerAddress) DeepCopy

func (in *MinerAddress) DeepCopy() *MinerAddress

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

func (*MinerAddress) DeepCopyInto

func (in *MinerAddress) DeepCopyInto(out *MinerAddress)

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

func (*MinerAddress) Descriptor

func (*MinerAddress) Descriptor() ([]byte, []int)

func (*MinerAddress) Marshal

func (m *MinerAddress) Marshal() (dAtA []byte, err error)

func (*MinerAddress) MarshalTo

func (m *MinerAddress) MarshalTo(dAtA []byte) (int, error)

func (*MinerAddress) MarshalToSizedBuffer

func (m *MinerAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerAddress) ProtoMessage

func (*MinerAddress) ProtoMessage()

func (*MinerAddress) Reset

func (m *MinerAddress) Reset()

func (*MinerAddress) Size

func (m *MinerAddress) Size() (n int)

func (*MinerAddress) String

func (this *MinerAddress) String() string

func (MinerAddress) SwaggerDoc

func (MinerAddress) SwaggerDoc() map[string]string

func (*MinerAddress) Unmarshal

func (m *MinerAddress) Unmarshal(dAtA []byte) error

func (*MinerAddress) XXX_DiscardUnknown

func (m *MinerAddress) XXX_DiscardUnknown()

func (*MinerAddress) XXX_Marshal

func (m *MinerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerAddress) XXX_Merge

func (m *MinerAddress) XXX_Merge(src proto.Message)

func (*MinerAddress) XXX_Size

func (m *MinerAddress) XXX_Size() int

func (*MinerAddress) XXX_Unmarshal

func (m *MinerAddress) XXX_Unmarshal(b []byte) error

type MinerAddressType

type MinerAddressType string

MinerAddressType describes a valid MinerAddress type.

const (
	MinerHostName    MinerAddressType = "Hostname"
	MinerExternalIP  MinerAddressType = "ExternalIP"
	MinerInternalIP  MinerAddressType = "InternalIP"
	MinerExternalDNS MinerAddressType = "ExternalDNS"
	MinerInternalDNS MinerAddressType = "InternalDNS"
)

Define the MinerAddressType constants.

type MinerAddresses

type MinerAddresses []MinerAddress

MinerAddresses is a slice of MinerAddress items to be used by infrastructure providers.

func (MinerAddresses) DeepCopy

func (in MinerAddresses) DeepCopy() MinerAddresses

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

func (MinerAddresses) DeepCopyInto

func (in MinerAddresses) DeepCopyInto(out *MinerAddresses)

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

type MinerList

type MinerList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Items is a list of schema objects.
	Items []Miner `json:"items" protobuf:"bytes,2,rep,name=items"`
}

MinerList is a list of Miner objects.

func (*MinerList) DeepCopy

func (in *MinerList) DeepCopy() *MinerList

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

func (*MinerList) DeepCopyInto

func (in *MinerList) DeepCopyInto(out *MinerList)

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

func (*MinerList) DeepCopyObject

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

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

func (*MinerList) Descriptor

func (*MinerList) Descriptor() ([]byte, []int)

func (*MinerList) Marshal

func (m *MinerList) Marshal() (dAtA []byte, err error)

func (*MinerList) MarshalTo

func (m *MinerList) MarshalTo(dAtA []byte) (int, error)

func (*MinerList) MarshalToSizedBuffer

func (m *MinerList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerList) ProtoMessage

func (*MinerList) ProtoMessage()

func (*MinerList) Reset

func (m *MinerList) Reset()

func (*MinerList) Size

func (m *MinerList) Size() (n int)

func (*MinerList) String

func (this *MinerList) String() string

func (MinerList) SwaggerDoc

func (MinerList) SwaggerDoc() map[string]string

func (*MinerList) Unmarshal

func (m *MinerList) Unmarshal(dAtA []byte) error

func (*MinerList) XXX_DiscardUnknown

func (m *MinerList) XXX_DiscardUnknown()

func (*MinerList) XXX_Marshal

func (m *MinerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerList) XXX_Merge

func (m *MinerList) XXX_Merge(src proto.Message)

func (*MinerList) XXX_Size

func (m *MinerList) XXX_Size() int

func (*MinerList) XXX_Unmarshal

func (m *MinerList) XXX_Unmarshal(b []byte) error

type MinerPhase

type MinerPhase string

MinerPhase is a string representation of a Miner Phase.

This type is a high-level indicator of the status of the Miner as it is provisioned, from the API user’s perspective.

The value should not be interpreted by any software components as a reliable indication of the actual state of the Miner, and controllers should not use the Miner Phase field value when making decisions about what action to take.

Controllers should always look at the actual state of the Miner’s fields to make those decisions.

type MinerSet

type MinerSet struct {
	metav1.TypeMeta `json:",inline"`

	// If the Labels of a MinerSet are empty, they are defaulted to
	// be the same as the Miner(s) that the MinerSet manages.
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines the specification of the desired behavior of the MinerSet.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec MinerSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Status is the most recently observed status of the MinerSet.
	// This data may be out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Status MinerSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

MinerSet ensures that a specified number of miners replicas are running at any given time.

func (*MinerSet) DeepCopy

func (in *MinerSet) DeepCopy() *MinerSet

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

func (*MinerSet) DeepCopyInto

func (in *MinerSet) DeepCopyInto(out *MinerSet)

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

func (*MinerSet) DeepCopyObject

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

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

func (*MinerSet) Descriptor

func (*MinerSet) Descriptor() ([]byte, []int)

func (*MinerSet) GetConditions

func (ms *MinerSet) GetConditions() Conditions

GetConditions returns the set of conditions for the MinerSet.

func (*MinerSet) Marshal

func (m *MinerSet) Marshal() (dAtA []byte, err error)

func (*MinerSet) MarshalTo

func (m *MinerSet) MarshalTo(dAtA []byte) (int, error)

func (*MinerSet) MarshalToSizedBuffer

func (m *MinerSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerSet) ProtoMessage

func (*MinerSet) ProtoMessage()

func (*MinerSet) Reset

func (m *MinerSet) Reset()

func (*MinerSet) SetConditions

func (ms *MinerSet) SetConditions(conditions Conditions)

SetConditions updates the set of conditions on the MinerSet.

func (*MinerSet) Size

func (m *MinerSet) Size() (n int)

func (*MinerSet) String

func (this *MinerSet) String() string

func (MinerSet) SwaggerDoc

func (MinerSet) SwaggerDoc() map[string]string

func (*MinerSet) Unmarshal

func (m *MinerSet) Unmarshal(dAtA []byte) error

func (*MinerSet) Validate

func (ms *MinerSet) Validate() field.ErrorList

Validate validates the MinerSet fields.

func (*MinerSet) XXX_DiscardUnknown

func (m *MinerSet) XXX_DiscardUnknown()

func (*MinerSet) XXX_Marshal

func (m *MinerSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerSet) XXX_Merge

func (m *MinerSet) XXX_Merge(src proto.Message)

func (*MinerSet) XXX_Size

func (m *MinerSet) XXX_Size() int

func (*MinerSet) XXX_Unmarshal

func (m *MinerSet) XXX_Unmarshal(b []byte) error

type MinerSetDeletePolicy

type MinerSetDeletePolicy string
const (
	// RandomMinerSetDeletePolicy prioritizes both Miners that have the annotation
	// "apps.onex.io/delete-miner=yes" and Miners that are unhealthy
	// (Status.ErrorReason or Status.ErrorMessage are set to a non-empty value).
	// Finally, it picks Miners at random to delete.
	RandomMinerSetDeletePolicy MinerSetDeletePolicy = "Random"
	// NewestMinerSetDeletePolicy prioritizes both Miners that have the annotation
	// "apps.onex.io/delete-miner=yes" and Miners that are unhealthy
	// (Status.ErrorReason or Status.ErrorMessage are set to a non-empty value).
	// It then prioritizes the newest Miners for deletion based on the Miner's CreationTimestamp.
	NewestMinerSetDeletePolicy MinerSetDeletePolicy = "Newest"
	// OldestMinerSetDeletePolicy prioritizes both Miners that have the annotation
	// "apps.onex.io/delete-miner=yes" and Miners that are unhealthy
	// (Status.ErrorReason or Status.ErrorMessage are set to a non-empty value).
	// It then prioritizes the oldest Miners for deletion based on the Miner's CreationTimestamp.
	OldestMinerSetDeletePolicy MinerSetDeletePolicy = "Oldest"
)

type MinerSetList

type MinerSetList struct {
	metav1.TypeMeta `             json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// List of MinerSets.
	Items []MinerSet `json:"items" protobuf:"bytes,2,rep,name=items"`
}

MinerSetList contains a list of MinerSet.

func (*MinerSetList) DeepCopy

func (in *MinerSetList) DeepCopy() *MinerSetList

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

func (*MinerSetList) DeepCopyInto

func (in *MinerSetList) DeepCopyInto(out *MinerSetList)

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

func (*MinerSetList) DeepCopyObject

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

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

func (*MinerSetList) Descriptor

func (*MinerSetList) Descriptor() ([]byte, []int)

func (*MinerSetList) Marshal

func (m *MinerSetList) Marshal() (dAtA []byte, err error)

func (*MinerSetList) MarshalTo

func (m *MinerSetList) MarshalTo(dAtA []byte) (int, error)

func (*MinerSetList) MarshalToSizedBuffer

func (m *MinerSetList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerSetList) ProtoMessage

func (*MinerSetList) ProtoMessage()

func (*MinerSetList) Reset

func (m *MinerSetList) Reset()

func (*MinerSetList) Size

func (m *MinerSetList) Size() (n int)

func (*MinerSetList) String

func (this *MinerSetList) String() string

func (MinerSetList) SwaggerDoc

func (MinerSetList) SwaggerDoc() map[string]string

func (*MinerSetList) Unmarshal

func (m *MinerSetList) Unmarshal(dAtA []byte) error

func (*MinerSetList) XXX_DiscardUnknown

func (m *MinerSetList) XXX_DiscardUnknown()

func (*MinerSetList) XXX_Marshal

func (m *MinerSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerSetList) XXX_Merge

func (m *MinerSetList) XXX_Merge(src proto.Message)

func (*MinerSetList) XXX_Size

func (m *MinerSetList) XXX_Size() int

func (*MinerSetList) XXX_Unmarshal

func (m *MinerSetList) XXX_Unmarshal(b []byte) error

type MinerSetSpec

type MinerSetSpec struct {
	// Replicas is the number of desired replicas.
	// This is a pointer to distinguish between explicit zero and unspecified.
	// Defaults to 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller
	// +optional
	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`

	// Selector is a label query over miners that should match the replica count.
	// Label keys and values that must match in order to be controlled by this MinerSet.
	// It must match the miner template's labels.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector metav1.LabelSelector `json:"selector" protobuf:"bytes,2,opt,name=selector"`

	// Template is the object that describes the miner that will be created if
	// insufficient replicas are detected.
	// +optional
	Template MinerTemplateSpec `json:"template,omitempty" protobuf:"bytes,3,opt,name=template"`

	// The display name of the minerset.
	DisplayName string `json:"displayName,omitempty" protobuf:"bytes,4,opt,name=displayName"`

	// DeletePolicy defines the policy used to identify miners to delete when downscaling.
	// Defaults to "Random". Valid values are "Random, "Newest", "Oldest"
	// +kubebuilder:validation:Enum=Random;Newest;Oldest
	// +optional
	DeletePolicy string `json:"deletePolicy,omitempty" protobuf:"bytes,5,opt,name=deletePolicy"`

	// Minimum number of seconds for which a newly created miner should be ready
	// without any of its component crashing, for it to be considered available.
	// Defaults to 0 (miner will be considered available as soon as it is ready)
	// +optional
	MinReadySeconds int32 `json:"minReadySeconds,omitempty" protobuf:"varint,6,opt,name=minReadySeconds"`

	// The maximum time in seconds for a minerset to make progress before it
	// is considered to be failed. The deployment controller will continue to
	// process failed deployments and a condition with a ProgressDeadlineExceeded
	// reason will be surfaced in the deployment status. Note that progress will
	// not be estimated during the time a deployment is paused. Defaults to 600s.
	ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty" protobuf:"varint,7,opt,name=progressDeadlineSeconds"`
}

MinerSetSpec defines the desired state of MinerSet.

func (*MinerSetSpec) DeepCopy

func (in *MinerSetSpec) DeepCopy() *MinerSetSpec

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

func (*MinerSetSpec) DeepCopyInto

func (in *MinerSetSpec) DeepCopyInto(out *MinerSetSpec)

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

func (*MinerSetSpec) Descriptor

func (*MinerSetSpec) Descriptor() ([]byte, []int)

func (*MinerSetSpec) Marshal

func (m *MinerSetSpec) Marshal() (dAtA []byte, err error)

func (*MinerSetSpec) MarshalTo

func (m *MinerSetSpec) MarshalTo(dAtA []byte) (int, error)

func (*MinerSetSpec) MarshalToSizedBuffer

func (m *MinerSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerSetSpec) ProtoMessage

func (*MinerSetSpec) ProtoMessage()

func (*MinerSetSpec) Reset

func (m *MinerSetSpec) Reset()

func (*MinerSetSpec) Size

func (m *MinerSetSpec) Size() (n int)

func (*MinerSetSpec) String

func (this *MinerSetSpec) String() string

func (MinerSetSpec) SwaggerDoc

func (MinerSetSpec) SwaggerDoc() map[string]string

func (*MinerSetSpec) Unmarshal

func (m *MinerSetSpec) Unmarshal(dAtA []byte) error

func (*MinerSetSpec) XXX_DiscardUnknown

func (m *MinerSetSpec) XXX_DiscardUnknown()

func (*MinerSetSpec) XXX_Marshal

func (m *MinerSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerSetSpec) XXX_Merge

func (m *MinerSetSpec) XXX_Merge(src proto.Message)

func (*MinerSetSpec) XXX_Size

func (m *MinerSetSpec) XXX_Size() int

func (*MinerSetSpec) XXX_Unmarshal

func (m *MinerSetSpec) XXX_Unmarshal(b []byte) error

type MinerSetStatus

type MinerSetStatus struct {
	// Replicas is the most recently observed number of replicas.
	Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"`

	// The number of miners that have labels matching the labels of the miner template of the minerset.
	// +optional
	FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"`

	// readyReplicas is the number of miners targeted by this MinerSet with a Ready Condition.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,3,opt,name=readyReplicas"`

	// The number of available replicas (ready for at least minReadySeconds) for this minerset.
	// +optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"`

	// ObservedGeneration reflects the generation of the most recently observed MinerSet.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,5,opt,name=observedGeneration"`

	// In the event that there is a terminal problem reconciling the
	// replicas, both FailureReason and FailureMessage will be set. FailureReason
	// will be populated with a succinct value suitable for miner
	// interpretation, while FailureMessage will contain a more verbose
	// string suitable for logging and human consumption.
	//
	// These fields should not be set for transitive errors that a
	// controller faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the MinerTemplate's spec or the configuration of
	// the miner controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the miner controller, or the
	// responsible miner controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Miners
	// can be added as events to the MinerSet object and/or logged in the
	// controller's output.
	// +optional
	FailureReason *cmerrors.MinerSetStatusError `json:"failureReason,omitempty" protobuf:"bytes,6,opt,name=failureReason"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the MinerSet and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the MinerSet's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of MinerSets
	// can be added as events to the MinerSet object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty" protobuf:"bytes,7,opt,name=failureMessage"`

	// Represents the latest available observations of a miner set's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,8,rep,name=conditions"`
}

MinerSetStatus represents the current status of a MinerSet.

func (*MinerSetStatus) DeepCopy

func (in *MinerSetStatus) DeepCopy() *MinerSetStatus

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

func (*MinerSetStatus) DeepCopyInto

func (in *MinerSetStatus) DeepCopyInto(out *MinerSetStatus)

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

func (*MinerSetStatus) Descriptor

func (*MinerSetStatus) Descriptor() ([]byte, []int)

func (*MinerSetStatus) Marshal

func (m *MinerSetStatus) Marshal() (dAtA []byte, err error)

func (*MinerSetStatus) MarshalTo

func (m *MinerSetStatus) MarshalTo(dAtA []byte) (int, error)

func (*MinerSetStatus) MarshalToSizedBuffer

func (m *MinerSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerSetStatus) ProtoMessage

func (*MinerSetStatus) ProtoMessage()

func (*MinerSetStatus) Reset

func (m *MinerSetStatus) Reset()

func (*MinerSetStatus) Size

func (m *MinerSetStatus) Size() (n int)

func (*MinerSetStatus) String

func (this *MinerSetStatus) String() string

func (MinerSetStatus) SwaggerDoc

func (MinerSetStatus) SwaggerDoc() map[string]string

func (*MinerSetStatus) Unmarshal

func (m *MinerSetStatus) Unmarshal(dAtA []byte) error

func (*MinerSetStatus) XXX_DiscardUnknown

func (m *MinerSetStatus) XXX_DiscardUnknown()

func (*MinerSetStatus) XXX_Marshal

func (m *MinerSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerSetStatus) XXX_Merge

func (m *MinerSetStatus) XXX_Merge(src proto.Message)

func (*MinerSetStatus) XXX_Size

func (m *MinerSetStatus) XXX_Size() int

func (*MinerSetStatus) XXX_Unmarshal

func (m *MinerSetStatus) XXX_Unmarshal(b []byte) error

type MinerSpec

type MinerSpec struct {
	// ObjectMeta will autopopulate the Pod created. Use this to
	// indicate what labels, annotations, name prefix, etc., should be used
	// when creating the Pod.
	// +optional
	ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// The display name of the miner.
	// +optional
	DisplayName string `json:"displayName,omitempty" protobuf:"bytes,2,opt,name=displayName"`

	// Miner machine configuration.
	// +optional
	MinerType string `json:"minerType,omitempty" protobuf:"bytes,3,opt,name=minerType"`

	// +optional
	ChainName string `json:"chainName,omitempty" protobuf:"bytes,5,opt,name=chainName"`

	// Restart policy for the miner.
	// One of Always, OnFailure, Never.
	// Default to Always.
	// +optional
	RestartPolicy corev1.RestartPolicy `json:"restartPolicy,omitempty" protobuf:"bytes,6,opt,name=restartPolicy,casttype=RestartPolicy"`

	// PodDeletionTimeout defines how long the controller will attempt to delete the Pod that the Machine
	// hosts after the Machine is marked for deletion. A duration of 0 will retry deletion indefinitely.
	// Defaults to 10 seconds.
	// +optional
	PodDeletionTimeout *metav1.Duration `json:"podDeletionTimeout,omitempty" protobuf:"bytes,7,opt,name=podDeletionTimeout"`
}

MinerSpec defines the desired state of Miner.

func (*MinerSpec) DeepCopy

func (in *MinerSpec) DeepCopy() *MinerSpec

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

func (*MinerSpec) DeepCopyInto

func (in *MinerSpec) DeepCopyInto(out *MinerSpec)

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

func (*MinerSpec) Descriptor

func (*MinerSpec) Descriptor() ([]byte, []int)

func (*MinerSpec) Marshal

func (m *MinerSpec) Marshal() (dAtA []byte, err error)

func (*MinerSpec) MarshalTo

func (m *MinerSpec) MarshalTo(dAtA []byte) (int, error)

func (*MinerSpec) MarshalToSizedBuffer

func (m *MinerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerSpec) ProtoMessage

func (*MinerSpec) ProtoMessage()

func (*MinerSpec) Reset

func (m *MinerSpec) Reset()

func (*MinerSpec) Size

func (m *MinerSpec) Size() (n int)

func (*MinerSpec) String

func (this *MinerSpec) String() string

func (MinerSpec) SwaggerDoc

func (MinerSpec) SwaggerDoc() map[string]string

func (*MinerSpec) Unmarshal

func (m *MinerSpec) Unmarshal(dAtA []byte) error

func (*MinerSpec) XXX_DiscardUnknown

func (m *MinerSpec) XXX_DiscardUnknown()

func (*MinerSpec) XXX_Marshal

func (m *MinerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerSpec) XXX_Merge

func (m *MinerSpec) XXX_Merge(src proto.Message)

func (*MinerSpec) XXX_Size

func (m *MinerSpec) XXX_Size() int

func (*MinerSpec) XXX_Unmarshal

func (m *MinerSpec) XXX_Unmarshal(b []byte) error

type MinerStatus

type MinerStatus struct {
	// PodRef will point to the corresponding Pod if it exists.
	// +optional
	PodRef *corev1.ObjectReference `json:"podRef,omitempty" protobuf:"bytes,1,opt,name=podRef,casttype=k8s.io/api/core/v1.ObjectReference"`

	// LastUpdated identifies when this status was last observed.
	// +optional
	LastUpdated *metav1.Time `json:"lastUpdated,omitempty" protobuf:"bytes,2,opt,name=lastUpdated"`

	// FailureReason will be set in the event that there is a terminal problem
	// reconciling the Miner and will contain a succinct value suitable
	// for miner interpretation.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Miner's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Miners
	// can be added as events to the Miner object and/or logged in the
	// controller's output.
	// +optional
	FailureReason *cmerrors.MinerStatusError `json:"failureReason,omitempty" protobuf:"bytes,3,opt,name=failureReason"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Miner and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Miner's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Miners
	// can be added as events to the Miner object and/or logged in the
	// controller's output.
	// +optional
	FailureMessage *string `json:"failureMessage,omitempty" protobuf:"bytes,4,opt,name=failureMessage"`

	// Addresses is a list of addresses assigned to the miner. Queried from kind cluster, if available.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Addresses MinerAddresses `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,5,rep,name=addresses"`

	// Phase represents the current phase of miner actuation.
	// One of: Failed, Provisioning, Provisioned, Running, Deleting
	// This field is maintained by miner controller.
	// +optional
	Phase string `json:"phase,omitempty" protobuf:"bytes,6,opt,name=phase"`

	// ObservedGeneration is the latest generation observed by the controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,7,opt,name=observedGeneration"`

	// Conditions defines the current state of the Miner
	// +optional
	Conditions Conditions `json:"conditions,omitempty" protobuf:"bytes,8,rep,name=conditions"`
}

MinerStatus defines the observed state of Miner.

func (*MinerStatus) DeepCopy

func (in *MinerStatus) DeepCopy() *MinerStatus

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

func (*MinerStatus) DeepCopyInto

func (in *MinerStatus) DeepCopyInto(out *MinerStatus)

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

func (*MinerStatus) Descriptor

func (*MinerStatus) Descriptor() ([]byte, []int)

func (*MinerStatus) GetTypedPhase

func (m *MinerStatus) GetTypedPhase() MinerPhase

GetTypedPhase attempts to parse the Phase field and return the typed MinerPhase representation as described in `miner_phase_types.go`.

func (*MinerStatus) Marshal

func (m *MinerStatus) Marshal() (dAtA []byte, err error)

func (*MinerStatus) MarshalTo

func (m *MinerStatus) MarshalTo(dAtA []byte) (int, error)

func (*MinerStatus) MarshalToSizedBuffer

func (m *MinerStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerStatus) ProtoMessage

func (*MinerStatus) ProtoMessage()

func (*MinerStatus) Reset

func (m *MinerStatus) Reset()

func (*MinerStatus) SetTypedPhase

func (m *MinerStatus) SetTypedPhase(p MinerPhase)

SetTypedPhase sets the Phase field to the string representation of MinerPhase.

func (*MinerStatus) Size

func (m *MinerStatus) Size() (n int)

func (*MinerStatus) String

func (this *MinerStatus) String() string

func (MinerStatus) SwaggerDoc

func (MinerStatus) SwaggerDoc() map[string]string

func (*MinerStatus) Unmarshal

func (m *MinerStatus) Unmarshal(dAtA []byte) error

func (*MinerStatus) XXX_DiscardUnknown

func (m *MinerStatus) XXX_DiscardUnknown()

func (*MinerStatus) XXX_Marshal

func (m *MinerStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerStatus) XXX_Merge

func (m *MinerStatus) XXX_Merge(src proto.Message)

func (*MinerStatus) XXX_Size

func (m *MinerStatus) XXX_Size() int

func (*MinerStatus) XXX_Unmarshal

func (m *MinerStatus) XXX_Unmarshal(b []byte) error

type MinerTemplateSpec

type MinerTemplateSpec struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Specification of the desired behavior of the miner.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	// +optional
	Spec MinerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

MinerTemplateSpec describes the data needed to create a Miner from a template.

func (*MinerTemplateSpec) DeepCopy

func (in *MinerTemplateSpec) DeepCopy() *MinerTemplateSpec

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

func (*MinerTemplateSpec) DeepCopyInto

func (in *MinerTemplateSpec) DeepCopyInto(out *MinerTemplateSpec)

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

func (*MinerTemplateSpec) Descriptor

func (*MinerTemplateSpec) Descriptor() ([]byte, []int)

func (*MinerTemplateSpec) Marshal

func (m *MinerTemplateSpec) Marshal() (dAtA []byte, err error)

func (*MinerTemplateSpec) MarshalTo

func (m *MinerTemplateSpec) MarshalTo(dAtA []byte) (int, error)

func (*MinerTemplateSpec) MarshalToSizedBuffer

func (m *MinerTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MinerTemplateSpec) ProtoMessage

func (*MinerTemplateSpec) ProtoMessage()

func (*MinerTemplateSpec) Reset

func (m *MinerTemplateSpec) Reset()

func (*MinerTemplateSpec) Size

func (m *MinerTemplateSpec) Size() (n int)

func (*MinerTemplateSpec) String

func (this *MinerTemplateSpec) String() string

func (MinerTemplateSpec) SwaggerDoc

func (MinerTemplateSpec) SwaggerDoc() map[string]string

func (*MinerTemplateSpec) Unmarshal

func (m *MinerTemplateSpec) Unmarshal(dAtA []byte) error

func (*MinerTemplateSpec) XXX_DiscardUnknown

func (m *MinerTemplateSpec) XXX_DiscardUnknown()

func (*MinerTemplateSpec) XXX_Marshal

func (m *MinerTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerTemplateSpec) XXX_Merge

func (m *MinerTemplateSpec) XXX_Merge(src proto.Message)

func (*MinerTemplateSpec) XXX_Size

func (m *MinerTemplateSpec) XXX_Size() int

func (*MinerTemplateSpec) XXX_Unmarshal

func (m *MinerTemplateSpec) XXX_Unmarshal(b []byte) error

type ObjectMeta

type ObjectMeta struct {
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: http://kubernetes.io/docs/user-guide/labels
	// +optional
	Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,1,rep,name=labels"`

	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: http://kubernetes.io/docs/user-guide/annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,2,rep,name=annotations"`
}

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. This is a copy of customizable fields from metav1.ObjectMeta.

ObjectMeta is embedded in `Miner.Spec` and `MinerSet.Template`, which are not top-level Kubernetes objects. Given that metav1.ObjectMeta has lots of special cases and read-only fields which end up in the generated CRD validation, having it as a subset simplifies the API and some issues that can impact user experience.

During the [upgrade to controller-tools@v2](https://github.com/kubernetes-sigs/cluster-api/pull/1054) for v1alpha2, we noticed a failure would occur running Cluster API test suite against the new CRDs, specifically `spec.metadata.creationTimestamp in body must be of type string: "null"`. The investigation showed that `controller-tools@v2` behaves differently than its previous version when handling types from metav1(k8s.io/apimachinery/pkg/apis/meta/v1) package.

In more details, we found that embedded (non-top level) types that embedded `metav1.ObjectMeta` had validation properties, including for `creationTimestamp` (metav1.Time). The `metav1.Time` type specifies a custom json marshaller that, when IsZero() is true, returns `null` which breaks validation because the field isn't marked as nullable.

In future versions, controller-tools@v2 might allow overriding the type and validation for embedded types. When that happens, this hack should be revisited.

func (*ObjectMeta) DeepCopy

func (in *ObjectMeta) DeepCopy() *ObjectMeta

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

func (*ObjectMeta) DeepCopyInto

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

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

func (*ObjectMeta) Descriptor

func (*ObjectMeta) Descriptor() ([]byte, []int)

func (*ObjectMeta) Marshal

func (m *ObjectMeta) Marshal() (dAtA []byte, err error)

func (*ObjectMeta) MarshalTo

func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)

func (*ObjectMeta) MarshalToSizedBuffer

func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ObjectMeta) ProtoMessage

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) Reset

func (m *ObjectMeta) Reset()

func (*ObjectMeta) Size

func (m *ObjectMeta) Size() (n int)

func (*ObjectMeta) String

func (this *ObjectMeta) String() string

func (ObjectMeta) SwaggerDoc

func (ObjectMeta) SwaggerDoc() map[string]string

func (*ObjectMeta) Unmarshal

func (m *ObjectMeta) Unmarshal(dAtA []byte) error

func (*ObjectMeta) XXX_DiscardUnknown

func (m *ObjectMeta) XXX_DiscardUnknown()

func (*ObjectMeta) XXX_Marshal

func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ObjectMeta) XXX_Merge

func (m *ObjectMeta) XXX_Merge(src proto.Message)

func (*ObjectMeta) XXX_Size

func (m *ObjectMeta) XXX_Size() int

func (*ObjectMeta) XXX_Unmarshal

func (m *ObjectMeta) XXX_Unmarshal(b []byte) error

type PodInfo

type PodInfo struct {
	// The Operating System reported by the pod
	OperatingSystem string `json:"operatingSystem" protobuf:"bytes,9,opt,name=operatingSystem"`
	// The Architecture reported by the  pod
	Architecture string `json:"architecture" protobuf:"bytes,10,opt,name=architecture"`
}

PodInfo is a set of ids/uuids to uniquely identify the pod.

func (*PodInfo) DeepCopy

func (in *PodInfo) DeepCopy() *PodInfo

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

func (*PodInfo) DeepCopyInto

func (in *PodInfo) DeepCopyInto(out *PodInfo)

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

func (*PodInfo) Descriptor

func (*PodInfo) Descriptor() ([]byte, []int)

func (*PodInfo) Marshal

func (m *PodInfo) Marshal() (dAtA []byte, err error)

func (*PodInfo) MarshalTo

func (m *PodInfo) MarshalTo(dAtA []byte) (int, error)

func (*PodInfo) MarshalToSizedBuffer

func (m *PodInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodInfo) ProtoMessage

func (*PodInfo) ProtoMessage()

func (*PodInfo) Reset

func (m *PodInfo) Reset()

func (*PodInfo) Size

func (m *PodInfo) Size() (n int)

func (*PodInfo) String

func (this *PodInfo) String() string

func (PodInfo) SwaggerDoc

func (PodInfo) SwaggerDoc() map[string]string

func (*PodInfo) Unmarshal

func (m *PodInfo) Unmarshal(dAtA []byte) error

func (*PodInfo) XXX_DiscardUnknown

func (m *PodInfo) XXX_DiscardUnknown()

func (*PodInfo) XXX_Marshal

func (m *PodInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodInfo) XXX_Merge

func (m *PodInfo) XXX_Merge(src proto.Message)

func (*PodInfo) XXX_Size

func (m *PodInfo) XXX_Size() int

func (*PodInfo) XXX_Unmarshal

func (m *PodInfo) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package index provides indexes for the api.
Package index provides indexes for the api.

Jump to

Keyboard shortcuts

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