mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 17:27:28 +00:00
rename pre-requisites to pre-installation to align with flag description
Signed-off-by: h3nryc0ding <hr.richterhenry@gmail.com>
This commit is contained in:
parent
05d4611345
commit
63b52cdbb7
2 changed files with 7 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
6
cmd/flux/testdata/check/check_pre.golden
vendored
6
cmd/flux/testdata/check/check_pre.golden
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue