Skip to content

Commit 33e0b28

Browse files
authored
Add WatchEventType.Bookmark (#414)
* Add WatchEventType.Bookmark * Avoid changing value order
1 parent 4da6b65 commit 33e0b28

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/KubernetesClient/Watcher.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,27 @@
1010

1111
namespace k8s
1212
{
13+
/// <summary>Describes the type of a watch event.</summary>
1314
public enum WatchEventType
1415
{
16+
/// <summary>Emitted when an object is created, modified to match a watch's filter, or when a watch is first opened.</summary>
1517
[EnumMember(Value = "ADDED")] Added,
1618

19+
/// <summary>Emitted when an object is modified.</summary>
1720
[EnumMember(Value = "MODIFIED")] Modified,
1821

22+
/// <summary>Emitted when an object is deleted or modified to no longer match a watch's filter.</summary>
1923
[EnumMember(Value = "DELETED")] Deleted,
2024

21-
[EnumMember(Value = "ERROR")] Error
25+
/// <summary>Emitted when an error occurs while watching resources. Most commonly, the error is 410 Gone which indicates that
26+
/// the watch resource version was outdated and events were probably lost. In that case, the watch should be restarted.
27+
/// </summary>
28+
[EnumMember(Value = "ERROR")] Error,
29+
30+
/// <summary>Bookmarks may be emitted periodically to update the resource version. The object will
31+
/// contain only the resource version.
32+
/// </summary>
33+
[EnumMember(Value = "BOOKMARK")] Bookmark,
2234
}
2335

2436
public class Watcher<T> : IDisposable

0 commit comments

Comments
 (0)