kubeshop / kusk-gen

Kusk Gen generates Ingress-controller configurations from your OpenAPI definition
https://kubeshop.github.io/kusk-gen
MIT License
173 stars 12 forks source link

nginx-ingress: CORS and timeouts from suboptions are taken as a whole #90

Closed dobegor closed 3 years ago

dobegor commented 3 years ago

if shouldSplit returns true, the generator will use subOpts.CORS AND subOpts.Timeouts with no regards to why shouldSplit returned true - i.e. even if there were timeout options specified at the path level, the generator would take CORS options from path level (which may be empty, so the global options should be taken instead), and vice-versa.