podcertificate

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKey

PublicKey extracts the subject public key from a PodCertificateRequest.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client selects one served PCR API version for both watches and status updates. Signers use the beta representation internally to retain legacy public keys.

func NewClient

func NewClient(kc kubernetes.Interface) (*Client, error)

NewClient prefers v1 and falls back only when discovery reports it absent.

func (*Client) GetCached

func (c *Client) GetCached(namespace, name string) (*certsv1beta1.PodCertificateRequest, error)

GetCached reads from the owned informer cache and returns the signers' beta representation. Callers must treat the result as read-only, as with a standard lister.

func (*Client) Informer

func (c *Client) Informer() cache.SharedIndexInformer

Informer returns this client's informer, which caches the selected API version. The caller must run it once for all controllers sharing this client.

func (*Client) UpdateStatus

func (c *Client) UpdateStatus(ctx context.Context, pcr *certsv1beta1.PodCertificateRequest) error

UpdateStatus writes through the same API version used by the informer.

Jump to

Keyboard shortcuts

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