forked from openshift/sriov-network-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.bundle
22 lines (21 loc) · 994 Bytes
/
Makefile.bundle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include Makefile
# Current Operator version
VERSION ?= 4.16.0
# Default bundle image tag
BUNDLE_IMG ?= controller-bundle:$(VERSION)
# Generate bundle manifests and metadata, then validate generated files.
.PHONY: bundle
bundle: manifests
rm -f bundle/manifests/*
MANIFEST_YAML=$$(ls manifests/stable/*.yaml | grep -v supported-nic-ids_v1_configmap.yaml) ; \
rm -f $$MANIFEST_YAML
operator-sdk generate kustomize manifests --interactive=false -q
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle -q --overwrite --version $(VERSION) $(BUNDLE_METADATA_OPTS) --extra-service-accounts sriov-network-config-daemon
operator-sdk bundle validate ./bundle
BUNDLE_MANIFEST_YAML=$$(ls bundle/manifests/* | grep -v supported-nic-ids_v1_configmap.yaml); \
cp $$BUNDLE_MANIFEST_YAML manifests/stable
# Build the bundle image.
.PHONY: bundle-build
bundle-build:
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .