volterraedge / terraform-provider-volterra

Volterra's Public Terraform Provider
https://volterra.io
Apache License 2.0
14 stars 11 forks source link

resource volterra_alert_policy - Field spec.routes.matcher.custom.alertlabel.matcher_type should be not nil #257

Closed ymadhumohanreddi closed 1 month ago

ymadhumohanreddi commented 4 months ago

The terraform resource "volterra_alert_policy" failing when configuring "alert policy -> routes -> custom" as part of the code

resource volterra_alert_policy:

routes {
    send = true
    custom {
      alertlabel {
        name = "site"
        value {
          exact_match = "site-prod"
        }
      }
    }
  }

terraform plan is ok: terraform apply is throwing error

  status code 400, body {"code":3,"details":[{"code":"UNKNOWN","details":"items routes: element 0: items alertlabel: value for element with key site: Field spec.routes.matcher.custom.alertlabel.matcher_type fails rule ves.io.schema.rules.message.required_oneof constraint true due to value \u003cnil\u003e","timestamp":""}],"message":"Field spec.routes.matcher.custom.alertlabel.matcher_type should be not nil, got nil in request."}
SanjeetKr7 commented 1 month ago

@ymadhumohanreddi This issue is already fixed.