Skip to content

Commit 2fda947

Browse files
committed
++ rename maintenance to garbage collection 2
Signed-off-by: Ivan Mikheykin <[email protected]>
1 parent 72e1a1f commit 2fda947

File tree

2 files changed

+3
-10
lines changed
  • images/virtualization-artifact
    • cmd/virtualization-controller
    • pkg/controller/dvcr-garbage-collection/types

2 files changed

+3
-10
lines changed

images/virtualization-artifact/cmd/virtualization-controller/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
"github.com/deckhouse/deckhouse/pkg/log"
4242
appconfig "github.com/deckhouse/virtualization-controller/pkg/config"
4343
"github.com/deckhouse/virtualization-controller/pkg/controller/cvi"
44-
dvcrmaintenance "github.com/deckhouse/virtualization-controller/pkg/controller/dvcr-maintenance"
44+
dvcrgarbagecollection "github.com/deckhouse/virtualization-controller/pkg/controller/dvcr-garbage-collection"
4545
"github.com/deckhouse/virtualization-controller/pkg/controller/evacuation"
4646
"github.com/deckhouse/virtualization-controller/pkg/controller/indexer"
4747
"github.com/deckhouse/virtualization-controller/pkg/controller/livemigration"
@@ -435,8 +435,8 @@ func main() {
435435
os.Exit(1)
436436
}
437437

438-
dvcrMaintenanceLogger := logger.NewControllerLogger(dvcrmaintenance.ControllerName, logLevel, logOutput, logDebugVerbosity, logDebugControllerList)
439-
if _, err = dvcrmaintenance.NewController(ctx, mgr, dvcrMaintenanceLogger, dvcrSettings); err != nil {
438+
dvcrGarbageCollectionLogger := logger.NewControllerLogger(dvcrgarbagecollection.ControllerName, logLevel, logOutput, logDebugVerbosity, logDebugControllerList)
439+
if _, err = dvcrgarbagecollection.NewController(ctx, mgr, dvcrGarbageCollectionLogger, dvcrSettings); err != nil {
440440
log.Error(err.Error())
441441
os.Exit(1)
442442
}

images/virtualization-artifact/pkg/controller/dvcr-garbage-collection/types/const.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,3 @@ func DVCRDeploymentKey() types.NamespacedName {
3333
Name: DVCRDeploymentName,
3434
}
3535
}
36-
37-
func DVCRMaintenanceSecretKey() types.NamespacedName {
38-
return types.NamespacedName{
39-
Namespace: ModuleNamespace,
40-
Name: DVCRGarbageCollectionSecretName,
41-
}
42-
}

0 commit comments

Comments
 (0)