podcertificate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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 added in v0.2.0

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 added in v0.2.0

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

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

func (*Client) GetCached added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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