Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions config/v1/types_infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ type InfrastructureSpec struct {

// InfrastructureStatus describes the infrastructure the cluster is leveraging.
type InfrastructureStatus struct {
// infrastructureName uniquely identifies a cluster with a human friendly name.
// Once set it should not be changed. Must be of max length 27 and must have only
// alphanumeric or hyphen characters.
InfrastructureName string `json:"infrastructureName"`

// platform is the underlying infrastructure provider for the cluster. This
// value controls whether infrastructure automation such as service load
// balancers, dynamic volume provisioning, machine creation and deletion, and
Expand All @@ -53,26 +58,26 @@ type InfrastructureStatus struct {
type PlatformType string

const (
// AWSPlatform represents Amazon Web Services infrastructure.
AWSPlatform PlatformType = "AWS"
// AWSPlatformType represents Amazon Web Services infrastructure.
AWSPlatformType PlatformType = "AWS"

// AzurePlatform represents Microsoft Azure infrastructure.
AzurePlatform PlatformType = "Azure"
// AzurePlatformType represents Microsoft Azure infrastructure.
AzurePlatformType PlatformType = "Azure"

// GCPPlatform represents Google Cloud Platform infrastructure.
GCPPlatform PlatformType = "GCP"
// GCPPlatformType represents Google Cloud Platform infrastructure.
GCPPlatformType PlatformType = "GCP"

// LibvirtPlatform represents libvirt infrastructure.
LibvirtPlatform PlatformType = "Libvirt"
// LibvirtPlatformType represents libvirt infrastructure.
LibvirtPlatformType PlatformType = "Libvirt"

// OpenStackPlatform represents OpenStack infrastructure.
OpenStackPlatform PlatformType = "OpenStack"
// OpenStackPlatformType represents OpenStack infrastructure.
OpenStackPlatformType PlatformType = "OpenStack"

// NonePlatform means there is no infrastructure provider.
NonePlatform PlatformType = "None"
// NonePlatformType means there is no infrastructure provider.
NonePlatformType PlatformType = "None"

// VSpherePlatform represents VMWare vSphere infrastructure.
VSpherePlatform PlatformType = "VSphere"
// VSpherePlatformType represents VMWare vSphere infrastructure.
VSpherePlatformType PlatformType = "VSphere"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
1 change: 1 addition & 0 deletions config/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.