Skip to content

Commit cec91f3

Browse files
committed
R2025a Prerelease: CTF Management API - updated pvc definition
1 parent a71f4de commit cec91f3

File tree

4 files changed

+8
-21
lines changed

4 files changed

+8
-21
lines changed

releases/R2025a/matlab-prodserver/templates/mps-1-service-ingress.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,3 @@ spec:
8181
path: /api/metrics
8282
{{ end }}
8383

84-
---
85-
{{ if .Values.matlabProductionServerSettings.autoDeploy.archivesApi.enabled }}
86-
apiVersion: v1
87-
kind: PersistentVolumeClaim
88-
metadata:
89-
name: dynamic-auto-deploy
90-
namespace: {{ .Release.Namespace }}
91-
labels:
92-
release: {{ .Release.Name }}
93-
spec:
94-
accessModes:
95-
- ReadWriteOnce
96-
resources:
97-
requests:
98-
storage: {{ .Values.matlabProductionServerSettings.autoDeploy.archivesApi.storage | default "4Gi" | quote }}
99-
{{ end }}
100-

releases/R2025a/matlab-prodserver/templates/mps-3-deployment.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ spec:
101101
resources:
102102
limits:
103103
cpu: "1"
104-
memory: "8Gi"
104+
memory: "4Gi"
105105

106106
volumeMounts:
107107
- name: mcr-root
@@ -129,8 +129,12 @@ spec:
129129
name: matlab-production-server-config
130130
- name: auto-deploy
131131
{{- if .Values.matlabProductionServerSettings.autoDeploy.archivesApi.enabled }}
132+
{{- if ne .Values.matlabProductionServerSettings.autoDeploy.archivesApi.writableStorageClaimName "" }}
132133
persistentVolumeClaim:
133-
claimName: "dynamic-auto-deploy"
134+
claimName: {{ .Values.matlabProductionServerSettings.autoDeploy.archivesApi.writableStorageClaimName }}
135+
{{ else }}
136+
emptyDir: {}
137+
{{- end }}
134138
{{- else if eq .Values.matlabProductionServerSettings.autoDeploy.volumeType "hostpath" }}
135139
hostPath:
136140
path: {{ .Values.matlabProductionServerSettings.autoDeploy.hostpath }}

releases/R2025a/matlab-prodserver/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ matlabProductionServerSettings:
2929
# Enable RESTful API for management of CTF 'Deployable Archives'
3030
archivesApi:
3131
enabled: false
32-
storage: "4Gi"
32+
writableStorageClaimName: ""
3333
# _OR_
3434
# Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
3535
volumeType: "empty"

values-overrides.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ matlabProductionServerSettings:
3333
# Enable RESTful API for management of CTF 'Deployable Archives'
3434
archivesApi: # Since R2025a
3535
enabled: false
36-
storage: "4Gi"
36+
writableStorageClaimName: ""
3737
# _OR_
3838
# Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
3939
volumeType: "empty"

0 commit comments

Comments
 (0)