From f1fad5247532b973ed57dd97612e7a5747cf998b Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 3 Apr 2021 18:41:56 +0200 Subject: [PATCH] Build binary without CGO --- Makefile | 1 + example/pvc-delete.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e30204..052dbc9 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ help: ## Show this help @grep -E -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = "(: ).*?## "}; {gsub(/\\:/,":",$$1)}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' .PHONY: build +build: export CGO_ENABLED = 0 build: ## Builds the binary go build -o $(binary) main.go diff --git a/example/pvc-delete.yml b/example/pvc-delete.yml index a0b5a01..7236bc9 100644 --- a/example/pvc-delete.yml +++ b/example/pvc-delete.yml @@ -1,7 +1,7 @@ kind: PersistentVolumeClaim apiVersion: v1 metadata: - name: example-retain + name: example-delete namespace: zfs-system spec: storageClassName: zfs-delete