mirror of
https://github.com/siderolabs/sidero.git
synced 2025-10-24 14:01:13 +02:00
Now `PXEBooted` condition is derived from `TalosInstalled` condition of the linked `ServerBinding`. This makes the node to use `pxe` boot until Talos installation succeeds. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
50 lines
1.9 KiB
Go
50 lines
1.9 KiB
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
// +kubebuilder:object:generate=true
|
|
// +groupName=controlplane.cluster.x-k8s.io
|
|
package v1alpha3
|
|
|
|
import clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
|
|
|
|
// Conditions and condition Reasons for the TalosControlPlane object
|
|
|
|
const (
|
|
// ProviderSetCondition reports when the nodes have .spec.Provider ID field set.
|
|
ProviderSetCondition clusterv1.ConditionType = "ProviderSet"
|
|
|
|
// ProviderUpdateFailedReason (Severity=Warning) documents that controller failed
|
|
// to set ProviderID labels on all nodes.
|
|
ProviderUpdateFailedReason = "ProviderUpdateFailed"
|
|
)
|
|
|
|
const (
|
|
// TalosConfigValidatedCondition reports when talos has loaded and validated the config
|
|
// for the machine.
|
|
TalosConfigValidatedCondition clusterv1.ConditionType = "TalosConfigValidated"
|
|
|
|
// TalosConfigValidationFailedReason (Severity=Error) documents that Talos config validation has failed.
|
|
TalosConfigValidationFailedReason = "TalosConfigValidationFailed"
|
|
)
|
|
|
|
const (
|
|
// TalosConfigLoadedCondition reports when talos has loaded the config
|
|
// for the machine.
|
|
TalosConfigLoadedCondition clusterv1.ConditionType = "TalosConfigLoaded"
|
|
|
|
// TalosConfigLoadedationFailedReason (Severity=Error) documents that Talos config validation has failed.
|
|
TalosConfigLoadFailedReason = "TalosConfigLoadFailed"
|
|
)
|
|
|
|
const (
|
|
// TalosInstalledCondition reports when Talos OS was successfully installed on the node.
|
|
TalosInstalledCondition clusterv1.ConditionType = "TalosInstalled"
|
|
|
|
// TalosInstallationInProgressReason (Severity=Info) documents that Talos installation is in progress.
|
|
TalosInstallationInProgressReason = "TalosInstallationInProgress"
|
|
|
|
// TalosInstallationFailedReason (Severity=Error) documents that Talos installer has failed.
|
|
TalosInstallationFailedReason = "TalosInstallationFailed"
|
|
)
|