From 954b2d9d34585afe900259fe1dda425d92b4983f Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 12 Feb 2023 13:20:24 -0500 Subject: [PATCH] chore: remove deprecated proxy functions --- docs/appendices/0.30.0-migration-guide.md | 3 +++ plugins/proxy/functions | 23 ----------------------- 2 files changed, 3 insertions(+), 23 deletions(-) delete mode 100755 plugins/proxy/functions diff --git a/docs/appendices/0.30.0-migration-guide.md b/docs/appendices/0.30.0-migration-guide.md index c5f7df176..c945fbd45 100644 --- a/docs/appendices/0.30.0-migration-guide.md +++ b/docs/appendices/0.30.0-migration-guide.md @@ -25,3 +25,6 @@ - The following deprecated nginx commands have been removed: - `nginx:show-conf` (deprecated since since 0.20.0) has been removed in favor of `nginx:show-config` - `nginx:validate` (deprecated since since 0.20.0) has been removed in favor of `nginx:validate-config` +- The following proxy functions - deprecated since 0.20.0 - have been removed in favor of their plugin trigger equivalents. Sourcing the `proxy/functions` file will fail going forward. + - `proxy#is_app_proxy_enabled()` is removed in favor of `plugn trigger proxy-is-enabled`. + - `proxy#get_app_proxy_type()` is removed in favor of `plugn trigger proxy-type`. diff --git a/plugins/proxy/functions b/plugins/proxy/functions deleted file mode 100755 index 910a7a22e..000000000 --- a/plugins/proxy/functions +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -set -eo pipefail -[[ $DOKKU_TRACE ]] && set -x -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" -source "$PLUGIN_AVAILABLE_PATH/config/functions" - -is_app_proxy_enabled() { - declare desc="return true if proxy is enabled; otherwise return false" - declare APP="$1" - declare deprecated=true - dokku_log_warn "Deprecated: Use plugn#proxy-is-enabled" - - plugn trigger proxy-is-enabled "$APP" -} - -get_app_proxy_type() { - declare desc="return app proxy type" - declare APP="$1" - declare deprecated=true - dokku_log_warn "Deprecated: Use plugn#proxy-type" - - plugn trigger proxy-type "$APP" -}