Skip to content

Commit

Permalink
Adapt to latest size reservations API. (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Sep 30, 2024
1 parent 9de7b22 commit 18c66f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/metal-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions charts/metal-control-plane/templates/metal-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions charts/metal-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ metal_api:
projects: "[]"
filesystemlayouts: "[]"
sizeimageconstraints: "[]"
size_reservations: "[]"
s3:
enabled: false
address: ""
Expand Down

0 comments on commit 18c66f6

Please sign in to comment.