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
429 stars 44 forks source link

Add validation when importing an incomplete YAML file prompts to create resources #2256

Open Finenyaco opened 6 months ago

Finenyaco commented 6 months ago

Describe the bug

Importing an incomplete YAML file prompts successful creation

Steps to reproduce

  1. Import a yaml file to create a resource as shown below:
attributes:
    containers:
    - image: nginx
      envs:
      - name: test
        value: ${res.res-c.address}

Result

https://github.com/seal-io/walrus/assets/26084756/604986ef-f402-4976-b611-6d1fe02050b1

Expected behavior

Environment

Additional context Add any other context about the problem here.