From 5287a68eecf398364bb9bf3cc2d9b6da92e472c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 7 May 2024 15:03:19 +0200 Subject: [PATCH] fix --- share/gitea-tekton-org/check.rhai | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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"); }