generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathstatus.go
37 lines (29 loc) · 1.39 KB
/
status.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
package v1alpha1
type State string
// Valid Module CR States.
const (
// StateReady signifies Module CR is Ready and has been installed successfully.
StateReady State = "Ready"
// StateProcessing signifies Module CR is reconciling and is in the process of installation.
// Processing can also signal that the Installation previously encountered an error and is now recovering.
StateProcessing State = "Processing"
// StateError signifies an error for Module CR. This signifies that the Installation
// process encountered an error.
// Contrary to Processing, it can be expected that this state should change on the next retry.
StateError State = "Error"
// StateDeleting signifies Module CR is being deleted. This is the state that is used
// when a deletionTimestamp was detected and Finalizers are picked up.
StateDeleting State = "Deleting"
// StateWarning signifies specified resource has been deployed, but cannot be used due to misconfiguration,
// usually it means that user interaction is required.
StateWarning State = "Warning"
)
// +k8s:deepcopy-gen=true
// Status defines the observed state of Module CR.
type Status struct {
// State signifies current state of Module CR.
// Value can be one of ("Ready", "Processing", "Error", "Deleting").
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=Processing;Deleting;Ready;Error;Warning;""
State State `json:"state"`
}