apiexport

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 35 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ControllerName = "kcp-apiexport"

	DefaultIdentitySecretNamespace = "kcp-system"
)

Variables

This section is empty.

Functions

func GenerateIdentitySecret

func GenerateIdentitySecret(ctx context.Context, ns string, apiExportName string) (*corev1.Secret, error)

func IdentityHash

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

func NewController

func NewController(
	kcpClusterClient kcpclientset.ClusterInterface,
	apiExportInformer apisv1alpha1informers.APIExportClusterInformer,
	globalShardInformer corev1alpha1informers.ShardClusterInformer,
	kubeClusterClient kcpkubernetesclientset.ClusterInterface,
	namespaceInformer kcpcorev1informers.NamespaceClusterInformer,
	secretInformer kcpcorev1informers.SecretClusterInformer,
) (*controller, error)

NewController returns a new controller for APIExports.

Types

type APIExport added in v0.8.0

type APIExport = apisv1alpha1.APIExport

type APIExportSpec added in v0.8.0

type APIExportSpec = apisv1alpha1.APIExportSpec

type APIExportStatus added in v0.8.0

type APIExportStatus = apisv1alpha1.APIExportStatus

type CommitFunc added in v0.8.0

type CommitFunc = func(context.Context, *Resource, *Resource) error

type Patcher added in v0.10.0

type Resource added in v0.8.0

Jump to

Keyboard shortcuts

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