mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-14 01:35:34 -04:00
ci: add cli k8s compatibility table artifact upload to ci (#1218)
* add cli k8s compatibility api to ci * extend versionsapi package * rework cli info upload via ci * join errors natively * fix semver * upload from hack file * fix ci checks * add distributionid * setup go before running hack file * setup go after repo checkout * use logger instead of panic, invalidate cache * use provided ctx Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --------- Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
ed2e6fe233
commit
a274ac8a7c
10 changed files with 558 additions and 21 deletions
|
@ -167,6 +167,8 @@ const (
|
|||
VersionKindUnknown VersionKind = iota
|
||||
// VersionKindImage is the kind for image versions.
|
||||
VersionKindImage
|
||||
// VersionKindCLI is the kind for CLI versions.
|
||||
VersionKindCLI
|
||||
)
|
||||
|
||||
// MarshalJSON marshals the VersionKind to JSON.
|
||||
|
@ -189,6 +191,8 @@ func (k VersionKind) String() string {
|
|||
switch k {
|
||||
case VersionKindImage:
|
||||
return "image"
|
||||
case VersionKindCLI:
|
||||
return "cli"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
|
@ -199,6 +203,8 @@ func VersionKindFromString(s string) VersionKind {
|
|||
switch strings.ToLower(s) {
|
||||
case "image":
|
||||
return VersionKindImage
|
||||
case "cli":
|
||||
return VersionKindCLI
|
||||
default:
|
||||
return VersionKindUnknown
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue