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:
4 files changed
+41
-6
No files matched your search
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user