From 4a5e4ba246356d6f8b1e32b51c733c2cd6bda284 Mon Sep 17 00:00:00 2001 From: rainzm Date: Tue, 8 Sep 2020 19:18:23 +0800 Subject: [PATCH] feat: add manager-pro section in Makefile --- Makefile | 8 ++++++-- api/v1/endpoint_types.go | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a791c853..529789ec 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,12 @@ all: manager test: generate fmt vet manifests go test ./... -coverprofile cover.out -# Build manager binary -manager: #fmt vet +# Build manager binary, simple version +manager: + go build -mod vendor -o _output/bin/manager main.go + +# Build manager binary, professional version +manager-pro: generate fmt vet go build -mod vendor -o _output/bin/manager main.go # Run against the configured Kubernetes cluster in ~/.kube/config diff --git a/api/v1/endpoint_types.go b/api/v1/endpoint_types.go index 3a021020..2e62a03f 100644 --- a/api/v1/endpoint_types.go +++ b/api/v1/endpoint_types.go @@ -27,7 +27,7 @@ type EndpointSpec struct { // Important: Run "make" to regenerate code after modifying this file // Url of this Endpoint - URL URL `json:"url"` + URL URL `json:"url"` // +optional Name string `json:"name,omitempty"` // +optional