cachedclient

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cachedclient contains utility methods to create a new controller runtime client with cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCachedClient

func GetCachedClient(ctx context.Context, scheme *runtime.Scheme) (client.Client, error)

GetCachedClient returns a controller runtime client with the cache initialized only for the resources added to the scheme. The necessary rest.Config is generated inside this function.

func GetCachedClientWithConfig

func GetCachedClientWithConfig(ctx context.Context,
	scheme *runtime.Scheme, conf *rest.Config, clientCache cache.Cache) (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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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