Documentation ¶
Overview ¶
Package secretstorage implements a storage backend for resources implementing apiserver-runtime's resource.Object interface. The storage backend stores the object in a kubernetes secret. The secret is named after the object and the object is stored in the secret's data field. Warning: Not all features of the storage backend are implemented. Missing features: - Field selectors - Label selectors - you tell me UID, CreationTimestamp and ResourceVersion are taken from the secret's metadata. UID are namespaced UUIDs, generated from the object's UID and a fixed random UUID as the namespace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatusSubResourceRegisterer ¶
func NewStatusSubResourceRegisterer(o status.ObjectWithStatusSubResource) status.ObjectWithStatusSubResource
NewStatusSubResourceRegisterer returns a helper type to register a status subresource for a resource.
builder.APIServer. WithResourceAndHandler(&Resource{}, storage). WithResourceAndHandler(StatusSubResourceRegisterer{&Resource{}}, storage).
Types ¶
type ScopedStandardStorage ¶
type ScopedStandardStorage interface { rest.StandardStorage rest.Scoper }
func NewStorage ¶
func NewStorage(object resource.Object, cc client.WithWatch, backingNS string) (ScopedStandardStorage, error)
NewStorage creates a new storage for the given object.