File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
releases/R2025a/matlab-prodserver/templates Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Chart validation checks:
2
+
3
+ { {- define " checkConditionReplicaCount" -} }
4
+ { {- if and (gt (int .Values.deploymentSettings.replicaCount) 1) .Values.matlabProductionServerSettings.autoDeploy.archivesApi.createPVC } }
5
+ { {- if ne .Values.matlabProductionServerSettings.autoDeploy.archivesApi.accessMode " ReadWriteMany" } }
6
+ { {- fail " Configuring multiple replicas requires PVC with ReadWriteMany Access-Mode." } }
7
+ { {- end } }
8
+ { {- end } }
9
+ { {- end } }
10
+
11
+ { {- define " checkConditionVolumeType" -} }
12
+ { {- if .Values.matlabProductionServerSettings.autoDeploy.archivesApi.enabled } }
13
+ { {- $volumeType := .Values.matlabProductionServerSettings.autoDeploy.volumeType } }
14
+ { {- if and (ne $volumeType " pvc" ) (ne $volumeType " empty" ) } }
15
+ { {- fail " Configuring archives API is only supported with pvc or empty volume types." } }
16
+ { {- end } }
17
+ { {- end } }
18
+ { {- end } }
Original file line number Diff line number Diff line change 1
1
#
2
2
# MATLAB Production Server instance
3
3
#
4
+ {{- include "checkConditionVolumeType" . }}
5
+ {{- include "checkConditionReplicaCount" . }}
6
+
4
7
apiVersion : apps/v1
5
8
kind : Deployment
6
9
metadata :
You can’t perform that action at this time.
0 commit comments