瀏覽代碼

HPCC-27210 Allow cost rate to be set at component level

Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.com>
Shamser Ahmed 3 年之前
父節點
當前提交
1d8384e668
共有 1 個文件被更改,包括 20 次插入1 次删除
  1. 20 1
      helm/hpcc/values.schema.json

+ 20 - 1
helm/hpcc/values.schema.json

@@ -274,7 +274,7 @@
           "type": "string"
         },
         "cost": {
-          "description": "resource cost",
+          "description": "default resource cost",
           "type": "object",
           "properties": {
             "currencyCode": {
@@ -576,6 +576,16 @@
     "resources": {
       "type": "object"
     },
+    "componentCost": {
+      "description": "component level costs",
+      "type": "object",
+      "properties": {
+        "perCpu": {
+          "description": "cost of a single cpu",
+          "type": "number"
+        }
+      }
+    },
     "memory": {
       "type": "object",
       "properties": {
@@ -1035,6 +1045,9 @@
         },
         "resources": {
           "$ref": "#/definitions/resources"
+        },
+        "cost": {
+          "$ref" : "#/definitions/componentCost"
         }
       }
     },
@@ -1172,6 +1185,9 @@
         },
         "jobMemory": {
           "$ref": "#/definitions/memory"
+        },
+        "cost": {
+          "$ref" : "#/definitions/componentCost"
         }
       }
     },
@@ -2011,6 +2027,9 @@
         "eclAgentResources": {
           "$ref": "#/definitions/resources"
         },
+        "cost": {
+          "$ref" : "#/definitions/componentCost"
+        },
         "expert": {
           "description": "Custom internal options usually reserved for internal testing",
           "type": "object"