Documentation ¶
Index ¶
- func ContainerForObjectFieldPath(obj runtime.Object, fieldPath string) (ometa.ContainerMutator, string, error)
- 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 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
type AnnotationUpdater ¶
Click to show internal directories.
Click to hide internal directories.