Documentation
¶
Index ¶
Constants ¶
View Source
const (
OAMObjectCurrentSpecAnnotationKey = v1alpha1.Group + v1alpha1.Separator + "oam-object-current-spec"
)
Variables ¶
This section is empty.
Functions ¶
func SpecEqual ¶
SpecEqual compare object (such as *deployment, need to be pointer) and spec (such as DeploymentSpec) If flag update is set, the input object will change annotation if current spec is not equal to target spec. This function assumes object has field `ObjectMeta` which must be satisfied to use it. This function is designed to reduce traffic in EDAS reconcile. Other controller (such as rollout-controller) should not make assumption that object with same spec would not be updated repetitively although this function should filter these situations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.