-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Runtime software versioning data (#324)
This PR adds a simple way to **manage available versions of software or runtime** deployed on Clever Cloud. Yaml files are used to render the list of a runtime or add-on. ----- Co-authored-by: Julia <julia.navarro@clever-cloud.com>
- Loading branch information
Showing
20 changed files
with
226 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
node: | ||
default: | ||
- "v20.15.0" | ||
PHP: | ||
default: | ||
- "8.3" | ||
accepted: | ||
- "5.6" | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
python: | ||
default: | ||
- "3.12.4" | ||
accepted: | ||
- "2.7" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
dotnet: | ||
default: | ||
- "6.0" | ||
accepted: | ||
- "8.0" | ||
elixir: | ||
default: | ||
- "1.16" | ||
accepted: | ||
- "1.8" | ||
- "1.9" | ||
- "1.10" | ||
- "1.11" | ||
- "1.12" | ||
- "1.13" | ||
- "1.14" | ||
- "1.15" | ||
java: | ||
default: | ||
- "11" | ||
accepted: | ||
- "22" | ||
- "21" | ||
- "17" | ||
- "11" | ||
- "8" | ||
- "7" | ||
- "graalvm-ce" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Example usage: | ||
#myDB | ||
# shared: | ||
# - version_1 | ||
# - version_2 | ||
# dedicated: | ||
# - version_1 | ||
# - version_1 | ||
# - version_2 | ||
pg: | ||
dedicated: | ||
- "v11.22" | ||
- "v12.19" | ||
- "v13.15" | ||
- "v14.12" | ||
- "v15.7" | ||
dev: | ||
- "v15" | ||
mysql: | ||
dedicated: | ||
- "v5.7.20" | ||
- "v8.0.36" | ||
dev: | ||
- "v8.0" | ||
mongo: | ||
dedicated: | ||
- "v4.0.3" | ||
dev: | ||
- "v4.0.3" | ||
elasticsearch: | ||
dedicated: | ||
- "v7.17.10" | ||
- "v8.10.2" | ||
redis: | ||
dedicated: | ||
- "v7.2.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{{ $software := or (.Get 0) }} | ||
{{ $version_list := .Site.Data.runtime_versions }} | ||
|
||
{{ with index $version_list $software }} | ||
{{ $default := .default | default (slice) }} | ||
{{ $accepted := .accepted | default (slice) }} | ||
{{ $default_len := len $default }} | ||
{{ $accepted_len := len $accepted }} | ||
{{ $max_len := $default_len }} | ||
{{ if gt $accepted_len $default_len }} | ||
{{ $max_len = $accepted_len }} | ||
{{ end }} | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
{{ if $default_len }} | ||
<th>Default Version</th> | ||
{{ end }} | ||
{{ if $accepted_len }} | ||
<th>Accepted Versions</th> | ||
{{ end }} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range $i := seq 0 (sub $max_len 1) }} | ||
<tr> | ||
{{ if $default_len }} | ||
<td> | ||
{{ with index $default $i }} | ||
<code>{{ . }}</code> | ||
{{ else }} | ||
{{ end }} | ||
</td> | ||
{{ end }} | ||
{{ if $accepted_len }} | ||
<td> | ||
{{ with index $accepted $i }} | ||
<code>{{ . }}</code> | ||
{{ else }} | ||
<code></code> | ||
{{ end }} | ||
</td> | ||
{{ end }} | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
{{ end }} |
38 changes: 38 additions & 0 deletions
38
layouts/shortcodes/software_versions_shared_dedicated.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ $software := or (.Get 0) }} | ||
{{ $version_list := .Site.Data.software_versions_shared_dedicated }} | ||
{{ $software_versions := index $version_list $software }} | ||
{{ $has_dev := false }} | ||
|
||
{{ if $software_versions.dev }} | ||
{{ $has_dev = true }} | ||
{{ end }} | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Dedicated</th> | ||
{{ if $has_dev }} | ||
<th>Dev</th> | ||
{{ end }} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{ range $index, $dedicated_version := $software_versions.dedicated }} | ||
<tr> | ||
<td><code>{{ $dedicated_version }}</code></td> | ||
{{ if $has_dev }} | ||
<td> | ||
{{ with index $software_versions.dev $index }} | ||
<code>{{ . }}</code> | ||
{{ else }} | ||
<!-- If the index is outside the dev values --> | ||
{{ end }} | ||
</td> | ||
{{ end }} | ||
</tr> | ||
{{ end }} | ||
</tbody> | ||
</table> | ||
{{ if $has_dev }} | ||
{{ $.Page.RenderString "<!-- markdown -->{{< callout type=\"warning\">}} <strong>Important</strong>: Dev plans are free and intended <u>solely for testing purposes</u>. They don't provide the same guarantees or SLAs as dedicated plans. {{< /callout >}}" | safeHTML }} | ||
{{ end }} | ||
|