furyctl
furyctl copied to clipboard
[Furyctl Next] Odd error when specifying a non-semver version
If I try to use a non semver value in the --version flag, Furyctl fails with an odd error that is not user-friendly
$ go run main.go create config --version vTag
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1
$ go run main.go create config --version main
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1
$ go run main.go create config --version my-custom-branch
INFO Downloading distribution...
ERRO failed to download distribution: invalid furyctl config: Key: 'Furyctl.Spec.DistributionVersion' Error:Field validation for 'DistributionVersion' failed on the 'permissive-semver' tag
exit status 1
this card should be worked after https://github.com/sighupio/furyctl/issues/290, because at the moment there is no minimal config validation, so the error is human-readable:
go run main.go create config --version main --config boh.yaml
INFO Downloading distribution...
ERRO failed to download distribution: unsupported KFD version: seems like the specified version vmain does not exist, try another version from the official repository