Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
Diff computes steps needed to bring a current state equal to a new state. Diff will add annotations to created and updated resources required for future diffing.
There are several O(N) or O(2N) operations; However, we expect N to be small.
func (*Diff[T]) Creates ¶
func (diff *Diff[T]) Creates() []T
Creates returns a list of resources that should be created from scratch. Calls are memoized, so you can call this method multiple times without incurring additional cost. Adds labels and annotations on the resource to aid in future diffing.
type Resource ¶
type Resource[T client.Object] interface { Object() T // Revision returns a unique identifier for the resource. A simple hash of the resource is sufficient. Revision() string // Ordinal returns the ordinal position of the resource. If order doesn't matter, return 0. Ordinal() int64 }
Resource is a diffable kubernetes object.
Click to show internal directories.
Click to hide internal directories.