identity

package
v0.33.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 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 GenerateIdentitySecret

func GenerateIdentitySecret(ctx context.Context, namespace, name string) (*corev1.Secret, error)

GenerateIdentitySecret creates a Kubernetes Secret containing a randomly generated identity key used for APIExport identity.

The secret will be created in the given namespace with the provided name. The identity key is stored in StringData under apisv1alpha1.SecretKeyAPIExportIdentity.

A warning is logged if key generation takes longer than 100ms.

func IdentityHash

func IdentityHash(secret *corev1.Secret) (string, error)

IdentityHash computes a SHA-256 hash of the identity key stored in the given Secret.

The identity key is expected to be present in secret.Data under apisv1alpha1.SecretKeyAPIExportIdentity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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