From 1eb697240913aa1c4e0972ad92b5fce4713a320a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Tue, 15 Oct 2024 14:41:20 +0200 Subject: [PATCH] Add Vsphere provider support (#1440) * Add Vsphere provider support * Add Vsphere provider support * Add Vsphere provider support --- sdk/CHANGELOG.md | 6 ++++++ sdk/api/v1alpha1/types.go | 4 ++++ sdk/repo.go | 2 ++ 3 files changed, 12 insertions(+) diff --git a/sdk/CHANGELOG.md b/sdk/CHANGELOG.md index 8d21cebcb..869d4a6f7 100644 --- a/sdk/CHANGELOG.md +++ b/sdk/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Add Azure provider to the list of supported providers. + +## [0.6.0] - 2024-07-26 + ### Changed - Fix `GetLatestRelease` to correctly return the latest release according to semver, and not the latest published GitHub diff --git a/sdk/api/v1alpha1/types.go b/sdk/api/v1alpha1/types.go index 3a2e8548b..62072bc37 100644 --- a/sdk/api/v1alpha1/types.go +++ b/sdk/api/v1alpha1/types.go @@ -10,11 +10,15 @@ const ( // ProviderAzure represents the new Azure provider which is implemented with Cluster API. ProviderAzure Provider = "azure" + + // ProviderVsphere represents the new Vsphere provider which is implemented with Cluster API. + ProviderVsphere Provider = "vsphere" ) var SupportedProviders = []Provider{ ProviderAws, ProviderAzure, + ProviderVsphere, } type Provider string diff --git a/sdk/repo.go b/sdk/repo.go index 0220f04e8..79b5efd06 100644 --- a/sdk/repo.go +++ b/sdk/repo.go @@ -16,6 +16,8 @@ func getProviderDirectory(provider Provider) (string, error) { return "capa", nil case ProviderAzure: return "azure", nil + case ProviderVsphere: + return "vsphere", nil } return "", microerror.Maskf(InvalidProviderError, "unknown provider: %s", provider)