feat: add ability to set shm-size property

This doesn't yet manage process volumes, but the scaffolding is there to allow interacting with the property.
This commit is contained in:
Jose Diaz-Gonzalez committed 2025-03-06 22:48:49 -05:00
1 parent 52c05558f9
commit 888d1d4bf3
4 files changed
+41 -6

No files matched your search

+17
View File
@@ -1227,6 +1227,23 @@ func getComputedRollbackOnFailure(appName string) string {
return rollbackOnFailure
}
func getShmSize(appName string) string {
return common.PropertyGetDefault("scheduler-k3s", appName, "shm-size", "")
}
func getGlobalShmSize() string {
return common.PropertyGetDefault("scheduler-k3s", "--global", "shm-size", "")
}
func getComputedShmSize(appName string) string {
shmSize := getShmSize(appName)
if shmSize == "" {
shmSize = getGlobalShmSize()
}
return shmSize
}
func getGlobalGlobalToken() string {
return common.PropertyGet("scheduler-k3s", "--global", "token")
}