-
Notifications
You must be signed in to change notification settings - Fork 3
/
types_cloudprofile.go
68 lines (59 loc) · 2.18 KB
/
types_cloudprofile.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and IronCore contributors
// SPDX-License-Identifier: Apache-2.0
package ironcore
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// CloudProfileConfig contains provider-specific configuration that is embedded into Gardener's `CloudProfile`
// resource.
type CloudProfileConfig struct {
metav1.TypeMeta
// MachineImages is the list of machine images that are understood by the controller. It maps
// logical names and versions to provider-specific identifiers.
MachineImages []MachineImages
// RegionConfigs is the list of supported regions.
RegionConfigs []RegionConfig
// StorageClasses defines the DefaultStrorageClass and AdditionalStoreClasses for the shoot
StorageClasses StorageClasses
}
// StorageClasses is a definition of a storageClasses
type StorageClasses struct {
// Default defines the default storage class for the shoot
Default *StorageClass
// Additional defines the additional storage classes for the shoot
Additional []StorageClass
}
// StorageClass is the definition of a storageClass
type StorageClass struct {
// Name is the name of the storageclass
Name string
// Type is referring to the VolumeClass to use for this StorageClass
Type string
}
// MachineImages is a mapping from logical names and versions to provider-specific identifiers.
type MachineImages struct {
// Name is the logical name of the machine image.
Name string
// Versions contains versions and a provider-specific identifier.
Versions []MachineImageVersion
}
// RegionConfig is the definition of a region.
type RegionConfig struct {
// Name is the name of a region.
Name string
// Server is the server endpoint of this region.
Server string
// CertificateAuthorityData is the CA data of the region server.
CertificateAuthorityData []byte
}
// MachineImageVersion contains a version and a provider-specific identifier.
type MachineImageVersion struct {
// Version is the version of the image.
Version string
// Image is the path to the image.
Image string
// Architecture is the CPU architecture of the machine image.
Architecture *string
}