Documentation
¶
Index ¶
Constants ¶
const MaxConditionMessageBytes = 32768
MaxConditionMessageBytes is the longest metav1.Condition message the API server accepts. Every writer of a condition message truncates to it.
const (
OperationConditionCompleted = "Completed"
)
Variables ¶
This section is empty.
Functions ¶
func TruncateUTF8Bytes ¶ added in v0.23.0
TruncateUTF8Bytes returns value cut to at most maxBytes bytes without splitting a UTF-8 sequence.
Types ¶
type ClusterInfo ¶
type ClusterInfo struct {
APIServer string
CACertBase64 string
ClusterDNS string
KubeVersion string
ProviderLabels map[string]string
}
ClusterInfo holds the cluster-level data needed to build host replacement cloud-init.
func ResolveClusterInfo ¶
func ResolveClusterInfo(ctx context.Context, apiServerEndpoint string, k kubernetes.Interface) (*ClusterInfo, error)
ResolveClusterInfo resolves cluster bootstrap details for HostReplace.
type MachineOperationReconciler ¶
type MachineOperationReconciler struct {
client.Client
RESTMapper apimeta.RESTMapper
Providers []*Provider
SiteName string
ProviderName string
MaxConcurrentReconciles int
ProviderPollInterval time.Duration
ProviderStallAfter time.Duration
ProviderStalledPollInterval time.Duration
Now func() metav1.Time
ClusterInfo *ClusterInfo
KubeClient kubernetes.Interface
APIServerEndpoint string
CredentialSecretNamespace string
}
MachineOperationReconciler reconciles MachineOperation objects that target externally controlled machines.
func (*MachineOperationReconciler) SetupWithManager ¶
func (r *MachineOperationReconciler) SetupWithManager(mgr ctrl.Manager) error
type OperationAuth ¶ added in v0.1.8
type OperationAuth = publicmachineops.OperationAuth
OperationAuth is the provider-facing credential material resolved for an operation.
type OperationRequest ¶
type OperationRequest = publicmachineops.OperationRequest
OperationRequest is the generic provider-facing view of a MachineOperation.
type OperationResult ¶ added in v0.1.6
type OperationResult = publicmachineops.OperationResult
OperationResult describes provider-side changes that must be reflected after execution.
type Provider ¶
type Provider = publicmachineops.Provider
Provider registers MachineOperation lifecycle strategies for one external provider.