forked from openshift/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.environment
More file actions
47 lines (37 loc) · 1.26 KB
/
Copy pathMakefile.environment
File metadata and controls
47 lines (37 loc) · 1.26 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
HIVE_ROOT := $(shell git rev-parse --show-toplevel)
export PATH := $(HIVE_ROOT)/.tmp/_output/bin:$(PATH)
export KUBECONFIG := $(HIVE_ROOT)/.tmp/_output/dev-hive.kubeconfig
all: install_environment_bins create_cluster_registry build_push_image deploy
# Install dependency bins, make hive & run containerd, buildkitd
install_environment_bins:
@echo "Installing go and additional dependencies"
./hack/install_dev_env.sh
# Create Kind Cluster & registry
create_cluster_registry:
@echo "Creating a Kind cluster"
./hack/create_cluster_registry.sh
# Build and push image
build_push_image:
@echo "Building and pushing the image"
./hack/buildkitd_build_push_image.sh
# Deploy & install certs
deploy:
set -x
@echo "Deploying the application"
./hack/deploy_dev_hive.sh
HIVE_NS=dev-hive ./hack/hiveadmission-dev-cert.sh
# Scale down operator
scale-down-operator:
oc scale -n dev-hive deployment.v1.apps/hive-operator --replicas=0
# Scale down controllers
scale-down-controllers:
oc scale -n dev-hive deployment.v1.apps/hive-controllers --replicas=0
# Run operator
run-operator: scale-down-operator
./bin/operator --log-level=debug
# Run controller
run-controller: scale-down-controllers
./bin/manager --log-level=debug
# Clean the environment
prune-dev-env:
./hack/prune_dev_env.sh