From 77220f023f3a6f1499701116efcd3a5d1ec6d382 Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Fri, 8 Nov 2024 15:51:22 +0000 Subject: [PATCH] make: Correct module name following #34 https://github.com/anderseknert/kube-review/pull/34 should have included these additional updates. Signed-off-by: Charlie Egan --- Makefile | 2 +- cmd/main.go | 7 ++++--- main.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6b33fca..a437a5d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION := "v0.3.0" -LDFLAGS := "-X 'kube-review/cmd.version=$(VERSION)'" +LDFLAGS := "-X 'github.com/anderseknert/kube-review/cmd.version=$(VERSION)'" clean: rm -rf _release diff --git a/cmd/main.go b/cmd/main.go index e8151fc..c7f9882 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -3,11 +3,12 @@ package cmd import ( "fmt" "io" - "kube-review/pkg/admission" "log" "os" "github.com/spf13/cobra" + + "github.com/anderseknert/kube-review/pkg/admission" ) type parameters struct { @@ -23,9 +24,9 @@ var ( rootCmd = &cobra.Command{ Use: "kube-review", Short: "create admission review requests from provided kubernetes resources", - Long: `kube-review is a tool to help create AdmissionReview objects from ordinary Kubernetes resource files. + Long: `kube-review is a tool to help create AdmissionReview objects from ordinary Kubernetes resource files. -This is useful when e.g. writing admission controller policies or offline tests of Kubernetes admission controller +This is useful when e.g. writing admission controller policies or offline tests of Kubernetes admission controller webhooks`, } createCmd = &cobra.Command{ diff --git a/main.go b/main.go index f372b80..8c95888 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "log" - "kube-review/cmd" + "github.com/anderseknert/kube-review/cmd" ) func main() {