1
0
mirror of synced 2026-03-26 19:56:55 +00:00

Changed reason to more broadly applicable message.

Signed-off-by: Travis Mattera <travis@mattera.io>
This commit is contained in:
Travis Mattera
2023-11-28 20:01:16 -08:00
parent 8483b45213
commit b8a4a2f3ff
23 changed files with 63 additions and 63 deletions

View File

@@ -47,10 +47,10 @@ func (obj imageRepositoryAdapter) isSuspended() bool {
return obj.ImageRepository.Spec.Suspend
}
func (obj imageRepositoryAdapter) setSuspended(reason string) {
func (obj imageRepositoryAdapter) setSuspended(message string) {
obj.ImageRepository.Spec.Suspend = true
if reason != "" {
obj.ImageRepository.Annotations[SuspendReasonAnnotation] = reason
if message != "" {
obj.ImageRepository.Annotations[SuspendMessageAnnotation] = message
}
}