Documentation
¶
Index ¶
- Constants
- func ExpiryTimeProxyCA(ctx context.Context, c client.Client, hcluster *hyperv1.HostedCluster) (*time.Time, error)
- func LoadCABundle(configMap corev1.ConfigMap) ([]*x509.Certificate, error)
- func ValidateProxyCAValidity(ctx context.Context, c client.Client, hcluster *hyperv1.HostedCluster) error
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.
Click to show internal directories.
Click to hide internal directories.