@@ -209,6 +209,9 @@ export function configureObservability(dependsOn: pulumi.Resource[] = []): pulum
209209 logFormat : 'json' ,
210210 storage : {
211211 volumeClaimTemplate : {
212+ ...( hyperdiskSupportConfig . hyperdiskSupport . enabledForInfra
213+ ? { metadata : { name : 'alertmanager-hd-pvc' } }
214+ : { } ) ,
212215 spec : {
213216 storageClassName : infraStandardStorageClassName ,
214217 accessModes : [ 'ReadWriteOnce' ] ,
@@ -271,6 +274,9 @@ export function configureObservability(dependsOn: pulumi.Resource[] = []): pulum
271274 additionalArgs : [ { name : 'storage.tsdb.max-block-duration' , value : '1d' } ] ,
272275 storageSpec : {
273276 volumeClaimTemplate : {
277+ ...( hyperdiskSupportConfig . hyperdiskSupport . enabledForInfra
278+ ? { metadata : { name : 'prometheus-hd-pvc' } }
279+ : { } ) ,
274280 spec : {
275281 storageClassName : infraPremiumStorageClassName ,
276282 accessModes : [ 'ReadWriteOnce' ] ,
@@ -409,7 +415,7 @@ export function configureObservability(dependsOn: pulumi.Resource[] = []): pulum
409415 type : 'pvc' ,
410416 accessModes : [ 'ReadWriteOnce' ] ,
411417 size : '5Gi' ,
412- storageClassName : 'standard-rwo' ,
418+ storageClassName : infraStandardStorageClassName ,
413419 } ,
414420 adminUser : 'cn-admin' ,
415421 adminPassword : adminPassword ,
@@ -1074,7 +1080,10 @@ function installPostgres(namespace: ExactNamespace): SplicePostgres {
10741080}
10751081
10761082function getVolumeSnapshotsForHyperdiskMigration ( ) {
1077- if ( hyperdiskSupportConfig . hyperdiskSupport . migratingInfra ) {
1083+ if (
1084+ hyperdiskSupportConfig . hyperdiskSupport . enabledForInfra &&
1085+ hyperdiskSupportConfig . hyperdiskSupport . migratingInfra
1086+ ) {
10781087 const { dataSource : prometheusDataSource } = createVolumeSnapshot ( {
10791088 resourceName : `prometheus-hd-migration-snapshot` ,
10801089 snapshotName : `prometheus-migration-snapshot` ,
0 commit comments