28 lines
873 B
Text
28 lines
873 B
Text
|
|
# KCL Version configuration for hetzner provider tools
|
||
|
|
# Uses centralized schema definitions from provisioning.version
|
||
|
|
import provisioning.version as prv_schema
|
||
|
|
|
||
|
|
# Hetzner Cloud provider CLI tool configuration
|
||
|
|
_version = prv_schema.TaskservVersion {
|
||
|
|
name = "hcloud"
|
||
|
|
version = prv_schema.Version {
|
||
|
|
current = "1.57.0"
|
||
|
|
source = "https://github.com/hetznercloud/cli/releases"
|
||
|
|
tags = "https://github.com/hetznercloud/cli/tags"
|
||
|
|
site = "https://github.com/hetznercloud/cli"
|
||
|
|
check_latest = True
|
||
|
|
grace_period = 86400
|
||
|
|
}
|
||
|
|
dependencies = []
|
||
|
|
# Detection configuration to check if hcloud is installed
|
||
|
|
detector = {
|
||
|
|
method = "command"
|
||
|
|
command = "hcloud version"
|
||
|
|
pattern = r"hcloud (?P<capture0>[\d.]+)"
|
||
|
|
capture = "capture0"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
# Output for dynamic version loading system
|
||
|
|
_version
|