From 4c4147ff2c1332df205e2cae153bb1c2402a5a1c Mon Sep 17 00:00:00 2001 From: Gerrit Date: Wed, 25 Sep 2024 11:30:31 +0200 Subject: [PATCH] Adapt to latest size reservations API. --- charts/metal-control-plane/Chart.yaml | 2 +- charts/metal-control-plane/templates/metal-api.yaml | 5 +++++ charts/metal-control-plane/values.yaml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/metal-control-plane/Chart.yaml b/charts/metal-control-plane/Chart.yaml index 8a133b7..d0440b6 100644 --- a/charts/metal-control-plane/Chart.yaml +++ b/charts/metal-control-plane/Chart.yaml @@ -3,4 +3,4 @@ apiVersion: v1 appVersion: "1.0" description: A Helm chart for deploying the metal control plane in K8s name: metal-control-plane -version: 0.4.4 +version: 0.4.5 diff --git a/charts/metal-control-plane/templates/metal-api.yaml b/charts/metal-control-plane/templates/metal-api.yaml index 228234e..282d849 100644 --- a/charts/metal-control-plane/templates/metal-api.yaml +++ b/charts/metal-control-plane/templates/metal-api.yaml @@ -327,6 +327,8 @@ data: {{ .Values.metal_api.filesystemlayouts | nindent 4 }} sizeimageconstraints.yaml: | {{ .Values.metal_api.sizeimageconstraints | nindent 4 }} + size_reservations.yaml: | + {{ .Values.metal_api.size_reservations | nindent 4 }} --- apiVersion: batch/v1 kind: Job @@ -370,6 +372,7 @@ spec: /metalctl network ip apply -f /masterdata/ip.yaml /metalctl filesystemlayout apply -f /masterdata/filesystemlayouts.yaml /metalctl size imageconstraint apply -f /masterdata/sizeimageconstraints.yaml + /metalctl size reservation apply -f /masterdata/size_reservations.yaml volumeMounts: - name: masterdata mountPath: /masterdata @@ -410,6 +413,8 @@ spec: path: filesystemlayouts.yaml - key: sizeimageconstraints.yaml path: sizeimageconstraints.yaml + - key: size_reservations.yaml + path: size_reservations.yaml --- apiVersion: batch/v1 kind: Job diff --git a/charts/metal-control-plane/values.yaml b/charts/metal-control-plane/values.yaml index 2a138ed..6f936d2 100644 --- a/charts/metal-control-plane/values.yaml +++ b/charts/metal-control-plane/values.yaml @@ -111,6 +111,7 @@ metal_api: projects: "[]" filesystemlayouts: "[]" sizeimageconstraints: "[]" + size_reservations: "[]" s3: enabled: false address: ""