/
metalmachine_conditions.go
49 lines (37 loc) · 1.93 KB
/
metalmachine_conditions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// 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"
)