Skip to content

Commit

Permalink
Remove resourcepolicycontroller.go and it's references
Browse files Browse the repository at this point in the history
Remove commented code for platformcontroller.go

remove commented code

remove commented code

remove unused fucntions GetValuesTypes, getChartValueTypes,flatten

remove unused imports

Remove unused imports, functions, and references; clean up commented code for improved readability.
  • Loading branch information
SuyogShinde942 committed Nov 27, 2024
1 parent 31e79e4 commit ccfc81a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 625 deletions.
12 changes: 2 additions & 10 deletions platform-operator/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"flag"
"time"
"context"
"flag"
"sync"
"time"

"github.com/golang/glog"
kubeinformers "k8s.io/client-go/informers"
Expand Down Expand Up @@ -47,7 +47,6 @@ func main() {
kubeInformerFactory := kubeinformers.NewSharedInformerFactory(kubeClient, time.Second*30)
platformInformerFactory := informers.NewSharedInformerFactory(platformOperatorClient, time.Second*30)
platformController := NewPlatformController(kubeClient, platformOperatorClient, kubeInformerFactory, platformInformerFactory)
//resourcePolicyController := NewResourcePolicyController(kubeClient, platformOperatorClient, kubeInformerFactory, platformInformerFactory)

var wg sync.WaitGroup
wg.Add(1)
Expand All @@ -57,13 +56,6 @@ func main() {
platformController.Run(1, ctx.Done())
}()

/*
go func() {
defer wg.Done()
resourcePolicyController.Run(1, ctx.Done())
}()
*/

go kubeInformerFactory.Start(ctx.Done())
go platformInformerFactory.Start(ctx.Done())

Expand Down
Loading

0 comments on commit ccfc81a

Please sign in to comment.