forked from stolostron/multiclusterhub-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.dev
51 lines (35 loc) · 1.86 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
51
# Copyright Contributors to the Open Cluster Management project
.PHONY: update-manifest
deps:
curl -sL https://github.com/operator-framework/operator-sdk/releases/download/v1.9.0/operator-sdk_darwin_amd64 -o bin/operator-sdk
chmod +x bin/operator-sdk
subscriptions:
oc apply -k hack/subscriptions
catalog:
oc apply -k hack/catalog
prereqs:
oc apply -k hack/prereqs
copyright:
bash ./hack/scripts/copyright.sh
update-version:
./hack/scripts/update-version.sh <START_VERSION> <UPDATE_VERSION>
prep-mock-install:
export PRODUCT_VERSION=$(shell cat COMPONENT_VERSION); \
make mock-build-image PRODUCT_VERSION=$(VERSION) MOCK_IMAGE_REGISTRY=$(REGISTRY) MOCK_IMAGE_SHA="sha256:test"
echo "mock install prepped!"
regenerate-operator-bundles: ## Regenerates the operator bundles
pip install -r hack/bundle-automation/requirements.txt
python3 ./hack/bundle-automation/generate-bundles.py --destination pkg/templates/
# different from `in-cluster-install` (call no secrets, no observability-crd)
mock-install: prereqs subscriptions docker-build docker-push deploy
cr:
oc apply -k config/samples
## Ensure the quay repos are open or pull secrets are configured
full-catalog-install: manifests generate bundle bundle-build bundle-push catalog-build catalog-push prereqs subscriptions catalog
full-dev-install: prereqs manifests generate update-manifest subscriptions docker-build docker-push deploy
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