Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ImagePolicyResource describes the CRD configuration for the ImagePolicy CRD. ImagePolicyResource = kubekit.CustomResource{ Name: "imagepolicy", Plural: "imagepolicies", Group: v1alpha1.GroupName, Version: v1alpha1.Version, Scope: v1beta1.NamespaceScoped, Aliases: []string{"ip"}, Object: &v1alpha1.ImagePolicy{}, Validation: v1alpha1.ImagePolicyValidationSchema, } )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller will take care of syncing the internal status of the ImagePolicy object with the available images filtered by repo, releases, and versions
func NewController ¶
func NewController(rcfg *rest.Config, cs kubernetes.Interface, namespace string) (*Controller, error)
NewController returns a new ImagePolicy Controller.
func (*Controller) Run ¶
func (c *Controller) Run() error
Run runs the Controller in the background and sets up watchers to take action when the desired state is altered.
Click to show internal directories.
Click to hide internal directories.