@@ -67,7 +67,7 @@ const (
67
67
// This will be false if the service is found to be unexportable
68
68
// (ExternalName, not found).
69
69
//
70
- // Deprecated: use ServiceExportConditionAccepted instead
70
+ // Deprecated: use ServiceExportConditionValid instead
71
71
ServiceExportValid = "Valid"
72
72
// ServiceExportConflict means that there is a conflict between two
73
73
// exports for the same Service. When "True", the condition message
@@ -76,7 +76,7 @@ const (
76
76
// Users should not expect detailed per-cluster information in the
77
77
// conflict message.
78
78
//
79
- // Deprecated: use ServiceExportConditionConflicted instead
79
+ // Deprecated: use ServiceExportConditionConflict instead
80
80
ServiceExportConflict = "Conflict"
81
81
)
82
82
@@ -114,14 +114,14 @@ func NewServiceExportCondition(t ServiceExportConditionType, status metav1.Condi
114
114
}
115
115
116
116
const (
117
- // ServiceExportConditionAccepted is true when the Service Export is accepted .
117
+ // ServiceExportConditionValid is true when the Service Export is valid .
118
118
// This does not indicate whether or not the configuration has been exported
119
119
// to a control plane / data plane.
120
120
//
121
121
//
122
122
// Possible reasons for this condition to be true are:
123
123
//
124
- // * "Accepted "
124
+ // * "Valid "
125
125
//
126
126
// Possible reasons for this condition to be False are:
127
127
//
@@ -131,33 +131,31 @@ const (
131
131
// Controllers may raise this condition with other reasons,
132
132
// but should prefer to use the reasons listed above to improve
133
133
// interoperability.
134
- ServiceExportConditionAccepted ServiceExportConditionType = "Accepted "
134
+ ServiceExportConditionValid ServiceExportConditionType = "Valid "
135
135
136
- // ServiceExportReasonAccepted is used with the "Accepted " condition when the
136
+ // ServiceExportReasonValid is used with the "Valid " condition when the
137
137
// condition is True.
138
- ServiceExportReasonAccepted ServiceExportConditionReason = "Accepted "
138
+ ServiceExportReasonValid ServiceExportConditionReason = "Valid "
139
139
140
- // ServiceExportReasonNoService is used with the "Accepted " condition when
140
+ // ServiceExportReasonNoService is used with the "Valid " condition when
141
141
// the associated Service does not exist.
142
142
ServiceExportReasonNoService ServiceExportConditionReason = "NoService"
143
143
144
- // ServiceExportReasonInvalidServiceType is used with the "Accepted "
144
+ // ServiceExportReasonInvalidServiceType is used with the "Valid "
145
145
// condition when the associated Service has an invalid type
146
146
// (per the KEP at least the ExternalName type).
147
147
ServiceExportReasonInvalidServiceType ServiceExportConditionReason = "InvalidServiceType"
148
148
)
149
149
150
150
const (
151
- // ServiceExportConditionExported is true when the service is exported to some
152
- // control plane or data plane. This condition might not makes sense
153
- // for every implementation, particularly if they function in a "pull mode"
154
- // rather than actually exporting the service, and in that case implementations
155
- // do not have do use this Condition type at all.
151
+ // ServiceExportConditionReady is true when the service is exported
152
+ // to some control plane or data plane or ready to be pulled.
156
153
//
157
154
//
158
155
// Possible reasons for this condition to be true are:
159
156
//
160
157
// * "Exported"
158
+ // * "Ready"
161
159
//
162
160
// Possible reasons for this condition to be False are:
163
161
//
@@ -171,24 +169,31 @@ const (
171
169
// Controllers may raise this condition with other reasons,
172
170
// but should prefer to use the reasons listed above to improve
173
171
// interoperability.
174
- ServiceExportConditionExported ServiceExportConditionType = "Exported "
172
+ ServiceExportConditionReady ServiceExportConditionType = "Ready "
175
173
176
- // ServiceExportReasonExported is used with the "Exported" condition
177
- // when the condition is True.
174
+ // ServiceExportReasonExported is used with the "Ready" condition
175
+ // when the condition is True and the service are exported. This should be
176
+ // used when an implementation have to export a service to a control plane
177
+ // or data plane.
178
178
ServiceExportReasonExported ServiceExportConditionReason = "Exported"
179
179
180
- // ServiceExportReasonPending is used with the "Exported" condition
180
+ // ServiceExportReasonReady is used with the "Ready" condition
181
+ // when the condition is True and the service are exported. This would
182
+ // typically be used in an implementation that using a pull model.
183
+ ServiceExportReasonReady ServiceExportConditionReason = "Ready"
184
+
185
+ // ServiceExportReasonPending is used with the "Ready" condition
181
186
// when the service is in the process of being exported.
182
187
ServiceExportReasonPending ServiceExportConditionReason = "Pending"
183
188
184
- // ServiceExportReasonFailed is used with the "Exported " condition
189
+ // ServiceExportReasonFailed is used with the "Ready " condition
185
190
// when the service failed to be exported with the message providing
186
191
// the specific reason.
187
192
ServiceExportReasonFailed ServiceExportConditionReason = "Failed"
188
193
)
189
194
190
195
const (
191
- // ServiceExportConditionConflicted indicates that some property of an
196
+ // ServiceExportConditionConflict indicates that some property of an
192
197
// exported service has conflicting values across the constituent
193
198
// ServiceExports. This condition must be at least raised on the
194
199
// conflicting ServiceExport and is recommended to be raised on all on
@@ -214,40 +219,40 @@ const (
214
219
// Controllers may raise this condition with other reasons,
215
220
// but should prefer to use the reasons listed above to improve
216
221
// interoperability.
217
- ServiceExportConditionConflicted ServiceExportConditionType = "Conflicted "
222
+ ServiceExportConditionConflict ServiceExportConditionType = "Conflict "
218
223
219
- // ServiceExportReasonPortConflict is used with the "Conflicted " condition
224
+ // ServiceExportReasonPortConflict is used with the "Conflict " condition
220
225
// when the exported service has a conflict related to port configuration.
221
226
// This includes when ports on resulting imported services would have
222
227
// duplicated names (including unnamed/empty name) or duplicated
223
228
// port/protocol pairs.
224
229
ServiceExportReasonPortConflict ServiceExportConditionReason = "PortConflict"
225
230
226
- // ServiceExportReasonTypeConflict is used with the "Conflicted " condition
231
+ // ServiceExportReasonTypeConflict is used with the "Conflict " condition
227
232
// when the exported service has a conflict related to the service type
228
233
// (eg headless vs non-headless).
229
234
ServiceExportReasonTypeConflict ServiceExportConditionReason = "TypeConflict"
230
235
231
- // ServiceExportReasonSessionAffinityConflict is used with the "Conflicted "
236
+ // ServiceExportReasonSessionAffinityConflict is used with the "Conflict "
232
237
// condition when the exported service has a conflict related to session affinity.
233
238
ServiceExportReasonSessionAffinityConflict ServiceExportConditionReason = "SessionAffinityConflict"
234
239
235
240
// ServiceExportReasonSessionAffinityConfigConflict is used with the
236
- // "Conflicted " condition when the exported service has a conflict related
241
+ // "Conflict " condition when the exported service has a conflict related
237
242
// to session affinity config.
238
243
ServiceExportReasonSessionAffinityConfigConflict ServiceExportConditionReason = "SessionAffinityConfigConflict"
239
244
240
- // ServiceExportReasonLabelsConflict is used with the "Conflicted "
245
+ // ServiceExportReasonLabelsConflict is used with the "Conflict "
241
246
// condition when the ServiceExport has a conflict related to exported
242
247
// labels.
243
248
ServiceExportReasonLabelsConflict ServiceExportConditionReason = "LabelsConflict"
244
249
245
- // ServiceExportReasonAnnotationsConflict is used with the "Conflicted "
250
+ // ServiceExportReasonAnnotationsConflict is used with the "Conflict "
246
251
// condition when the ServiceExport has a conflict related to exported
247
252
// annotations.
248
253
ServiceExportReasonAnnotationsConflict ServiceExportConditionReason = "AnnotationsConflict"
249
254
250
- // ServiceExportReasonNoConflicts is used with the "Conflicted " condition
255
+ // ServiceExportReasonNoConflicts is used with the "Conflict " condition
251
256
// when the condition is False.
252
257
ServiceExportReasonNoConflicts ServiceExportConditionReason = "NoConflicts"
253
258
)
0 commit comments