Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to latest size reservations API. #322

Merged
merged 2 commits into from
Sep 30, 2024
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
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
Loading