You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GEP-33] Ensure NamespacedCloudProfile status format (#1515)
* feat: introduce namespacedcloudprofile automatic status transformation from and to capabilityformat
* feat: implement RestrictToArchitectureCapability for capability validation during transition
* feat: refine architecture handling in cloud profile and machine image flavor
* feat: update CloudProfileConfig examples to include spec.machineCapabilities for architecture mapping
* feat: refactor architecture handling and remove capability restriction functions in cloud profile transformer
* feat: simplify provider config decoding in namespaced cloud profile
* Update pkg/apis/aws/helper/cloudprofiletransformer.go
@@ -13,29 +13,128 @@ In this section we are describing how the configuration for `CloudProfile`s look
13
13
### `CloudProfileConfig`
14
14
15
15
The cloud profile configuration contains information about the real machine image IDs in the AWS environment (AMIs).
16
+
With the introduction of `spec.machineCapabilities` in Gardener *v1.131.0* you have to map every `capabilityFlavor` in `.spec.machineImages[].versions` here such that the AWS extension knows the AMI for every flavor you want to offer.
17
+
18
+
If the `spec.machineCapabilities` field is not used in the `CloudProfile`, the legacy `architectures` field in `.spec.machineImages[].versions` is used.
16
19
You have to map every version that you specify in `.spec.machineImages[].versions` here such that the AWS extension knows the AMI for every version you want to offer.
17
20
For each AMI an `architecture` field can be specified which specifies the CPU architecture of the machine on which given machine image can be used.
18
21
19
22
An example `CloudProfileConfig` for the AWS extension looks as follows:
20
23
21
24
```yaml
25
+
## With `spec.machineCapabilities` in `CloudProfile`
// TODO(Roncossek): Remove TransformProviderConfigToParentFormat once all CloudProfiles have been migrated to use CapabilityFlavors and the Architecture fields are effectively forbidden or have been removed.
// TODO(Roncossek): Remove TransformSpecToParentFormat once all CloudProfiles have been migrated to use CapabilityFlavors and the Architecture fields are effectively forbidden or have been removed.
0 commit comments