mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-08 19:08:40 -05:00
join-service: do not check if kubernetes version is valid
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
c38a142d64
commit
38f461fdee
@ -19,7 +19,6 @@ import (
|
|||||||
"github.com/edgelesssys/constellation/internal/file"
|
"github.com/edgelesssys/constellation/internal/file"
|
||||||
"github.com/edgelesssys/constellation/internal/grpc/grpclog"
|
"github.com/edgelesssys/constellation/internal/grpc/grpclog"
|
||||||
"github.com/edgelesssys/constellation/internal/logger"
|
"github.com/edgelesssys/constellation/internal/logger"
|
||||||
"github.com/edgelesssys/constellation/internal/versions"
|
|
||||||
"github.com/edgelesssys/constellation/joinservice/joinproto"
|
"github.com/edgelesssys/constellation/joinservice/joinproto"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
@ -182,10 +181,6 @@ func (s *Server) getK8sVersion() (string, error) {
|
|||||||
}
|
}
|
||||||
k8sVersion := string(fileContent)
|
k8sVersion := string(fileContent)
|
||||||
|
|
||||||
if !versions.IsSupportedK8sVersion(k8sVersion) {
|
|
||||||
return "", fmt.Errorf("supplied k8s version is not supported: %v", k8sVersion)
|
|
||||||
}
|
|
||||||
|
|
||||||
return k8sVersion, nil
|
return k8sVersion, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user