Skip to content

Commit

Permalink
Added changelog fragments, fixing sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathi-tenneti committed Jul 17, 2020
1 parent 4342381 commit 053a754
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cmd/helm-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/spf13/pflag"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/cache"
crclient "sigs.k8s.io/controller-runtime/pkg/client"
Expand All @@ -42,12 +41,7 @@ import (
sdkVersion "github.com/operator-framework/operator-sdk/version"
)

var (
metricsHost = "0.0.0.0"
operatorMetricsPort int32 = 8686

log = logf.Log.WithName("cmd")
)
var log = logf.Log.WithName("cmd")

func printVersion() {
log.Info(fmt.Sprintf("Go Version: %s", runtime.Version()))
Expand Down Expand Up @@ -117,7 +111,6 @@ func main() {
log.Error(err, "Failed to create new manager factories.")
os.Exit(1)
}
var gvks []schema.GroupVersionKind
for _, w := range ws {
// Register the controller with the factory.
err := controller.Add(mgr, controller.WatchOptions{
Expand All @@ -133,7 +126,6 @@ func main() {
log.Error(err, "Failed to add manager factory to controller.")
os.Exit(1)
}
gvks = append(gvks, w.GroupVersionKind)
}

operatorName, err := k8sutil.GetOperatorName()
Expand Down

0 comments on commit 053a754

Please sign in to comment.