envoyproxy / envoyproxy/gateway

Kubeconform can't validate gateway after 1.1.0 changes

オープン
#4,049 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale triage
主要言語
Go
スター
3k
フォーク
864
平均マージ
2日 2時間
マージ済み PR(30日)
140

説明

*Description*:
We validate all of our workloads with kubeconform . It can take custom CDR which we have a script that generates it from finding all the CDR's in our workload directly. This used to work fine, it generated a validation for gateway. With the upgrade of v.1.1.0 it and the addition of https://github.com/envoyproxy/gateway/pull/4020/files#diff-85e94dab8d1c67629c15c4000ac7bcf1eb1a4c55f006ee5afc1d9c6ce69872d1R28-R31. this validation now fails.

When I generate the json validation from the CDR., it misses this. I can verify this is expected by looking at the CDR

https://github.com/envoyproxy/gateway/blob/release/v1.1.0/charts/gateway-helm/crds/gatewayapi-crds.yaml#L1219-L1478

its not in there. I do see it v1beta below, however, that's not what I'm using and it still works when I deploy it. And for some reason that isn't generating it for me either.

Is there some compatibility setup allowing me to use the feature even if it's not supported in the CDR?

[gateway_v1.json](https://github.com/user-attachments/files/16615736/gateway_v1.json)
[gateway_v1beta1.json](https://github.com/user-attachments/files/16615739/gateway_v1beta1.json)

*Repro steps*:
> Include sample requests, environment, etc. All data and inputs
run kubeconform on the deployment yaml files, and select CustomResourceDefinition -schema-location and select the scheme-location

>**Note**: If there are privacy concerns, sanitize the data prior to

*Environment*:
> gateway 1.1.0 proxy whatever comes with it

*Logs*:

stdin - Gateway gateway-envoy is invalid: problem validating schema. Check JSON formatting: jsonschema: '/spec/infrastructure' does not validate with file:///home/runner/work//tools/crd_json_schemas/gateway_v1.json#/properties/spec/properties/infrastructure/additionalProperties: additionalProperties 'parametersRef' not allowed

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。