Skip to content

Unclear error message for invalid clientConfig value for kubedriver #89

@beanallergy

Description

@beanallergy

Describe the bug
When an invalid YAML string is sent as the value of client_config or clientConfig in deployment location properties, no errors were raised after a PUT/POST request to deploymentLocations API. The wrong properties can only be spotted when creating a resource in the faulty location - kubedriver logs throw error code 500 'str' object has no attribute 'get'

To Reproduce
Edit deployment location and in Infrastructure-specific Properties fill in an invalid property.

Expected behavior
There should be some validation and the request shouldn't go through.

Environment

  • Version: 2.0.2
  • Stratoss LM: 2.2.0-x
  • kubedriver: 0.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions