Commit 37e3b3a4 authored by Geoff Simmons's avatar Geoff Simmons

Change the controller binary name in local development builds.

parent 1750b40d
*~
# Build artifacts
/k8s-ingress
/vikingctrl
/cmd/main_version.go
......@@ -24,7 +24,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
all: k8s-ingress
all: vikingctrl
KUBEVER=kubernetes-1.22.1
install-code-gen:
......@@ -60,10 +60,13 @@ generate: install-code-gen
--listers-package $(LISTERS) \
--output-package $(CLIENTPKG)/informers -h $(BOILERPLATE)
k8s-ingress: build
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o k8s-ingress \
vikingctrl: build
CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o vikingctrl \
cmd/*.go
# Legacy
k8s-ingress: vikingctrl
check: build
go vet $(CODE_SUBDIRS)
golint $(CODE_SUBDIRS)
......@@ -74,4 +77,5 @@ test: check
clean:
go clean $(CODE_SUBDIRS)
rm -f cmd/main_version.go
rm -f vikingctrl
rm -f k8s-ingress
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment