proxy

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyCAConfigMapKey = "ca-bundle.crt"
)

Variables

This section is empty.

Functions

func ExpiryTimeProxyCA

func ExpiryTimeProxyCA(ctx context.Context, c client.Client, hcluster *hyperv1.HostedCluster) (*time.Time, error)

ExpiryTimeProxyCA loads the CA bundle for the hosted cluster and finds the earliest expiring certificate time. Returns the time.Time in UTC format.

func LoadCABundle

func LoadCABundle(configMap corev1.ConfigMap) ([]*x509.Certificate, error)

LoadCABundle loads the CA bundle from a ConfigMap.

func ValidateProxyCAValidity

func ValidateProxyCAValidity(ctx context.Context, c client.Client, hcluster *hyperv1.HostedCluster) error

ValidateProxyCAValidity loads the CA bundle for the hosted cluster and verifies the contained certificates are still valid. Returns nil if valid, error if invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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