You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made the TTL duration configurable in the Makefile. (#1767)
Here's what was changed:
1. Added a TTL_DURATION ?= 1h variable near the top of the Makefile (line 62) with helpful comments explaining it's configurable and has a maximum of 24h.
2. Updated all 7 instances of hardcoded :1h to use $(TTL_DURATION) variable:
- Lines 448-449: deploy-olm target
- Lines 473-477: catalog-test-upgrade target
Now you can override the TTL duration by setting the environment variable:
export TTL_DURATION=4h
make deploy-olm
Or pass it directly to make:
make deploy-olm TTL_DURATION=8h
Signed-off-by: Tiger Kaovilai <[email protected]>
deploy-olm: THIS_OPERATOR_IMAGE?=ttl.sh/oadp-operator-$(GIT_REV):1h# Set target specific variable
443
-
deploy-olm: THIS_BUNDLE_IMAGE?=ttl.sh/oadp-operator-bundle-$(GIT_REV):1h# Set target specific variable
448
+
deploy-olm: THIS_OPERATOR_IMAGE?=ttl.sh/oadp-operator-$(GIT_REV):$(TTL_DURATION)# Set target specific variable
449
+
deploy-olm: THIS_BUNDLE_IMAGE?=ttl.sh/oadp-operator-bundle-$(GIT_REV):$(TTL_DURATION)# Set target specific variable
444
450
deploy-olm: DEPLOY_TMP:=$(shell mktemp -d)/ # Set target specific variable
445
451
deploy-olm: undeploy-olm ## Build current branch operator image, bundle image, push and install via OLM. For more information, check docs/developer/install_from_source.md
catalog-test-upgrade: opm login-required ## Prepare a catalog image with two channels: PREVIOUS_CHANNEL and from current branch. For more information, check docs/developer/testing/test_oadp_version_upgrade.md
473
479
mkdir test-upgrade && rsync -a --exclude=test-upgrade ./ test-upgrade/current
0 commit comments