public VersionInfo getVersion(ApiClient apiClient) throws HyscaleException {
        if (apiClient == null) {
            return null;
        }
        VersionApi versionApi = new VersionApi(apiClient);
        try {
            return versionApi.getCode();
        } catch (ApiException e) {
            logger.error("Error while fetching cluster version", e);
            throw new HyscaleException(DeployerErrorCodes.FAILED_TO_GET_RESOURCE, getKind());
        }
    }
Class to provide kubernetes cluster version details
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/handler/impl/K8sVersionHandler.java