Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7764719
approval controller, metric collector controllers
Dec 6, 2025
fc87b21
minor fixes
Dec 10, 2025
f3ea6d5
minor fixes
Dec 10, 2025
3c8db43
address minor comments
Dec 10, 2025
e85a7a0
address minor comment
Dec 11, 2025
23ac827
address minor comment
Dec 11, 2025
018cacb
add birdeye view section
Dec 11, 2025
b8448b3
add context about kind-clusters
Dec 11, 2025
097e14a
fix image
Dec 11, 2025
164a25d
ensure script works for all clusters
Dec 11, 2025
cac604c
simplify metric-collector
Dec 12, 2025
69a8ed4
simplify approval controller
Dec 13, 2025
76de5f3
update README.md
Dec 13, 2025
16367ff
restructure dirs
Dec 15, 2025
538ae51
minor fixes
Dec 15, 2025
d937541
minor changes
Dec 15, 2025
d655a80
minor fixes
Dec 15, 2025
ab1e784
comments for workload health tracking
Dec 15, 2025
0f4a81c
update image, minor fixes
Dec 15, 2025
576dc2f
minor fixes
Dec 15, 2025
bd005d7
make commands for docker
Dec 15, 2025
7cbe0e5
minor update to README
Dec 15, 2025
fde0a44
minor fixes
Dec 15, 2025
ddc00e9
simplify hubconfig, runnning scripts
Dec 16, 2025
1578be0
address minor comments
Dec 16, 2025
0a68f88
minor fixes
Dec 16, 2025
9fa5010
account for workload kind
Dec 16, 2025
27f50e1
minor updates to readme
Dec 16, 2025
7c2bc78
fix README
Dec 16, 2025
aad7c4e
minor fixes
Dec 16, 2025
11b40af
minor fixes
Dec 16, 2025
ad798f4
minor readme update
Dec 16, 2025
d4a2b3e
minor fixes
Dec 17, 2025
2bb0a74
fix MetricCollectorReport cleanup
Dec 17, 2025
51a7da9
minor fix
Dec 17, 2025
6901556
address minor comments
Dec 17, 2025
4b3f709
address comments
Dec 17, 2025
cead734
address minor comments
Dec 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions approval-request-metric-collector/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Makefile for ApprovalRequest Controller and Metric Collector

# Image settings
REGISTRY ?=
TAG ?= latest

# Build settings
GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)

# Tools
CONTROLLER_GEN_VERSION ?= v0.16.0
CONTROLLER_GEN = go run sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION)

.PHONY: help
help: ## Display this help
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Code Generation

.PHONY: manifests
manifests: ## Generate CRD manifests
$(CONTROLLER_GEN) crd paths="./apis/..." output:crd:artifacts:config=config/crd/bases

.PHONY: generate
generate: ## Generate DeepCopy code
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./apis/..."

##@ Build

.PHONY: docker-build-approval-controller
docker-build-approval-controller: ## Build approval-request-controller docker image
docker buildx build \
--file docker/approval-request-controller.Dockerfile \
--tag $(REGISTRY)/approval-request-controller:$(TAG) \
--platform=linux/$(GOARCH) \
--build-arg GOARCH=$(GOARCH) \
--push \
.

.PHONY: docker-build-metric-collector
docker-build-metric-collector: ## Build metric-collector docker image
docker buildx build \
--file docker/metric-collector.Dockerfile \
--tag $(REGISTRY)/metric-collector:$(TAG) \
--platform=linux/$(GOARCH) \
--build-arg GOARCH=$(GOARCH) \
--push \
.

.PHONY: docker-build-metric-app
docker-build-metric-app: ## Build metric-app docker image
docker buildx build \
--file docker/metric-app.Dockerfile \
--tag $(REGISTRY)/metric-app:$(TAG) \
--platform=linux/$(GOARCH) \
--build-arg GOARCH=$(GOARCH) \
--push \
.

.PHONY: docker-build-all
docker-build-all: docker-build-approval-controller docker-build-metric-collector docker-build-metric-app ## Build and push all docker images

.PHONY: docker-build
docker-build: docker-build-all ## Alias for docker-build-all
Loading