Skip to content

Commit

Permalink
add variable for ksctl install timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Devtools committed Aug 22, 2024
1 parent 1f2d7ad commit 8cf4bd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions make/run-cicd-script.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

GH_OWNER=mfrancisc
GH_OWNER=codeready-toolchain
GH_REPO=toolchain-cicd
GH_BRANCH=removedeploylatest
GH_BRANCH=master
STRIPS_FOLDER=3
OWNER_AND_BRANCH_LOCATION=${GH_OWNER}/${GH_REPO}/${GH_BRANCH}
GH_SCRIPTS_URL=https://raw.githubusercontent.com/${OWNER_AND_BRANCH_LOCATION}
Expand Down
9 changes: 6 additions & 3 deletions make/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ QUAY_NAMESPACE ?= codeready-toolchain-test
DATE_SUFFIX := $(shell date +'%d%H%M%S')
HOST_NS ?= toolchain-host-${DATE_SUFFIX}
MEMBER_NS ?= toolchain-member-${DATE_SUFFIX}
# it can be used to customize the install wait timeout parameter for the ksctl adm install-operator
# for eg. on slow systems you can customize it like so: KSCTL_INSTALL_TIMEOUT_PARAM="--timeout=15m"
KSCTL_INSTALL_TIMEOUT_PARAM ?= ""

SECOND_MEMBER_MODE = true

Expand Down Expand Up @@ -315,10 +318,10 @@ ifneq (${FORCED_TAG},"")
endif
ifeq ($(DEPLOY_LATEST),true)
@echo "Installing latest version of the member-operator in namespace ${MEMBER_NS}"
${KSCTL_BIN_DIR}ksctl adm install-operator member --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${MEMBER_NS} -y
${KSCTL_BIN_DIR}ksctl adm install-operator member --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${MEMBER_NS} ${KSCTL_INSTALL_TIMEOUT_PARAM} -y
ifneq (${MEMBER_NS_2},)
@echo "Installing latest version of the member-operator in namespace ${MEMBER_NS_2}"
${KSCTL_BIN_DIR}ksctl adm install-operator member --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${MEMBER_NS_2} -y
${KSCTL_BIN_DIR}ksctl adm install-operator member --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${MEMBER_NS_2} ${KSCTL_INSTALL_TIMEOUT_PARAM} -y
endif
else
@echo "Installing specific version of the member-operator"
Expand All @@ -344,7 +347,7 @@ ifneq (${FORCED_TAG},"")
endif
ifeq ($(DEPLOY_LATEST),true)
@echo "Installing latest version of the host-operator"
${KSCTL_BIN_DIR}ksctl adm install-operator host --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${HOST_NS} -y
${KSCTL_BIN_DIR}ksctl adm install-operator host --kubeconfig "$(or ${KUBECONFIG}, ${HOME}/.kube/config)" --namespace ${HOST_NS} ${KSCTL_INSTALL_TIMEOUT_PARAM} -y
else
@echo "Installing specific version of the host-operator"
$(MAKE) run-cicd-script SCRIPT_PATH=scripts/ci/manage-host-operator.sh SCRIPT_PARAMS="-po ${PUBLISH_OPERATOR} -io ${INSTALL_OPERATOR} -hn ${HOST_NS} ${HOST_REPO_PATH_PARAM} -ds ${DATE_SUFFIX} -qn ${QUAY_NAMESPACE} ${REG_REPO_PATH_PARAM} ${FORCED_TAG_PARAM}"
Expand Down

0 comments on commit 8cf4bd3

Please sign in to comment.