Skip to content
Merged
Changes from all 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
17 changes: 6 additions & 11 deletions operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,6 @@ deploy-previous-via-olm: kuttl bundle-post-process ## Deploy replaced version of
.PHONY: deploy-via-installer
deploy-via-installer: ## Deploy current version of operator via distribution manifest file.
./hack/retry-kubectl.sh </dev/null apply -f dist/install.yaml
$(MAKE) babysit-deployment

.PHONY: deploy-via-chart
deploy-via-chart: ## Deploy current version of operator via helm chart produced by the chart target.
helm install --create-namespace --namespace $(TEST_NAMESPACE) rhacs-operator ./dist/chart
# It would be nice to be able to just use `--wait --set manager.env.NO_PROXY=127.1.2.3/8' rather than the below,
# but https://github.com/kubernetes-sigs/kubebuilder/issues/5485#issuecomment-3919321648 prevents that at the moment.
$(MAKE) babysit-deployment

.PHONY: babysit-deployment
babysit-deployment: ## Patch operator controller deployment as needed for the tests to pass, and wait until it's healthy.
# A hack for the NO_PROXY assertions in the e2e tests.
./hack/retry-kubectl.sh </dev/null set env -n $(TEST_NAMESPACE) deployment/rhacs-operator-controller-manager NO_PROXY=127.1.2.3/8
# Need to hardcode the deployment name here and above, since kubectl barfs on the CRDs in the manifest when working on deployment:
Expand All @@ -432,6 +421,12 @@ babysit-deployment: ## Patch operator controller deployment as needed for the te
# TODO(ROX-11901): work this around somehow to make it possible to deploy and e2e-test the community build
./hack/retry-kubectl.sh </dev/null rollout status deployment -n $(TEST_NAMESPACE) rhacs-operator-controller-manager --timeout=300s

.PHONY: deploy-via-chart
deploy-via-chart: ## Deploy current version of operator via helm chart produced by the chart target.
helm install --create-namespace --namespace $(TEST_NAMESPACE) --wait \
--set manager.envOverrides.NO_PROXY=127.1.2.3/8 `# A hack for the NO_PROXY assertions in the e2e tests.` \
rhacs-operator ./dist/chart

.PHONY: upgrade-via-olm
upgrade-via-olm: kuttl
KUTTL=$(KUTTL) PATH="$(PROJECT_DIR)/hack:$${PATH}" ./hack/olm-operator-upgrade.sh $(TEST_NAMESPACE) $(INSTALL_VERSION)
Expand Down
Loading