-
Notifications
You must be signed in to change notification settings - Fork 242
/
Copy pathreplica_v1beta2.json
192 lines (192 loc) · 7.5 KB
/
replica_v1beta2.json
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"description": "Replica is where Longhorn stores replica object.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "ReplicaSpec defines the desired state of the Longhorn replica",
"properties": {
"active": {
"type": "boolean"
},
"backendStoreDriver": {
"description": "Deprecated:Replaced by field `dataEngine`.",
"type": "string"
},
"backingImage": {
"type": "string"
},
"dataDirectoryName": {
"type": "string"
},
"dataEngine": {
"enum": [
"v1",
"v2"
],
"type": "string"
},
"desireState": {
"type": "string"
},
"diskID": {
"type": "string"
},
"diskPath": {
"type": "string"
},
"engineImage": {
"description": "Deprecated: Replaced by field `image`.",
"type": "string"
},
"engineName": {
"type": "string"
},
"evictionRequested": {
"type": "boolean"
},
"failedAt": {
"description": "FailedAt is set when a running replica fails or when a running engine is unable to use a replica for any reason.\nFailedAt indicates the time the failure occurred. When FailedAt is set, a replica is likely to have useful\n(though possibly stale) data. A replica with FailedAt set must be rebuilt from a non-failed replica (or it can\nbe used in a salvage if all replicas are failed). FailedAt is cleared before a rebuild or salvage. FailedAt may\nbe later than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume\ncontroller acknowledges the change.",
"type": "string"
},
"hardNodeAffinity": {
"type": "string"
},
"healthyAt": {
"description": "HealthyAt is set the first time a replica becomes read/write in an engine after creation or rebuild. HealthyAt\nindicates the time the last successful rebuild occurred. When HealthyAt is set, a replica is likely to have\nuseful (though possibly stale) data. HealthyAt is cleared before a rebuild. HealthyAt may be later than the\ncorresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller\nacknowledges the change.",
"type": "string"
},
"image": {
"type": "string"
},
"lastFailedAt": {
"description": "LastFailedAt is always set at the same time as FailedAt. Unlike FailedAt, LastFailedAt is never cleared.\nLastFailedAt is not a reliable indicator of the state of a replica's data. For example, a replica with\nLastFailedAt may already be healthy and in use again. However, because it is never cleared, it can be compared to\nLastHealthyAt to help prevent dangerous replica deletion in some corner cases. LastFailedAt may be later than the\ncorresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume controller\nacknowledges the change.",
"type": "string"
},
"lastHealthyAt": {
"description": "LastHealthyAt is set every time a replica becomes read/write in an engine. Unlike HealthyAt, LastHealthyAt is\nnever cleared. LastHealthyAt is not a reliable indicator of the state of a replica's data. For example, a\nreplica with LastHealthyAt set may be in the middle of a rebuild. However, because it is never cleared, it can be\ncompared to LastFailedAt to help prevent dangerous replica deletion in some corner cases. LastHealthyAt may be\nlater than the corresponding entry in an engine's replicaTransitionTimeMap because it is set when the volume\ncontroller acknowledges the change.",
"type": "string"
},
"logRequested": {
"type": "boolean"
},
"nodeID": {
"type": "string"
},
"rebuildRetryCount": {
"type": "integer"
},
"revisionCounterDisabled": {
"type": "boolean"
},
"salvageRequested": {
"type": "boolean"
},
"snapshotMaxCount": {
"type": "integer"
},
"snapshotMaxSize": {
"format": "int64",
"type": "string"
},
"unmapMarkDiskChainRemovedEnabled": {
"type": "boolean"
},
"volumeName": {
"type": "string"
},
"volumeSize": {
"format": "int64",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "ReplicaStatus defines the observed state of the Longhorn replica",
"properties": {
"conditions": {
"items": {
"properties": {
"lastProbeTime": {
"description": "Last time we probed the condition.",
"type": "string"
},
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "Human-readable message indicating details about last transition.",
"type": "string"
},
"reason": {
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status is the status of the condition.\nCan be True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type is the type of the condition.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"nullable": true,
"type": "array"
},
"currentImage": {
"type": "string"
},
"currentState": {
"type": "string"
},
"evictionRequested": {
"description": "Deprecated: Replaced by field `spec.evictionRequested`.",
"type": "boolean"
},
"instanceManagerName": {
"type": "string"
},
"ip": {
"type": "string"
},
"logFetched": {
"type": "boolean"
},
"ownerID": {
"type": "string"
},
"port": {
"type": "integer"
},
"salvageExecuted": {
"type": "boolean"
},
"started": {
"type": "boolean"
},
"storageIP": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}