kruize / autotune

Autonomous Performance Tuning for Kubernetes!
Apache License 2.0
152 stars 52 forks source link

Update List Experiments API to accept input JSON as params #1152

Closed khansaad closed 3 months ago

khansaad commented 3 months ago

This PR adds new request body input feature in the listExperiments API. Input can be sent in the form of JSON as shown below to fetch the experiment records from the DB.

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "tfb-qrh-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "kruize/tfb-db:1.15",
                    "container_name": "front-data-platform"
                }
            ]
        }
    ]
}

JIRA: https://issues.redhat.com/browse/KRUIZE-98

chandrams commented 3 months ago

LGTM as PoC code. @chandrams can you please identify test scenarios here

@dinogun @khansaad - Have listed the test scenarios here - https://github.com/kruize/autotune/issues/1160 as these will be implemented in a separate PR.