-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile.dev
50 lines (36 loc) · 2.51 KB
/
Makefile.dev
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
48
49
50
# Copyright Contributors to the Open Cluster Management project
ORG ?= stolostron
REPO ?= installer-dev-tools
BRANCH ?= main
PIPELINE_REPO ?= backplane-pipeline
PIPELINE_BRANCH ?= 2.8-integration
.PHONY: subscriptions
##@ Dev. targets
subscriptions: ## Applies upstream community subscriptions (Hive, Cluster-manager)
oc create ns backplane-operator-system --dry-run=client -o yaml | oc apply -f -
oc apply -k hack/subscriptions
add-images: ## Retrieves latest manifest and injects image definitions directly into the deployment template
pip3 install -r ./hack/bundle-automation/requirements.txt
python3 ./hack/scripts/dev-update-image-references.py
add-images-local: ## Generates a local image manifest. Source this file to define necessary environment variables to run the operator locally
pip3 install -r ./hack/bundle-automation/requirements.txt
python3 ./hack/scripts/dev-update-image-references.py --local
upstream-install: ## Installs the upstream Backplane Operator by deploying a CatalogSource and Subscription
bash ./hack/scripts/upstream-install.sh
lint-operator-bundles: ## Lints the operator bundles
pip3 install -r hack/bundle-automation/requirements.txt
python3 ./hack/bundle-automation/generate-shell.py --lint-bundles --org $(ORG) --repo $(REPO) --branch $(BRANCH)
regenerate-charts-from-bundles: ## Regenerates the operator charts from bundles
pip3 install -r hack/bundle-automation/requirements.txt
python3 ./hack/bundle-automation/generate-shell.py --update-charts-from-bundles --org $(ORG) --repo $(REPO) --branch $(BRANCH)
regenerate-operator-sha-commits: ## Regenerates the operator bundles
pip3 install -r hack/bundle-automation/requirements.txt
python3 ./hack/bundle-automation/generate-shell.py --update-commits --org $(ORG) --repo $(REPO) --branch $(BRANCH) --pipeline-repo $(PIPELINE_REPO) --pipeline-branch $(PIPELINE_BRANCH)
regenerate-charts: ## Regenerates the charts
pip3 install -r hack/bundle-automation/chart-requirements.txt
python3 ./hack/bundle-automation/generate-shell.py --update-charts --org $(ORG) --repo $(REPO) --branch $(BRANCH)
catalog-deploy: ## Deploys backplane operator via subscription
IMG="${IMAGE_TAG_BASE}-catalog:v${VERSION}" yq eval -i '.spec.image = env(IMG)' hack/catalog/catalogsource.yaml
oc create ns backplane-operator-system --dry-run=client -o yaml | oc apply -f -
oc apply -k hack/catalog
full-catalog-install: generate bundle bundle-build bundle-push catalog-build catalog-push catalog-deploy ## Generates all required files and deploys backplane operator via subscription