fix
This commit is contained in:
13
monitor/pvc-autoresizer/check.rhai
Normal file
13
monitor/pvc-autoresizer/check.rhai
Normal file
@@ -0,0 +1,13 @@
|
||||
const DOMAIN = config.domain;
|
||||
fn check_domain() {
|
||||
assert(have_namespace(`${global::DOMAIN}`), `There is no ${global::DOMAIN} namespace`);
|
||||
}
|
||||
fn check_prometheus() {
|
||||
assert(have_namespace(`${global::DOMAIN}-monitor`), `There is no ${global::DOMAIN}-monitor namespace`);
|
||||
assert(have_install(`${global::DOMAIN}-monitor`, "prometheus"), `No prometheus installation in ${global::DOMAIN}-monitor`);
|
||||
assert(have_service(`${global::DOMAIN}-monitor`, "prometheus-prometheus"), `No prometheus-prometheus service in ${global::DOMAIN}-monitor`);
|
||||
}
|
||||
fn pre_check() {
|
||||
check_domain();
|
||||
check_prometheus();
|
||||
}
|
||||
Reference in New Issue
Block a user