Documentation ¶
Index ¶
- func ContainerForObjectFieldPath(obj runtime.Object, fieldPath string) (ometa.ContainerMutator, string, error)
- func ContainerImageChanged(oldObj, newObj runtime.Object, newTriggers []triggerapi.ObjectFieldTrigger) bool
- func NewAnnotationTriggerIndexer(prefix string) trigger.Indexer
- func UpdateObjectFromImages(obj runtime.Object, tagRetriever trigger.TagRetriever) (runtime.Object, error)
- type AnnotationReactor
- type AnnotationUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerForObjectFieldPath ¶
func ContainerForObjectFieldPath(obj runtime.Object, fieldPath string) (ometa.ContainerMutator, string, error)
ContainerForObjectFieldPath returns a reference to the container in the object with pod spec underneath fieldPath. Returns error if no such container exists or the field path is invalid. Returns the remaining field path beyond the container, if any.
func ContainerImageChanged ¶
func ContainerImageChanged(oldObj, newObj runtime.Object, newTriggers []triggerapi.ObjectFieldTrigger) bool
ContainerImageChanged returns true if any container image referenced by newTriggers changed.
func NewAnnotationTriggerIndexer ¶
NewAnnotationTriggerIndexer creates an indexer that deals with objects that have a pod spec and use annotations to indicate the desire to trigger.
func UpdateObjectFromImages ¶
func UpdateObjectFromImages(obj runtime.Object, tagRetriever trigger.TagRetriever) (runtime.Object, error)
UpdateObjectFromImages attempts to set the appropriate object information. If changes are necessary, it lazily copies obj and returns it, or if no changes are necessary returns nil.
Types ¶
type AnnotationReactor ¶
type AnnotationReactor struct {
Updater AnnotationUpdater
}
func (*AnnotationReactor) ImageChanged ¶
func (r *AnnotationReactor) ImageChanged(obj runtime.Object, tagRetriever trigger.TagRetriever) error