mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 16:11:48 +00:00
fix tests
Signed-off-by: h3nryc0ding <hr.richterhenry@gmail.com>
This commit is contained in:
parent
cfcd1cd439
commit
05d4611345
2 changed files with 7 additions and 5 deletions
|
|
@ -114,11 +114,11 @@ func runCheckCmd(_ *cobra.Command, _ []string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !runPreChecks(ctx, cfg) {
|
if !runPreChecks(ctx, cfg) {
|
||||||
return errors.New("pre-installation checks failed")
|
return errors.New("pre-requisites checks failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
if checkArgs.pre {
|
if checkArgs.pre {
|
||||||
logger.Actionf("All pre-installation checks passed")
|
logger.Actionf("All pre-requisites checks passed")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
8
cmd/flux/testdata/check/check_pre.golden
vendored
8
cmd/flux/testdata/check/check_pre.golden
vendored
|
|
@ -1,3 +1,5 @@
|
||||||
► checking prerequisites
|
► Checking flux pre-requisites
|
||||||
✔ Kubernetes {{ .serverVersion }} >=1.30.0-0
|
✔ flux 0.0.0-dev.0 is a development build
|
||||||
✔ prerequisites checks passed
|
► Checking kubernetes pre-requisites
|
||||||
|
✔ kubernetes {{ .serverVersion }}>=1.30.0-0
|
||||||
|
► All pre-requisites checks passed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue