-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
33 lines (26 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
KUBEBUILDER_VERSION := 3.14.1
K8S_VERSION := 1.29.3
arch := amd64
os := $(shell uname -s | tr '[:upper:]' '[:lower:]')
# Run tests excluding integration tests
test: fmt vet
go test ./... -coverprofile cover.out -short
# Run against the configured Kubernetes cluster in ~/.kube/config
run: fmt vet
go run cmd/azurerator/main.go
# Run go fmt against code
fmt:
go fmt ./...
# Run go vet against code
vet:
go vet ./...
kubebuilder:
test -d /usr/local/kubebuilder || (sudo mkdir -p /usr/local/kubebuilder && sudo chown "${USER}" /usr/local/kubebuilder)
wget -qO - "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-${K8S_VERSION}-$(os)-$(arch).tar.gz" | tar -xz -C /usr/local
wget -qO /usr/local/kubebuilder/bin/kubebuilder https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_$(os)_$(arch)
chmod +x /usr/local/kubebuilder/bin/*
install:
kubectl apply -f https://raw.githubusercontent.com/nais/liberator/main/config/crd/bases/nais.io_azureadapplications.yaml
kubectl apply -f ./hack/resources/
sample:
kubectl apply -f ./config/samples/azureadapplication.yaml