Skip to content

Commit

Permalink
Adapt to latest size reservations API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Sep 25, 2024
1 parent 9de7b22 commit 6682fe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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 6682fe7

Please sign in to comment.