seal-io / walrus

Walrus is an open-source application management platform based on IaC tools including OpenTofu, Terraform and others. It helps platform engineers build golden paths for developers and empowers developers with self-service capabilities.
Apache License 2.0
427 stars 48 forks source link

Resource creation fails when the template contains a variable of type map(any): invalid map_any: value must be an object #2001

Closed Finenyaco closed 9 months ago

Finenyaco commented 9 months ago

Describe the bug

Resource creation fails when the template contains a variable of type map(any).

Steps to reproduce

  1. Add a template with source https://github.com/unitong/test-upgrade.
  2. Using this template to create a resource.
  3. Configure Map Any as below and save.
image

Result

  1. Failed to create: invalid variables: violate ui schema: invalid map_any: value must be an object.

    image
  2. Check the post api request.

    image
  3. Check the ui schema.

    image

Expected behavior

Create successfully.

Environment

Additional context Add any other context about the problem here.

Finenyaco commented 9 months ago

Environment

Test Result: pass