Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Commit

Permalink
UTs passing
Browse files Browse the repository at this point in the history
  • Loading branch information
nachocano committed Feb 18, 2020
1 parent 6a05480 commit 2daba35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 85 deletions.
4 changes: 0 additions & 4 deletions pkg/reconciler/pubsub/pullsubscription/k8s/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,5 @@ func NewController(
cmw.Watch(metrics.ConfigMapName(), r.UpdateFromMetricsConfigMap)
cmw.Watch(tracingconfig.ConfigName, r.UpdateFromTracingConfigMap)

// TODO discovery, if keda not install fail.
// TODO watch ScaledObjects.
// TODO upstream common stuff to pkg.

return impl
}
9 changes: 5 additions & 4 deletions pkg/reconciler/pubsub/pullsubscription/keda/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,25 @@ package keda

import (
"context"
"github.com/google/knative-gcp/pkg/client/injection/ducks/duck/v1alpha1/resource"

duckv1alpha1 "github.com/google/knative-gcp/pkg/apis/duck/v1alpha1"
pullsubscriptioninformers "github.com/google/knative-gcp/pkg/client/injection/informers/pubsub/v1alpha1/pullsubscription"
gpubsub "github.com/google/knative-gcp/pkg/gclient/pubsub"
"github.com/google/knative-gcp/pkg/reconciler"
"github.com/google/knative-gcp/pkg/reconciler/pubsub"
psreconciler "github.com/google/knative-gcp/pkg/reconciler/pubsub/pullsubscription"
"github.com/kelseyhightower/envconfig"
"go.uber.org/zap"
"k8s.io/client-go/tools/cache"
pkgreconciler "knative.dev/pkg/reconciler"

"github.com/google/knative-gcp/pkg/client/injection/ducks/duck/v1alpha1/resource"
pullsubscriptioninformers "github.com/google/knative-gcp/pkg/client/injection/informers/pubsub/v1alpha1/pullsubscription"
psreconciler "github.com/google/knative-gcp/pkg/reconciler/pubsub/pullsubscription"
eventingduck "knative.dev/eventing/pkg/duck"
deploymentinformer "knative.dev/pkg/client/injection/kube/informers/apps/v1/deployment"
"knative.dev/pkg/configmap"
"knative.dev/pkg/controller"
"knative.dev/pkg/logging"
"knative.dev/pkg/metrics"
pkgreconciler "knative.dev/pkg/reconciler"
"knative.dev/pkg/resolver"
tracingconfig "knative.dev/pkg/tracing/config"
)
Expand Down
77 changes: 0 additions & 77 deletions pkg/reconciler/pubsub/pullsubscription/keda/controller_test.go

This file was deleted.

0 comments on commit 2daba35

Please sign in to comment.