diff options
| author | Jan Pieper <kontakt@jan-pieper.info> | 2022-01-29 18:17:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-29 18:17:46 +0100 |
| commit | e46a206038282c41bdbab06fce3f84ce9fe33173 (patch) | |
| tree | a924c9ddbfb83032ca30f9e9dcc8398ecf7e2710 /pkg/common/constants.go | |
| parent | 113d8e74e5346132803605512bfac97bb0d84ae6 (diff) | |
feat: Support app-wide update-strategy annotations (#338)
* feat: support app-wide update-strategy annotations
* refactor: rename constants for pull-secret annotations
Diffstat (limited to 'pkg/common/constants.go')
| -rw-r--r-- | pkg/common/constants.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkg/common/constants.go b/pkg/common/constants.go index 84f39c8..a342cd4 100644 --- a/pkg/common/constants.go +++ b/pkg/common/constants.go @@ -26,19 +26,24 @@ const ( KustomizeApplicationNameAnnotation = ImageUpdaterAnnotationPrefix + "/%s.kustomize.image-name" ) -// Upgrade strategy related annotations +// Image specific configuration annotations const ( OldMatchOptionAnnotation = ImageUpdaterAnnotationPrefix + "/%s.tag-match" // Deprecated and will be removed AllowTagsOptionAnnotation = ImageUpdaterAnnotationPrefix + "/%s.allow-tags" IgnoreTagsOptionAnnotation = ImageUpdaterAnnotationPrefix + "/%s.ignore-tags" ForceUpdateOptionAnnotation = ImageUpdaterAnnotationPrefix + "/%s.force-update" UpdateStrategyAnnotation = ImageUpdaterAnnotationPrefix + "/%s.update-strategy" + PullSecretAnnotation = ImageUpdaterAnnotationPrefix + "/%s.pull-secret" PlatformsAnnotation = ImageUpdaterAnnotationPrefix + "/%s.platforms" ) -// Image pull secret related annotations +// Application-wide update strategy related annotations const ( - SecretListAnnotation = ImageUpdaterAnnotationPrefix + "/%s.pull-secret" + ApplicationWideAllowTagsOptionAnnotation = ImageUpdaterAnnotationPrefix + "/allow-tags" + ApplicationWideIgnoreTagsOptionAnnotation = ImageUpdaterAnnotationPrefix + "/ignore-tags" + ApplicationWideForceUpdateOptionAnnotation = ImageUpdaterAnnotationPrefix + "/force-update" + ApplicationWideUpdateStrategyAnnotation = ImageUpdaterAnnotationPrefix + "/update-strategy" + ApplicationWidePullSecretAnnotation = ImageUpdaterAnnotationPrefix + "/pull-secret" ) // Application update configuration related annotations |
