chore: remove deprecated proxy functions

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-12 13:20:24 -05:00
parent 59fde3a317
commit 954b2d9d34
2 changed files with 3 additions and 23 deletions

View File

@@ -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`.

View File

@@ -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"
}