secretstorage

package
v0.33.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL