Skip to content

Commit

Permalink
Release extension version 0.8.0 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao authored Jun 10, 2024
1 parent 17b37e8 commit fe7ec16
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 12 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.1
0.8.0
47 changes: 47 additions & 0 deletions docs/_posts/2024-06-03-v0.8.0.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
layout: post
title: "Release 0.8.0"
date: 2024-06-03 00:00:00 +0000
categories: release notes
---

# Whats New

### Added

- Added caching mechanism for local vms, this allows a better management of the
local vms and reduces the amount of queries to the database, it does have the side
effect of not showing the vms in real time, but it will show them by default
every 30s you can change this by setting the environment variable `PARALLELS_DESKTOP_REFRESH_INTERVAL`
- Added a new endpoint to update a host in a orchestrator `[PUT] /api/v1/orchestrator/hosts/{id}`
- Added a backup system for the database, this will backup the database every 2h
and will keep the last 10 backups by default, this can be changed by setting the
environment variable `DATABASE_NUMBER_BACKUP_FILES` to the number of
backups you want to keep and `DATABASE_BACKUP_INTERVAL_MINUTES` to the interval
you want to backup the database
- Moved the memory database to be saved to a file every 5 minutes, this will allow
for a better management of the memory database and will allow for a better
recovery in case of a crash, it will also save on exit or on crash, you can change
the interval by setting the environment variable `DATABASE_SAVE_INTERVAL_MINUTES`
- Added K6 scripts to perform load tests on the API
- Added a favicon to the documentation

### Fixed

- Fixed an issue where we were trying to get the virtual machines for other users
when not being a super admin
- Fixed some memory leaks in the orchestrator
- Fixed some other small issues
- Fixed some issues that would report a missing vm immediately after
creating it

### Changed

- Moved database saving process to a 5 minutes setting to avoid overloading the
database with too many requests
- Changed the way the orchestrator was checking for VMs status changes to avoid
overloading the database
- Moved all the old commands to the new exec with context to enable timeouts
- Added a 30 seconds timeout when checking the status of the local vms


4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "0.7.1"
appVersion: "0.7.1"
version: "0.8.0"
appVersion: "0.8.0"
14 changes: 13 additions & 1 deletion src/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6946,6 +6946,18 @@ const docTemplate = `{
},
"description": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "string"
},
"prefix": {
"type": "string"
},
"schema": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -7578,7 +7590,7 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "0.7.1",
Version: "0.8.0",
Host: "",
BasePath: "/api",
Schemes: []string{},
Expand Down
14 changes: 13 additions & 1 deletion src/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "0.7.1"
"version": "0.8.0"
},
"basePath": "/api",
"paths": {
Expand Down Expand Up @@ -6939,6 +6939,18 @@
},
"description": {
"type": "string"
},
"host": {
"type": "string"
},
"port": {
"type": "string"
},
"prefix": {
"type": "string"
},
"schema": {
"type": "string"
}
}
},
Expand Down
10 changes: 9 additions & 1 deletion src/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ definitions:
$ref: '#/definitions/models.OrchestratorAuthentication'
description:
type: string
host:
type: string
port:
type: string
prefix:
type: string
schema:
type: string
type: object
models.PackerTemplateResponse:
properties:
Expand Down Expand Up @@ -1377,7 +1385,7 @@ info:
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: http://swagger.io/terms/
title: Parallels Desktop DevOps Service
version: 0.7.1
version: 0.8.0
paths:
/health/probe:
get:
Expand Down
12 changes: 6 additions & 6 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
)

var (
ver = "0.7.3"
ver = "0.8.0"
versionSvc = version.Get()
)

// @title Parallels Desktop DevOps Service
// @version 0.7.1
// @version 0.8.0
// @description Parallels Desktop DevOps Service
// @termsOfService http://swagger.io/terms/

Expand All @@ -40,10 +40,10 @@ var (
// @in header
// @name X-Api-Key

// @securityDefinitions.apikey BearerAuth
// @description Type "Bearer" followed by a space and JWT token.
// @in header
// @name Authorization
// @securityDefinitions.apikey BearerAuth
// @description Type "Bearer" followed by a space and JWT token.
// @in header
// @name Authorization
func main() {
// catching all of the exceptions
defer func() {
Expand Down

0 comments on commit fe7ec16

Please sign in to comment.