kubeconfiggen

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSANameOrNamespaceEmpty = errors.New("name or namespace in service account reference must not be empty")
	ErrRestConfigNil          = errors.New("rest config must not be nil")
	ErrExpirationInvalid      = errors.New("must not specify a duration less than 10 minutes")
)

Functions

This section is empty.

Types

type Default

type Default struct{}

func (*Default) ForServiceAccount

func (*Default) ForServiceAccount(
	ctx context.Context,
	cfg *rest.Config,
	svcAccRef corev1beta1.ServiceAccountReference,
	expiration time.Duration,
) (*clientcmdapi.Config, *time.Time, error)

type Generator

type Generator interface {
	ForServiceAccount(
		ctx context.Context,
		cfg *rest.Config,
		svcAccRef corev1beta1.ServiceAccountReference,
		expiration time.Duration,
	) (*clientcmdapi.Config, *time.Time, error)
}

Jump to

Keyboard shortcuts

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