-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
condition_consts.go
79 lines (63 loc) · 4.07 KB
/
condition_consts.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package v1alpha3
import clusterv1alpha3 "sigs.k8s.io/cluster-api/internal/apis/core/v1alpha3"
// Conditions and condition Reasons for the DockerMachine object.
const (
// ContainerProvisionedCondition documents the status of the provisioning of the container
// generated by a DockerMachine.
//
// NOTE: When the container provisioning starts the process completes almost immediately and within
// the same reconciliation, so the user will always see a transition from Wait to Provisioned without
// having evidence that the operation is started/is in progress.
ContainerProvisionedCondition clusterv1alpha3.ConditionType = "ContainerProvisioned"
// WaitingForClusterInfrastructureReason (Severity=Info) documents a DockerMachine waiting for the cluster
// infrastructure to be ready before starting to create the container that provides the DockerMachine
// infrastructure.
WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"
// WaitingForBootstrapDataReason (Severity=Info) documents a DockerMachine waiting for the bootstrap
// script to be ready before starting to create the container that provides the DockerMachine infrastructure.
WaitingForBootstrapDataReason = "WaitingForBootstrapData"
// ContainerProvisioningFailedReason (Severity=Warning) documents a DockerMachine controller detecting
// an error while provisioning the container that provides the DockerMachine infrastructure; those kind of
// errors are usually transient and failed provisioning are automatically re-tried by the controller.
ContainerProvisioningFailedReason = "ContainerProvisioningFailed"
)
const (
// BootstrapExecSucceededCondition provide an observation of the DockerMachine bootstrap process.
// The condition gets generated after ContainerProvisionedCondition is True.
//
// NOTE as a difference from other providers, container provisioning and bootstrap are directly managed
// by the DockerMachine controller (not by cloud-init).
BootstrapExecSucceededCondition clusterv1alpha3.ConditionType = "BootstrapExecSucceeded"
// BootstrappingReason documents (Severity=Info) a DockerMachine currently executing the bootstrap
// script that creates the Kubernetes node on the newly provisioned machine infrastructure.
BootstrappingReason = "Bootstrapping"
// BootstrapFailedReason documents (Severity=Warning) a DockerMachine controller detecting an error while
// bootstrapping the Kubernetes node on the machine just provisioned; those kind of errors are usually
// transient and failed bootstrap are automatically re-tried by the controller.
BootstrapFailedReason = "BootstrapFailed"
)
// Conditions and condition Reasons for the DockerCluster object.
const (
// LoadBalancerAvailableCondition documents the availability of the container that implements the cluster load balancer.
//
// NOTE: When the load balancer provisioning starts the process completes almost immediately and within
// the same reconciliation, so the user will always see a transition from no condition to available without
// having evidence that the operation is started/is in progress.
LoadBalancerAvailableCondition clusterv1alpha3.ConditionType = "LoadBalancerAvailable"
// LoadBalancerProvisioningFailedReason (Severity=Warning) documents a DockerCluster controller detecting
// an error while provisioning the container that provides the cluster load balancer.; those kind of
// errors are usually transient and failed provisioning are automatically re-tried by the controller.
LoadBalancerProvisioningFailedReason = "LoadBalancerProvisioningFailed"
)