mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 22:34:56 -04:00
cli: fail fast when CLI and Constellation versions don't match (#1972)
* fail on version mismatch * rename to validateCLIandConstellationVersionAreEqual * fix test * image version must only be major,minor patch equal (ignore suffix) * add version support doc * fix: do not check patch version equality for image and cli * skip validate on force
This commit is contained in:
parent
90ffcd17e8
commit
1edbe962c1
6 changed files with 140 additions and 2 deletions
|
@ -121,7 +121,11 @@ func (i *initCmd) initialize(cmd *cobra.Command, newDialer func(validator atls.V
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !flags.force {
|
||||
if err := validateCLIandConstellationVersionAreEqual(constants.VersionInfo(), conf.Image, conf.MicroserviceVersion); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if conf.GetAttestationConfig().GetVariant().Equal(variant.AWSSEVSNP{}) {
|
||||
cmd.PrintErrln("WARNING: SNP based attestation is still under active development. Please do not use in production.")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue