2020-05-24 23:13:21 +05:30
import { s _ _ , _ _ } from '~/locale' ;
2020-03-09 13:42:32 +05:30
export const FETCH _SETTINGS _ERROR _MESSAGE = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Something went wrong while fetching the cleanup policy.' ,
2020-03-09 13:42:32 +05:30
) ;
export const UPDATE _SETTINGS _ERROR _MESSAGE = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Something went wrong while updating the cleanup policy.' ,
2020-03-09 13:42:32 +05:30
) ;
export const UPDATE _SETTINGS _SUCCESS _MESSAGE = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Cleanup policy successfully saved.' ,
2020-03-09 13:42:32 +05:30
) ;
export const NAME _REGEX _LENGTH = 255 ;
2020-05-24 23:13:21 +05:30
2020-07-28 23:09:34 +05:30
export const ENABLED _TEXT = _ _ ( 'Enabled' ) ;
export const DISABLED _TEXT = _ _ ( 'Disabled' ) ;
2020-05-24 23:13:21 +05:30
2020-07-28 23:09:34 +05:30
export const ENABLE _TOGGLE _LABEL = s _ _ ( 'ContainerRegistry|Cleanup policy:' ) ;
2020-05-24 23:13:21 +05:30
export const ENABLE _TOGGLE _DESCRIPTION = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|%{toggleStatus} - Tags matching the patterns defined below will be scheduled for deletion' ,
2020-05-24 23:13:21 +05:30
) ;
export const TEXT _AREA _INVALID _FEEDBACK = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|The value of this input should be less than 256 characters' ,
2020-05-24 23:13:21 +05:30
) ;
export const EXPIRATION _INTERVAL _LABEL = s _ _ ( 'ContainerRegistry|Expiration interval:' ) ;
export const EXPIRATION _SCHEDULE _LABEL = s _ _ ( 'ContainerRegistry|Expiration schedule:' ) ;
export const KEEP _N _LABEL = s _ _ ( 'ContainerRegistry|Number of tags to retain:' ) ;
export const NAME _REGEX _LABEL = s _ _ (
'ContainerRegistry|Tags with names matching this regex pattern will %{italicStart}expire:%{italicEnd}' ,
) ;
export const NAME _REGEX _PLACEHOLDER = '.*' ;
export const NAME _REGEX _DESCRIPTION = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Wildcards such as %{codeStart}.*-test%{codeEnd} or %{codeStart}dev-.*%{codeEnd} are supported. To select all tags, use %{codeStart}.*%{codeEnd}' ,
2020-05-24 23:13:21 +05:30
) ;
export const NAME _REGEX _KEEP _LABEL = s _ _ (
'ContainerRegistry|Tags with names matching this regex pattern will %{italicStart}be preserved:%{italicEnd}' ,
) ;
export const NAME _REGEX _KEEP _PLACEHOLDER = '' ;
export const NAME _REGEX _KEEP _DESCRIPTION = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Wildcards such as %{codeStart}.*-master%{codeEnd} or %{codeStart}release-.*%{codeEnd} are supported' ,
2020-05-24 23:13:21 +05:30
) ;