From e46a206038282c41bdbab06fce3f84ce9fe33173 Mon Sep 17 00:00:00 2001 From: Jan Pieper Date: Sat, 29 Jan 2022 18:17:46 +0100 Subject: feat: Support app-wide update-strategy annotations (#338) * feat: support app-wide update-strategy annotations * refactor: rename constants for pull-secret annotations --- pkg/common/constants.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'pkg/common/constants.go') 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 -- cgit v1.2.3