From 150402200691e7d4b155eb384144c2d65c7e2a58 Mon Sep 17 00:00:00 2001 From: iben Date: Mon, 24 Feb 2025 10:45:21 +0200 Subject: [PATCH] [src] Fix rightsizing rule matching examples --- ...htsizingNamespacesRuleMatchingRequest.yaml | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/api/services/ocean/rightsizing/schemas/oceanRightsizingNamespacesRuleMatchingRequest.yaml b/api/services/ocean/rightsizing/schemas/oceanRightsizingNamespacesRuleMatchingRequest.yaml index 725b44d95..9f8916700 100644 --- a/api/services/ocean/rightsizing/schemas/oceanRightsizingNamespacesRuleMatchingRequest.yaml +++ b/api/services/ocean/rightsizing/schemas/oceanRightsizingNamespacesRuleMatchingRequest.yaml @@ -19,7 +19,7 @@ properties: type: string description: The name of the workload example: kube-proxy - type: + workloadType: type: string description: The type of the workload example: Deployment @@ -27,13 +27,14 @@ properties: type: string description: The regex for the workload name example: spotinst* - example: [{namespacesName: "kube-system", - workloads: [ - { - name: "kube-proxy", - type: "Deployment" - }, - { - regexName: "spotinst*", - type: "Deployment" - }]}] \ No newline at end of file + example: + [ + { + "name": "kube-proxy", + "workloadType": "DaemonSet" + }, + { + "regexName": "spotinst*", + "workloadType": "Deployment" + } + ] \ No newline at end of file