/
cluster_phase_types.go
55 lines (44 loc) · 2.13 KB
/
cluster_phase_types.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
/*
Copyright 2021 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 v1beta1
// ClusterPhase is a string representation of a Cluster Phase.
//
// This type is a high-level indicator of the status of the Cluster 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 Cluster, and controllers should not use the Cluster Phase field
// value when making decisions about what action to take.
//
// Controllers should always look at the actual state of the Cluster’s fields to make those decisions.
type ClusterPhase string
const (
// ClusterPhasePending is the first state a Cluster is assigned by
// Cluster API Cluster controller after being created.
ClusterPhasePending = ClusterPhase("Pending")
// ClusterPhaseProvisioning is the state when the Cluster has a provider infrastructure
// object associated and can start provisioning.
ClusterPhaseProvisioning = ClusterPhase("Provisioning")
// ClusterPhaseProvisioned is the state when its
// infrastructure has been created and configured.
ClusterPhaseProvisioned = ClusterPhase("Provisioned")
// ClusterPhaseDeleting is the Cluster state when a delete
// request has been sent to the API Server,
// but its infrastructure has not yet been fully deleted.
ClusterPhaseDeleting = ClusterPhase("Deleting")
// ClusterPhaseFailed is the Cluster state when the system
// might require user intervention.
ClusterPhaseFailed = ClusterPhase("Failed")
// ClusterPhaseUnknown is returned if the Cluster state cannot be determined.
ClusterPhaseUnknown = ClusterPhase("Unknown")
)