File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export interface PlacementTarget {
9898 glacier_restore_tier_type ?: string ;
9999 restore_storage_class ?: string ;
100100 read_through_restore_days ?: number ;
101+ target_storage_class ?: string ;
101102 } ;
102103 storage_class ?: string ;
103104 name ?: string ;
@@ -170,6 +171,8 @@ export const TIER_TYPE_DISPLAY = {
170171 GLACIER : 'Cloud S3 Glacier'
171172} ;
172173
174+ export const GLACIER_TARGET_STORAGE_CLASS = 'GLACIER' ;
175+
173176export const ALLOW_READ_THROUGH_TEXT =
174177 'Enables fetching objects from remote cloud S3 if not found locally.' ;
175178
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ import {
4343 EXPEDITED_TIER_TYPE_TEXT ,
4444 TextLabels ,
4545 CLOUD_TIER_REQUIRED_FIELDS ,
46- GLACIER_REQUIRED_FIELDS
46+ GLACIER_REQUIRED_FIELDS ,
47+ GLACIER_TARGET_STORAGE_CLASS
4748} from '../models/rgw-storage-class.model' ;
4849import { NotificationType } from '~/app/shared/enum/notification-type.enum' ;
4950import { NotificationService } from '~/app/shared/services/notification.service' ;
@@ -500,7 +501,8 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
500501 tier_config : {
501502 ...tierConfig ,
502503 glacier_restore_days : rawFormValue . glacier_restore_days ,
503- glacier_restore_tier_type : rawFormValue . glacier_restore_tier_type
504+ glacier_restore_tier_type : rawFormValue . glacier_restore_tier_type ,
505+ target_storage_class : GLACIER_TARGET_STORAGE_CLASS
504506 }
505507 }
506508 ]
You can’t perform that action at this time.
0 commit comments