mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
terraform-provider: validate image and microservice version (#2766)
This commit is contained in:
parent
519efe637d
commit
436e7c6d3b
6 changed files with 128 additions and 13 deletions
|
@ -690,7 +690,8 @@ func msgFromCompatibilityError(err error, binaryVersion, fieldValue string) stri
|
|||
}
|
||||
}
|
||||
|
||||
func validateMicroserviceVersion(binaryVersion, version consemver.Semver) error {
|
||||
// ValidateMicroserviceVersion checks that the version of the microservice is compatible with the binary version.
|
||||
func ValidateMicroserviceVersion(binaryVersion, version consemver.Semver) error {
|
||||
// Major versions always have to match.
|
||||
if binaryVersion.Major() != version.Major() {
|
||||
return compatibility.ErrMajorMismatch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue