@@ -22,7 +22,7 @@ import (
22
22
23
23
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
24
24
25
- // Storage version of a specific resource.
25
+ // StorageVersion of a specific resource.
26
26
type StorageVersion struct {
27
27
metav1.TypeMeta
28
28
// The name is <group>.<resource>.
@@ -39,7 +39,7 @@ type StorageVersion struct {
39
39
// StorageVersionSpec is an empty spec.
40
40
type StorageVersionSpec struct {}
41
41
42
- // API server instances report the versions they can decode and the version they
42
+ // StorageVersionStatus API server instances report the versions they can decode and the version they
43
43
// encode objects to when persisting objects in the backend.
44
44
type StorageVersionStatus struct {
45
45
// The reported versions per API server instance.
@@ -57,7 +57,7 @@ type StorageVersionStatus struct {
57
57
Conditions []StorageVersionCondition
58
58
}
59
59
60
- // An API server instance reports the version it can decode and the version it
60
+ // ServerStorageVersion An API server instance reports the version it can decode and the version it
61
61
// encodes objects to when persisting objects in the backend.
62
62
type ServerStorageVersion struct {
63
63
// The ID of the reporting API server.
@@ -72,22 +72,27 @@ type ServerStorageVersion struct {
72
72
DecodableVersions []string
73
73
}
74
74
75
+ // StorageVersionConditionType Indicates the storage version condition type
75
76
type StorageVersionConditionType string
76
77
77
78
const (
78
- // Indicates that encoding storage versions reported by all servers are equal.
79
+ //AllEncodingVersionsEqual Indicates that encoding storage versions reported by all servers are equal.
79
80
AllEncodingVersionsEqual StorageVersionConditionType = "AllEncodingVersionsEqual"
80
81
)
81
82
83
+ // ConditionStatus indicates status of condition from "True", "False", or "Unknown"
82
84
type ConditionStatus string
83
85
84
86
const (
85
- ConditionTrue ConditionStatus = "True"
86
- ConditionFalse ConditionStatus = "False"
87
+ // ConditionTrue indicates condition as "True"
88
+ ConditionTrue ConditionStatus = "True"
89
+ // ConditionFalse indicates condition as "False"
90
+ ConditionFalse ConditionStatus = "False"
91
+ // ConditionUnknown indicates condition as "Unknown"
87
92
ConditionUnknown ConditionStatus = "Unknown"
88
93
)
89
94
90
- // Describes the state of the storageVersion at a certain point.
95
+ // StorageVersionCondition Describes the state of the storageVersion at a certain point.
91
96
type StorageVersionCondition struct {
92
97
// Type of the condition.
93
98
// +optional
@@ -111,7 +116,7 @@ type StorageVersionCondition struct {
111
116
112
117
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
113
118
114
- // A list of StorageVersions.
119
+ // StorageVersionList A list of StorageVersions.
115
120
type StorageVersionList struct {
116
121
metav1.TypeMeta
117
122
// +optional
0 commit comments