apiexport

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 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 InstallIndexers added in v0.25.0

func InstallIndexers(apiExportInformer apisv1alpha1informers.APIExportClusterInformer)

InstallIndexers adds the additional indexers that this controller requires to the informers.

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