client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalKubeconfigClient

func NewInternalKubeconfigClient(ctx context.Context, c ctrlruntimeclient.Client, kubeconfig *operatorv1alpha1.Kubeconfig, cluster logicalcluster.Name, scheme *runtime.Scheme) (ctrlruntimeclient.Client, error)

NewInternalKubeconfigClient returns a kube client for a Kubeconfig that allows the kcp-operator to access the backend with elevated permissions. For Kubeconfigs pointing directly towards any type of shard, the client will also directly connect to that shard, but for Kubeconfigs using a FrontProxy, the client will instead use the operator-internal front-proxy (which specifically does not drop groups/permissions).

func NewRootShardClient

NewRootShardClient returns a new client for talking to the kcp root shard service directly.

func NewRootShardProxyClient

func NewRootShardProxyClient(ctx context.Context, c ctrlruntimeclient.Client, rootShard *operatorv1alpha1.RootShard, cluster logicalcluster.Name, scheme *runtime.Scheme) (ctrlruntimeclient.Client, error)

NewRootShardClient returns a new client that connects to the operator's internal front-proxy.

func NewShardClient

NewShardClient returns a new client for talking to a kcp shard service directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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