Skip to content

Commit 62b1ad8

Browse files
authored
Fix concurrency startup log
1 parent f85785a commit 62b1ad8

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

config/config.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,21 @@ const (
340340
)
341341

342342
var (
343+
// ConcurrencyGADrivers is the list of storage drivers for which controller
344+
// scalability (concurrent core) is generally available.
345+
ConcurrencyGADrivers = []string{
346+
OntapSANStorageDriverName, // ontap-san
347+
OntapNASStorageDriverName, // ontap-nas
348+
GCNVNASStorageDriverName, // google-cloud-netapp-volumes
349+
}
350+
351+
// ConcurrencyTechPreviewDrivers is the list of storage drivers for which
352+
// controller scalability is in technical preview.
353+
ConcurrencyTechPreviewDrivers = []string{
354+
OntapNASQtreeStorageDriverName, // ontap-nas-economy
355+
OntapSANEconomyStorageDriverName, // ontap-san-economy
356+
}
357+
343358
ValidProtocols = map[Protocol]bool{
344359
File: true,
345360
Block: true,

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ func main() {
382382

383383
var orchestrator core.Orchestrator
384384
if *enableConcurrency {
385-
Log().Warning("Concurrency is enabled, feature is in tech preview and may not work as expected.")
385+
Log().WithField("drivers", strings.Join(config.ConcurrencyGADrivers, ", ")).
386+
Info("Concurrency is enabled. Controller scalability is generally available for the following drivers.")
387+
Log().WithField("drivers", strings.Join(config.ConcurrencyTechPreviewDrivers, ", ")).
388+
Warning("Controller scalability is in technical preview for the following drivers and may not work as expected.")
386389
orchestrator, err = core.NewConcurrentTridentOrchestrator(storeClient)
387390
if err != nil {
388391
_, _ = fmt.Fprint(os.Stderr, err)

0 commit comments

Comments
 (0)