- Complete project structure with Next.js frontend - GraphQL API backend with Apollo Server - Portal application with NextAuth - Crossplane Proxmox provider - GitOps configurations - CI/CD pipelines - Testing infrastructure (Vitest, Jest, Go tests) - Error handling and monitoring - Security hardening - UI component library - Documentation
36 lines
716 B
Makefile
36 lines
716 B
Makefile
.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
|
|
|