You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/openapi-spec/swagger.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18477,7 +18477,7 @@
18477
18477
],
18478
18478
"properties": {
18479
18479
"luaScript": {
18480
-
"description": "LuaScript holds the Lua script that is used to extract the desired replica count and resource requirements for each component of the resource.\n\nThe script should implement a function as follows:\n\n```\n luaScript: \u003e\n function GetComponents(desiredObj)\n local components = {}\n\n local jobManagerComponent = {\n name = \"jobmanager\"\n replicas = desiredObj.spec.jobManager.replicas\n }\n table.insert(components, jobManagerComponent)\n\n local taskManagerComponent = {\n name = \"taskmanager\"\n replicas = desiredObj.spec.taskManager.replicas\n }\n table.insert(components, taskManagerComponent)\n\n return components\n end\n```\n\nThe content of the LuaScript needs to be a whole function including both declaration and implementation.\n\nThe parameters will be supplied by the system:\n - desiredObj: the object represents the configuration to be applied\n to the member cluster.\n\nThe function expects one return value:\n - components: the resource requirements for each component.\nThe returned value will be set into a ResourceBinding or ClusterResourceBinding.",
18480
+
"description": "LuaScript holds the Lua script that is used to extract the desired replica count and resource requirements for each component of the resource.\n\nThe script should implement a function as follows:\n\n```\n luaScript: \u003e\n function GetComponents(desiredObj)\n local components = {}\n\n local jobManagerComponent = {\n name = \"jobmanager\",\n replicas = desiredObj.spec.jobManager.replicas\n }\n table.insert(components, jobManagerComponent)\n\n local taskManagerComponent = {\n name = \"taskmanager\",\n replicas = desiredObj.spec.taskManager.replicas\n }\n table.insert(components, taskManagerComponent)\n\n return components\n end\n```\n\nThe content of the LuaScript needs to be a whole function including both declaration and implementation.\n\nThe parameters will be supplied by the system:\n - desiredObj: the object represents the configuration to be applied\n to the member cluster.\n\nThe function expects one return value:\n - components: the resource requirements for each component.\nThe returned value will be set into a ResourceBinding or ClusterResourceBinding.",
0 commit comments