|
1 | 1 | /*
|
2 |
| - Copyright © 2021 Dell Inc. or its subsidiaries. All Rights Reserved. |
| 2 | + Copyright © 2021-2025 Dell Inc. or its subsidiaries. All Rights Reserved. |
3 | 3 |
|
4 | 4 | Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | you may not use this file except in compliance with the License.
|
@@ -68,6 +68,8 @@ const (
|
68 | 68 | CSILogFormatParam = "CSI_LOG_FORMAT"
|
69 | 69 | ArrayStatus = "/array-status"
|
70 | 70 | DefaultPodmonPollRate = 60
|
| 71 | + ReplicationContextPrefix = "powermax" |
| 72 | + ReplicationPrefix = "replication.storage.dell.com" |
71 | 73 | PortGroups = "X_CSI_POWERMAX_PORTGROUPS"
|
72 | 74 | Protocol = "X_CSI_TRANSPORT_PROTOCOL"
|
73 | 75 | // PmaxEndPoint = "X_CSI_POWERMAX_ENDPOINT"
|
@@ -424,11 +426,16 @@ func (s *service) BeforeServe(
|
424 | 426 | opts.KubeConfigPath = kubeConfigPath
|
425 | 427 | }
|
426 | 428 |
|
| 429 | + // set default values for replication prefix since replicator sidecar is not needed for Metro feature. |
427 | 430 | if replicationContextPrefix, ok := csictx.LookupEnv(ctx, EnvReplicationContextPrefix); ok {
|
428 | 431 | opts.ReplicationContextPrefix = replicationContextPrefix
|
| 432 | + } else { |
| 433 | + opts.ReplicationContextPrefix = ReplicationContextPrefix |
429 | 434 | }
|
430 | 435 | if replicationPrefix, ok := csictx.LookupEnv(ctx, EnvReplicationPrefix); ok {
|
431 | 436 | opts.ReplicationPrefix = replicationPrefix
|
| 437 | + } else { |
| 438 | + opts.ReplicationPrefix = ReplicationPrefix |
432 | 439 | }
|
433 | 440 |
|
434 | 441 | if MaxVolumesPerNode, ok := csictx.LookupEnv(ctx, EnvMaxVolumesPerNode); ok {
|
|
0 commit comments