Slides for my talk at Infracoders VII.
Original Google Slides: https://docs.google.com/presentation/d/e/2PACX-1vQnYbG32QDRcrXPKCfE4G2YlPSLtphMbnePc_xfjhRU7T9vuKgK1kI9LjYqo5GVCxbW8P7NnC02_Lnu/pub?start=false&loop=false&delayms=3000
21. Watch Events: Type Definition
type WatchEvent struct {
// The type of the watch event; added, modified, deleted, or error.
// +optional
Type watch.EventType `json:type,omitempty description:the type of watch event; may be ADDED,
MODIFIED, DELETED, BOOKMARK or ERROR`
// For added or modified objects, this is the new object; for deleted objects,
// it's the state of the object immediately prior to its deletion.
// For errors, it's an api.Status.
// +optional
Object runtime.RawExtension `json:object,omitempty description:the object being watched;
will match the type of the resource endpoint or be a Status object if the type is ERROR`
}
22. Watch Events: Build up State
Type: ModifiedType: Added
time
Type: Modified Type: Deleted