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

Commit

Permalink
💄 Remove master terminology, and refactor to use pkg helpers (#1540)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew authored Sep 10, 2020
1 parent 1fcaa7b commit 3f67991
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions github/cmd/mt_receive_adapter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package main

import (
"flag"
"log"

"knative.dev/pkg/controller"
Expand All @@ -30,18 +29,8 @@ import (
"knative.dev/pkg/injection/sharedmain"
)

var (
masterURL = flag.String("master", "",
"The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.")
kubeconfig = flag.String("kubeconfig", "",
"Path to a kubeconfig. Only required if out-of-cluster.")
)

func main() {
cfg, err := sharedmain.GetConfig(*masterURL, *kubeconfig)
if err != nil {
log.Fatalf("Error building kubeconfig: %v", err)
}
cfg := sharedmain.ParseAndGetConfigOrDie()

ctx := signals.NewContext()
ctx, informers := injection.Default.SetupInformers(ctx, cfg)
Expand Down

0 comments on commit 3f67991

Please sign in to comment.