package negotiate
import "k8s.io/apiserver/pkg/server/statusz/negotiate"
Index ¶
Types ¶
type StatuszEndpointRestrictions ¶
type StatuszEndpointRestrictions struct {
RecognizedStructuredKinds map[schema.GroupVersionKind]bool
}
StatuszEndpointRestrictions implements content negotiation restrictions for statusz. It is used to validate and restrict which GroupVersionKinds are allowed for structured responses.
func (StatuszEndpointRestrictions) AllowsMediaTypeTransform ¶
func (s StatuszEndpointRestrictions) AllowsMediaTypeTransform(mimeType string, mimeSubType string, gvk *schema.GroupVersionKind) bool
AllowsMediaTypeTransform checks if the provided GVK is supported for structured statusz responses.
func (StatuszEndpointRestrictions) AllowsServerVersion ¶
func (StatuszEndpointRestrictions) AllowsServerVersion(s string) bool
func (StatuszEndpointRestrictions) AllowsStreamSchema ¶
func (StatuszEndpointRestrictions) AllowsStreamSchema(s string) bool
Source Files ¶
negotiation.go
- Version
- v0.36.0 (latest)
- Published
- Apr 22, 2026
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 4 days ago –
Tools for package owners.