clients

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package clients contains utility methods to create and manage clients with custom features.

Package clients contains utility methods to create and manage clients with custom features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedClientWithConfig

func GetCachedClientWithConfig(ctx context.Context,
	scheme *runtime.Scheme, mapper meta.RESTMapper, conf *rest.Config, cacheOptions *ctrlcache.Options) (client.Client, error)

GetCachedClientWithConfig returns a controller runtime client with the cache initialized only for the resources added to the scheme. The necessary rest.Config is passed as third parameter, it must not be nil.

func Patch

func Patch(patch any) client.Patch

Patch returns a client.Patch object to perform a server side apply operation, associated with the given configuration. The argument must be a pointer to an *ApplyConfiguration object (e.g., PodApplyConfiguration).

Types

This section is empty.

Jump to

Keyboard shortcuts

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