Allow ImageUpdateAutomations in object refs

This adds ImageUpdateAutomation as a kind allowed by cross-namespace
object references here. That has two effects:

 - ImageUpdateAutomation objects can be the source of events; and,
 - ImageUpdateAutomation objects can be the target of webhook
   triggers.

Of these, the first is certainly desirable (e.g,. now you can post a
Slack message when automation fails). The second may be useful, though
automations will more usually be triggered by ImageRepository objects
changing, and anyway doesn't hurt.

Signed-off-by: Michael Bridgen <michael@weave.works>
This commit is contained in:
Michael Bridgen 2021-01-21 13:15:15 +00:00
parent 6167e939da
commit b927be3263
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ type CrossNamespaceObjectReference struct {
APIVersion string `json:"apiVersion,omitempty"`
// Kind of the referent
// +kubebuilder:validation:Enum=Bucket;GitRepository;Kustomization;HelmRelease;HelmChart;HelmRepository;ImageRepository
// +kubebuilder:validation:Enum=Bucket;GitRepository;Kustomization;HelmRelease;HelmChart;HelmRepository;ImageRepository;ImageUpdateAutomation
// +required
Kind string `json:"kind,omitempty"`