mirror of
https://github.com/dokku/dokku.git
synced 2026-07-10 12:36:13 +02:00
The bash :report implementations for the checks and domains plugins are replaced with a compiled golang binary that collects report keys in parallel and marshals json directly. The domains global report header now matches the shared renderer used by every other golang report, and its bats assertion is updated accordingly.
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
fn-checks-disabled-list() {
|
|
declare APP="$1"
|
|
|
|
local DOKKU_CHECKS_DISABLED=$(fn-plugin-property-get-default "checks" "$APP" "disabled" "")
|
|
DOKKU_CHECKS_DISABLED="${DOKKU_CHECKS_DISABLED:-none}"
|
|
echo "$DOKKU_CHECKS_DISABLED"
|
|
}
|
|
|
|
fn-checks-skipped-list() {
|
|
declare APP="$1"
|
|
|
|
local DOKKU_CHECKS_SKIPPED=$(fn-plugin-property-get-default "checks" "$APP" "skipped" "")
|
|
DOKKU_CHECKS_SKIPPED="${DOKKU_CHECKS_SKIPPED:-none}"
|
|
echo "$DOKKU_CHECKS_SKIPPED"
|
|
}
|
|
|
|
fn-checks-computed-wait-to-retire() {
|
|
declare APP="$1"
|
|
|
|
file="$(fn-checks-wait-to-retire "$APP")"
|
|
if [[ "$file" == "" ]]; then
|
|
file="$(fn-checks-global-wait-to-retire "$APP")"
|
|
fi
|
|
if [[ "$file" == "" ]]; then
|
|
file="60"
|
|
fi
|
|
|
|
echo "$file"
|
|
}
|
|
|
|
fn-checks-global-wait-to-retire() {
|
|
declare APP="$1"
|
|
|
|
fn-plugin-property-get-default "checks" "--global" "wait-to-retire" ""
|
|
}
|
|
|
|
fn-checks-wait-to-retire() {
|
|
declare APP="$1"
|
|
|
|
fn-plugin-property-get-default "checks" "$APP" "wait-to-retire" ""
|
|
}
|