kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
260 stars 21 forks source link

Validation message #880

Closed jasmingacic closed 1 year ago

jasmingacic commented 1 year ago
# go run main.go deploy -i raw.yaml ❌ failed to parse extension: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go struct field Custom.auth.custom.host of type options.AuthUpstreamHost please refer to https://docs.kusk.io/guides/working-with-extension/
exit status 1
# go run main.go deploy -i raw.yaml ❌ failed to extract operation suboptions: failed to parse extension: error unmarshaling JSON: while decoding JSON: json: unknown field "disabled" please refer to https://docs.kusk.io/guides/working-with-extension/

since this is also used with the validating webhook kubectl should be returning this message as well

# kubectl apply -f sample.yaml 
Error from server: error when creating "sample.yaml": admission webhook "vapi.kb.io" denied the request: spec: x-kusk should be a valid set of options: failed to extract operation suboptions: failed to parse extension: error unmarshaling JSON: while decoding JSON: json: unknown field "disabled" please refer to https://docs.kusk.io/guides/working-with-extension/
netlify[bot] commented 1 year ago

Deploy Preview for kusk-docs-preview canceled.

Name Link
Latest commit e4892b940988c9ef77f211aabb6648187b0fbebc
Latest deploy log https://app.netlify.com/sites/kusk-docs-preview/deploys/634fb66d308c570008d99d6a