Skip to content

Commit

Permalink
chore: move olm-deploy to config
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Oct 9, 2023
1 parent 58e7c6f commit 57dc839
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ repos:
entry: golangci-lint run --fix
args:
- "--modules-download-mode=vendor"
- "--timeout=10m"
types: [go]
language: golang
require_serial: true
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/confi
$(KUSTOMIZE) build config/default | kubectl delete -f -

deploy-with-olm: kustomize ## Deploy controller to the K8s cluster via OLM.
cd olm-deploy/ && $(KUSTOMIZE) edit set image catalog-img=${CATALOG_IMG}
$(KUSTOMIZE) build olm-deploy/ | sed "s/lvms-operator.v.*/lvms-operator.v${OPERATOR_VERSION}/g" | kubectl create -f -
cd config/olm-deploy && $(KUSTOMIZE) edit set image catalog-img=${CATALOG_IMG}
$(KUSTOMIZE) build config/olm-deploy | sed "s/lvms-operator.v.*/lvms-operator.v${OPERATOR_VERSION}/g" | kubectl create -f -

undeploy-with-olm: ## Undeploy controller from the K8s cluster.
$(KUSTOMIZE) build olm-deploy/ | kubectl delete -f -
$(KUSTOMIZE) build config/olm-deploy | kubectl delete -f -

##@ Bundle image

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 57dc839

Please sign in to comment.