2020-05-24 23:13:21 +05:30
import { s _ _ , _ _ } from '~/locale' ;
2020-03-13 15:44:24 +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-13 15:44:24 +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-13 15:44:24 +05:30
) ;
export const UPDATE _SETTINGS _SUCCESS _MESSAGE = s _ _ (
2020-07-28 23:09:34 +05:30
'ContainerRegistry|Cleanup policy successfully saved.' ,
2020-03-13 15:44:24 +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}' ,
) ;
2021-01-29 00:20:46 +05:30
export const NAME _REGEX _PLACEHOLDER = '' ;
2020-05-24 23:13:21 +05:30
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
) ;
2021-01-03 14:25:43 +05:30
export const KEEP _N _OPTIONS = [
{ variable : 1 , key : 'ONE_TAG' , default : false } ,
{ variable : 5 , key : 'FIVE_TAGS' , default : false } ,
{ variable : 10 , key : 'TEN_TAGS' , default : true } ,
{ variable : 25 , key : 'TWENTY_FIVE_TAGS' , default : false } ,
{ variable : 50 , key : 'FIFTY_TAGS' , default : false } ,
{ variable : 100 , key : 'ONE_HUNDRED_TAGS' , default : false } ,
] ;
export const CADENCE _OPTIONS = [
{ key : 'EVERY_DAY' , label : _ _ ( 'Every day' ) , default : true } ,
{ key : 'EVERY_WEEK' , label : _ _ ( 'Every week' ) , default : false } ,
{ key : 'EVERY_TWO_WEEKS' , label : _ _ ( 'Every two weeks' ) , default : false } ,
{ key : 'EVERY_MONTH' , label : _ _ ( 'Every month' ) , default : false } ,
{ key : 'EVERY_THREE_MONTHS' , label : _ _ ( 'Every three months' ) , default : false } ,
] ;
export const OLDER _THAN _OPTIONS = [
{ key : 'SEVEN_DAYS' , variable : 7 , default : false } ,
{ key : 'FOURTEEN_DAYS' , variable : 14 , default : false } ,
{ key : 'THIRTY_DAYS' , variable : 30 , default : false } ,
{ key : 'NINETY_DAYS' , variable : 90 , default : true } ,
] ;