Skip to content

Commit f90a140

Browse files
committed
R2025a Prerelease: CTF Management API - Initial Commit
1 parent db2b94f commit f90a140

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ The default server configuration properties are stored in a [ConfigMap](https://
174174
175175
176176
## Execute Deployed Functions
177-
To evaluate MATLAB functions deployed on the server, see [Client Programming](https://www.mathworks.com/help/mps/client-programming.html). Starting in R2022a, asynchronous request execution is supported, in addition to existing support for synchronous request execution.
177+
To evaluate MATLAB functions deployed on the server, see [Client Programming](https://www.mathworks.com/help/mps/client-programming.html). Both synchronous and asynchronous request execution are supported.
178178
179179
## Request Enhancements
180180

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,17 @@ 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+
spec:
91+
accessModes:
92+
- ReadWriteOnce
93+
resources:
94+
requests:
95+
storage: {{ .Values.matlabProductionServerSettings.autoDeploy.archivesApi.storage | default "10Gi" | quote }}
96+
{{ end }}
97+

releases/R2025a/matlab-prodserver/templates/mps-2-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ data:
4242
--server-memory-threshold-overflow-action purge_responses
4343
--enable-discovery
4444
--enable-metrics
45+
{{ ternary "--enable-archive-management" "" .Values.matlabProductionServerSettings.autoDeploy.archivesApi.enabled }}
4546
--routes-file ./config/routes.json
4647
{{- if .Values.matlabProductionServerSettings.accessControl.enabled }}
4748
--access-control-provider OAuth2

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ spec:
128128
configMap:
129129
name: matlab-production-server-config
130130
- name: auto-deploy
131-
{{- if eq .Values.matlabProductionServerSettings.autoDeploy.volumeType "hostpath" }}
131+
{{- if .Values.matlabProductionServerSettings.autoDeploy.archivesApi.enabled }}
132+
persistentVolumeClaim:
133+
claimName: "dynamic-auto-deploy"
134+
{{- else if eq .Values.matlabProductionServerSettings.autoDeploy.volumeType "hostpath" }}
132135
hostPath:
133136
path: {{ .Values.matlabProductionServerSettings.autoDeploy.hostpath }}
134137
type: Directory

releases/R2025a/matlab-prodserver/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ global:
2626
matlabProductionServerSettings:
2727
# CTF files are placed here for automatic deployment.
2828
autoDeploy:
29+
# Enable RESTful API for management of CTF 'Deployable Archives'
30+
archivesApi:
31+
enabled: false
32+
storage: "10Gi"
2933
# Inline mount options: hostpath, nfs, pvc, azurefileshare, empty (default)
3034
volumeType: "empty"
3135
# Node mount dir, example: /mnt/share/autodeploy

0 commit comments

Comments
 (0)