shard

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: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kcp-shard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitFunc added in v0.20.0

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

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller watches WorkspaceShards and Secrets in order to make sure every Shard has its URL exposed when a valid kubeconfig is connected to it.

func NewController

func NewController(
	rootKcpClient kcpclientset.ClusterInterface,
	shardInformer corev1alpha1informers.ShardClusterInformer,
) (*Controller, error)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

type Patcher added in v0.20.0

type Resource added in v0.20.0

type Resource = committer.Resource[*ShardSpec, *ShardStatus]

type Shard added in v0.20.0

type Shard = corev1alpha1.Shard

type ShardSpec added in v0.20.0

type ShardSpec = corev1alpha1.ShardSpec

type ShardStatus added in v0.20.0

type ShardStatus = corev1alpha1.ShardStatus

Jump to

Keyboard shortcuts

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