Documentation
¶
Index ¶
- func NewInternalKubeconfigClient(ctx context.Context, c ctrlruntimeclient.Client, ...) (ctrlruntimeclient.Client, error)
- func NewRootShardClient(ctx context.Context, c ctrlruntimeclient.Client, ...) (ctrlruntimeclient.Client, error)
- func NewRootShardProxyClient(ctx context.Context, c ctrlruntimeclient.Client, ...) (ctrlruntimeclient.Client, error)
- func NewShardClient(ctx context.Context, c ctrlruntimeclient.Client, shard *operatorv1alpha1.Shard, ...) (ctrlruntimeclient.Client, error)
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 ¶
func NewRootShardClient(ctx context.Context, c ctrlruntimeclient.Client, rootShard *operatorv1alpha1.RootShard, cluster logicalcluster.Name, scheme *runtime.Scheme) (ctrlruntimeclient.Client, error)
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 ¶
func NewShardClient(ctx context.Context, c ctrlruntimeclient.Client, shard *operatorv1alpha1.Shard, cluster logicalcluster.Name, scheme *runtime.Scheme) (ctrlruntimeclient.Client, error)
NewShardClient returns a new client for talking to a kcp shard service directly.
Types ¶
This section is empty.