diff --git a/readme.md b/readme.md index 72f11516..4d46df65 100644 --- a/readme.md +++ b/readme.md @@ -104,7 +104,12 @@ If you don't want to expose your Keel service - I would recommend using [https:/ Since only the owners of docker registries can control webhooks - it's sometimes convenient to use polling. Be aware that registries can be rate limited so it's a good practice to set up reasonable polling intervals. - +``` +keel.sh/trigger=poll +keel.sh/pollSchedule=@every 1m +keel.sh/registryUsername=username_secret_ref +keel.sh/registryPassword=password_secret_ref +``` ### Step 2: Kubernetes diff --git a/registry/registry.go b/registry/registry.go index 11470cdf..f6ec9a9f 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -11,12 +11,15 @@ var ( ErrTagNotSupplied = errors.New("tag not supplied") ) +// Repository - holds repository related info type Repository struct { Name string - Tags []string + Tags []string // available tags } type Client interface { + Get(opts Opts) (*Repository, error) + Digest(opts Opts) (digest string, err error) } func New() *DefaultClient {