@@ -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,32 @@ 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 has been exported.
176
+ // This would be used when an implementation exports a service
177
+ // to a control plane 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 has been exported.
182
+ // This would typically be used in an implementation that uses a
183
+ // pull model.
184
+ ServiceExportReasonReady ServiceExportConditionReason = "Ready"
185
+
186
+ // ServiceExportReasonPending is used with the "Ready" condition
181
187
// when the service is in the process of being exported.
182
188
ServiceExportReasonPending ServiceExportConditionReason = "Pending"
183
189
184
- // ServiceExportReasonFailed is used with the "Exported " condition
190
+ // ServiceExportReasonFailed is used with the "Ready " condition
185
191
// when the service failed to be exported with the message providing
186
192
// the specific reason.
187
193
ServiceExportReasonFailed ServiceExportConditionReason = "Failed"
188
194
)
189
195
190
196
const (
191
- // ServiceExportConditionConflicted indicates that some property of an
197
+ // ServiceExportConditionConflict indicates that some property of an
192
198
// exported service has conflicting values across the constituent
193
199
// ServiceExports. This condition must be at least raised on the
194
200
// conflicting ServiceExport and is recommended to be raised on all on
@@ -214,40 +220,40 @@ const (
214
220
// Controllers may raise this condition with other reasons,
215
221
// but should prefer to use the reasons listed above to improve
216
222
// interoperability.
217
- ServiceExportConditionConflicted ServiceExportConditionType = "Conflicted "
223
+ ServiceExportConditionConflict ServiceExportConditionType = "Conflict "
218
224
219
- // ServiceExportReasonPortConflict is used with the "Conflicted " condition
225
+ // ServiceExportReasonPortConflict is used with the "Conflict " condition
220
226
// when the exported service has a conflict related to port configuration.
221
227
// This includes when ports on resulting imported services would have
222
228
// duplicated names (including unnamed/empty name) or duplicated
223
229
// port/protocol pairs.
224
230
ServiceExportReasonPortConflict ServiceExportConditionReason = "PortConflict"
225
231
226
- // ServiceExportReasonTypeConflict is used with the "Conflicted " condition
232
+ // ServiceExportReasonTypeConflict is used with the "Conflict " condition
227
233
// when the exported service has a conflict related to the service type
228
234
// (eg headless vs non-headless).
229
235
ServiceExportReasonTypeConflict ServiceExportConditionReason = "TypeConflict"
230
236
231
- // ServiceExportReasonSessionAffinityConflict is used with the "Conflicted "
237
+ // ServiceExportReasonSessionAffinityConflict is used with the "Conflict "
232
238
// condition when the exported service has a conflict related to session affinity.
233
239
ServiceExportReasonSessionAffinityConflict ServiceExportConditionReason = "SessionAffinityConflict"
234
240
235
241
// ServiceExportReasonSessionAffinityConfigConflict is used with the
236
- // "Conflicted " condition when the exported service has a conflict related
242
+ // "Conflict " condition when the exported service has a conflict related
237
243
// to session affinity config.
238
244
ServiceExportReasonSessionAffinityConfigConflict ServiceExportConditionReason = "SessionAffinityConfigConflict"
239
245
240
- // ServiceExportReasonLabelsConflict is used with the "Conflicted "
246
+ // ServiceExportReasonLabelsConflict is used with the "Conflict "
241
247
// condition when the ServiceExport has a conflict related to exported
242
248
// labels.
243
249
ServiceExportReasonLabelsConflict ServiceExportConditionReason = "LabelsConflict"
244
250
245
- // ServiceExportReasonAnnotationsConflict is used with the "Conflicted "
251
+ // ServiceExportReasonAnnotationsConflict is used with the "Conflict "
246
252
// condition when the ServiceExport has a conflict related to exported
247
253
// annotations.
248
254
ServiceExportReasonAnnotationsConflict ServiceExportConditionReason = "AnnotationsConflict"
249
255
250
- // ServiceExportReasonNoConflicts is used with the "Conflicted " condition
256
+ // ServiceExportReasonNoConflicts is used with the "Conflict " condition
251
257
// when the condition is False.
252
258
ServiceExportReasonNoConflicts ServiceExportConditionReason = "NoConflicts"
253
259
)
0 commit comments