diff --git a/src/KubernetesClient/Watcher.cs b/src/KubernetesClient/Watcher.cs index 5c850c3..cde5785 100644 --- a/src/KubernetesClient/Watcher.cs +++ b/src/KubernetesClient/Watcher.cs @@ -10,15 +10,27 @@ using Microsoft.Rest.Serialization; namespace k8s { + /// Describes the type of a watch event. public enum WatchEventType { + /// Emitted when an object is created, modified to match a watch's filter, or when a watch is first opened. [EnumMember(Value = "ADDED")] Added, + /// Emitted when an object is modified. [EnumMember(Value = "MODIFIED")] Modified, + /// Emitted when an object is deleted or modified to no longer match a watch's filter. [EnumMember(Value = "DELETED")] Deleted, - [EnumMember(Value = "ERROR")] Error + /// Emitted when an error occurs while watching resources. Most commonly, the error is 410 Gone which indicates that + /// the watch resource version was outdated and events were probably lost. In that case, the watch should be restarted. + /// + [EnumMember(Value = "ERROR")] Error, + + /// Bookmarks may be emitted periodically to update the resource version. The object will + /// contain only the resource version. + /// + [EnumMember(Value = "BOOKMARK")] Bookmark, } public class Watcher : IDisposable