chore: remove some duplication and add a first few tests

This commit is contained in:
argoyle committed 2022-09-30 22:07:56 +02:00
1 parent e124a2ed6b
commit 762fa4f747
8 files changed
+542 -70

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ func main() {
if kubecfg, exists := os.LookupEnv("KUBECONFIG"); exists {
kubeClient = kube.New(kube.WithKubeConfigProvider(kubecfg))
} else {
kubeClient = kube.New(kube.WithInClusterProvider())
kubeClient = kube.New()
}
gitlabClient := gitlab.New(cli.GitlabToken)
if err := handle(cli, logger, kubeClient, gitlabClient); err != nil {