kube-openapi
kube-openapi copied to clipboard
Kubernetes OpenAPI spec generation & serving
``` goos: darwin goarch: arm64 pkg: k8s.io/kube-openapi/pkg/spec3 BenchmarkSharedParamsDeserialize/apiv1spec.json-8 98 12138503 ns/op 12245326 B/op 60819 allocs/op BenchmarkSharedParamsDeserialize/apiv1spec.sharedparams.json-8 100 10520641 ns/op 9892803 B/op 68528 allocs/op BenchmarkSharedParamsDeserialize/appsv1spec.json-8 200 5920978 ns/op 5708092 B/op 27386...
Bumps github.com/NYTimes/gziphandler to the latest tag
Adds dependabot to keep Go and GitHub Actions dependencies up to date.
This extends current marker syntax to support extending the subschemas of a struct inside `items`, `properties`, or `additionalProperties`. This is useful in cases like declarative validation for native types where...
Adds new marker comments to specify whether the kind is namespace or cluster scoped using e.g.: `+k8s:validation:scope>Namespaced`
We use dependabot to keep our dependencies up to date and it seems like it's struggling with dependencies that don't have tags/releases. Would it be possible to start creating tags?...
https://github.com/kubernetes/kube-openapi/blob/78281498afbbfb6fdabe43b8b6a7898f75892c44/pkg/generators/openapi_test.go#L1618 This shows an example of generated code: https://github.com/kubernetes/kube-openapi/blob/78281498afbbfb6fdabe43b8b6a7898f75892c44/pkg/generators/openapi_test.go#L1655-L1662 However if we use this code to generate CRD it fails validation. The error message is like: ``` CustomResourceDefinition.apiextensions.k8s.io "..." is...
Fixes #395 This makes sure that the default value is part of the enum values, which makes sense. We shouldn't have a default that doesn't validate. There are probably a...