Switch to Azure CVMs

This commit is contained in:
Otto Bittner 2022-07-27 09:46:32 +02:00 committed by Malte Poll
parent 29a1b5de42
commit 0892525915
7 changed files with 22 additions and 47 deletions

View file

@ -170,7 +170,7 @@ func (s *Server) IssueRejoinTicket(ctx context.Context, req *joinproto.IssueRejo
// getK8sVersion reads the k8s version from a VolumeMount that is backed by the k8s-version ConfigMap.
func (s *Server) getK8sVersion() (string, error) {
fileContent, err := s.file.Read(filepath.Join(constants.ServiceBasePath, "k8s-version"))
fileContent, err := s.file.Read(filepath.Join(constants.ServiceBasePath, constants.K8sVersion))
if err != nil {
return "", fmt.Errorf("could not read k8s version file: %v", err)
}