/
types_cloudprofile.go
36 lines (30 loc) · 1.14 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
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
package local
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// +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
}
// 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
}
// MachineImageVersion contains a version and a provider-specific identifier.
type MachineImageVersion struct {
// Version is the version of the image.
Version string
// Image is the image for the machine image.
Image string
}