Files
Sankofa/crossplane-provider-proxmox/Makefile

36 lines
716 B
Makefile
Raw Normal View History

.PHONY: build
build:
go build -o bin/provider ./cmd/provider
.PHONY: test
test:
go test ./...
.PHONY: lint
lint:
golangci-lint run
.PHONY: generate
generate:
controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
controller-gen crd:allowDangerousTypes=true paths="./..." output:dir=./config/crd/bases
.PHONY: install
install: generate
kubectl apply -f config/crd/bases/
kubectl apply -f config/provider.yaml
.PHONY: docker-build
docker-build:
docker build -t yourregistry/crossplane-provider-proxmox:latest .
.PHONY: docker-push
docker-push: docker-build
docker push yourregistry/crossplane-provider-proxmox:latest
.PHONY: clean
clean:
rm -rf bin/
rm -rf config/crd/bases/*.yaml