diff --git a/cmd/webhook/main.go b/cmd/webhook/main.go index 06c5d2c..25c5f83 100644 --- a/cmd/webhook/main.go +++ b/cmd/webhook/main.go @@ -22,7 +22,6 @@ var ( kubeconfig = flag.String("kubeconfig", "", "If set, use this kubeconfig to connect to kubernetes") baseURL = flag.String("gh-base-url", "", "GitHub Enterprise: Base URL") uploadURL = flag.String("gh-upload-url", "", "GitHub Enterprise: Upload URL") - gitAddress = flag.String("git", "git@github.com", "Git address") debug = flag.Bool("debug", false, "Enable debug logging") dryRun = flag.Bool("dry", false, "Dry run; Do not apply resouce manifest") insecure = flag.Bool("insecure", false, "Allow omitting WEBHOOK_SECRET for testing") diff --git a/handler_test.go b/handler_test.go index 615377b..f25996a 100644 --- a/handler_test.go +++ b/handler_test.go @@ -25,10 +25,7 @@ func (k *mockKubernetesClient) Apply(obj runtime.Object, namespace string) error } type mockLoader struct { - obj runtime.Object - repo string - path string - ref string + obj runtime.Object } func (l *mockLoader) Load(ctx context.Context, repo, path, ref string) (runtime.Object, error) {