Skip to content

Commit

Permalink
Adapt to latest size reservations API. (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Sep 30, 2024
1 parent 65d4ae1 commit 8dc6a8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion control-plane/roles/metal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can look up all the default values of this role [here](defaults/main/main.ya
### metal-api

| Name | Mandatory | Description |
|-------------------------------------|-----------|------------------------------------------------------------------------------------------------|
| ----------------------------------- | --------- | ---------------------------------------------------------------------------------------------- |
| metal_api_replicas | | The number of deployed replicas of the metal-api |
| metal_api_hpa_enabled | | Enables horizontal pod autoscaling for the metal-api |
| metal_api_hpa_max | | Max amount of replicas for the HPA of the metal-api |
Expand Down Expand Up @@ -85,6 +85,7 @@ You can look up all the default values of this role [here](defaults/main/main.ya
| metal_api_ips | | Creates ips (as masterdata) to the metal-api after deployment |
| metal_api_filesystemlayouts | | Creates filesystemlayouts to the metal-api after deployment |
| metal_api_sizeimageconstraints | | Creates sizeimageconstraints to the metal-api after deployment |
| metal_api_size_reservations | | Creates size reservations to the metal-api after deployment |
| metal_api_resources | | Sets the given container resources |
| metal_api_bmc_superuser_enabled | | Enables creating the BMC superuser and disabling the default one |
| metal_api_bmc_superuser_pwd | | If enabled use this password for the new BMC superuser |
Expand Down
1 change: 1 addition & 0 deletions control-plane/roles/metal/defaults/main/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ metal_api_networks: []
metal_api_ips: []
metal_api_filesystemlayouts: []
metal_api_sizeimageconstraints: []
metal_api_size_reservations: []
metal_api_resources:
metal_api_s3_enabled: false
metal_api_s3_address:
Expand Down
9 changes: 5 additions & 4 deletions control-plane/roles/metal/templates/metal-values.j2
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,18 @@ metal_api:
filesystemlayouts: |
{% for entity in metal_api_filesystemlayouts %}
---
{#
Some FSL Types confuse different YAML-parsing implementations.
Hence we fall back to JSON to enforce quotes around literals like 8e00.
#}
{{ entity | to_json | indent(width=4, first=false) }}
{% endfor %}
sizeimageconstraints: |
{% for entity in metal_api_sizeimageconstraints %}
---
{{ entity | to_json | indent(width=4, first=false) }}
{% endfor %}
size_reservations: |
{% for entity in metal_api_size_reservations %}
---
{{ entity | to_json | indent(width=4, first=false) }}
{% endfor %}

masterdata_api:
provider_tenant: {{ metal_masterdata_api_provider_tenant }}
Expand Down

0 comments on commit 8dc6a8a

Please sign in to comment.