diff --git a/share/gitea-tekton-org/check.rhai b/share/gitea-tekton-org/check.rhai index 7335f69..5ea95f8 100644 --- a/share/gitea-tekton-org/check.rhai +++ b/share/gitea-tekton-org/check.rhai @@ -1,17 +1,14 @@ const DOMAIN = config.domain; fn pre_check() { - log_warn("Running pre check"); - log_warn("FUCK"); if ! have_install(`${global::DOMAIN}-ci`, "gitea") { throw `No gitea installation in ${global::DOMAIN}-ci` } else if ! have_ingress(`${global::DOMAIN}-ci`, "gitea") { throw `No gitea ingress in ${global::DOMAIN}-ci` } else if ! have_secret(`${global::DOMAIN}-ci`, "gitea") { throw `No gitea secret in ${global::DOMAIN}-ci` - } else if ! have_secret(`${global::DOMAIN}-ci`, "gitea-xadmin-user") { + } else if ! have_secret(`${global::DOMAIN}-ci`, "gitea-admin-user") { log_warn("gitea-admin-user"); throw `No gitea-admin-user secret in ${global::DOMAIN}-ci` } - log_warn("Ready to install"); - true + log_info("Ready to install"); }