From 63b52cdbb77fafced60799e17533254799403038 Mon Sep 17 00:00:00 2001 From: h3nryc0ding Date: Sat, 12 Apr 2025 18:35:37 +0200 Subject: [PATCH] rename pre-requisites to pre-installation to align with flag description Signed-off-by: h3nryc0ding --- cmd/flux/check.go | 8 ++++---- cmd/flux/testdata/check/check_pre.golden | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/flux/check.go b/cmd/flux/check.go index 26e42354..8ef0e811 100644 --- a/cmd/flux/check.go +++ b/cmd/flux/check.go @@ -114,11 +114,11 @@ func runCheckCmd(_ *cobra.Command, _ []string) error { } if !runPreChecks(ctx, cfg) { - return errors.New("pre-requisites checks failed") + return errors.New("pre-installation checks failed") } if checkArgs.pre { - logger.Actionf("All pre-requisites checks passed") + logger.Actionf("All pre-installation checks passed") return nil } @@ -175,7 +175,7 @@ func logCheckResult(res checkResult) { } func fluxCheck() checkResult { - res := checkResult{Title: "flux pre-requisites"} + res := checkResult{Title: "flux pre-installation"} curSv, err := version.ParseVersion(VERSION) if err != nil { @@ -227,7 +227,7 @@ func fluxCheck() checkResult { } func kubernetesCheck(cfg *rest.Config, constraints []string) checkResult { - res := checkResult{Title: "kubernetes pre-requisites"} + res := checkResult{Title: "kubernetes pre-installation"} clientSet, err := kubernetes.NewForConfig(cfg) if err != nil { diff --git a/cmd/flux/testdata/check/check_pre.golden b/cmd/flux/testdata/check/check_pre.golden index fd6e8b0d..352523b8 100644 --- a/cmd/flux/testdata/check/check_pre.golden +++ b/cmd/flux/testdata/check/check_pre.golden @@ -1,5 +1,5 @@ -► Checking flux pre-requisites +► Checking flux pre-installation ✔ flux 0.0.0-dev.0 is a development build -► Checking kubernetes pre-requisites +► Checking kubernetes pre-installation ✔ kubernetes {{ .serverVersion }}>=1.30.0-0 -► All pre-requisites checks passed +► All pre-installation checks passed