Skip to content

Commit 6c00155

Browse files
authored
Merge pull request ceph#65020 from rhcs-dashboard/tiering-glacier-target-sc
mgr/dashboard: [RGW] - Target Storage Class in s3 tiering Config Reviewed-by: Afreen Misbah <[email protected]> Reviewed-by: Ankush Behl <[email protected]>
2 parents 1733d95 + 0478bf2 commit 6c00155

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/models/rgw-storage-class.model.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
173176
export const ALLOW_READ_THROUGH_TEXT =
174177
'Enables fetching objects from remote cloud S3 if not found locally.';
175178

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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';
4849
import { NotificationType } from '~/app/shared/enum/notification-type.enum';
4950
import { 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
]

0 commit comments

Comments
 (0)