Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added all in one makefile rule to deploy bundle images #461

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,8 @@ kind-cluster: kind
load-on-kind: docker-build kind-cluster ## Load the docker image into the kind cluster.
$(KIND) load docker-image ${IMG}

deploy-olm: export KIND_WITH_REGISTRY=true
deploy-olm: operator-sdk kind-cluster ## deploys OLM on the cluster
$(OPERATOR_SDK) olm install --version $(OLM_VERSION) --timeout 5m0s
$(OPERATOR_SDK) olm status

deploy-with-olm: export VERSION=dev
deploy-with-olm: deploy-olm load-on-kind build-and-push-bundle-images ## deploys the operator with OLM instead of manifests
deploy-with-olm: load-on-kind build-and-push-bundle-images ## deploys the operator with OLM instead of manifests
sed -i 's|image:.*|image: $(BUNDLE_INDEX_IMG)|' config/olm-install/install-resources.yaml
sed -i 's#mymetallb#$(NAMESPACE)#g' config/olm-install/install-resources.yaml
$(KUSTOMIZE) build config/olm-install | kubectl apply -f -
Expand Down
10 changes: 5 additions & 5 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
resources:
- manager.yaml
- manager.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't be part of this commit

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
patchesStrategicMerge:
- env.yaml
- env.yaml
images:
- name: controller
newName: quay.io/metallb/metallb-operator
newTag: main
- name: controller
newName: quay.io/metallb/metallb-operator
newTag: dev
Loading