injection

package
v0.0.0-...-d7985ca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(ctx context.Context) *rest.Config

func GetControllerName

func GetControllerName(ctx context.Context) string

func GetNamespacedName

func GetNamespacedName(ctx context.Context) types.NamespacedName

func GetOptions

func GetOptions(ctx context.Context) options.Options

func WithConfig

func WithConfig(ctx context.Context, config *rest.Config) context.Context

func WithControllerName

func WithControllerName(ctx context.Context, name string) context.Context

func WithNamespacedName

func WithNamespacedName(ctx context.Context, namespacedname types.NamespacedName) context.Context

func WithOptions

func WithOptions(ctx context.Context, opts options.Options) context.Context

func WithSettingsOrDie

func WithSettingsOrDie(ctx context.Context, kubernetesInterface kubernetes.Interface, settings ...settings.Injectable) context.Context

WithSettingsOrDie injects the settings into the context for all configMaps passed through the registrations NOTE: Settings are resolved statically into the global context.Context at startup. This was changed from updating them dynamically at runtime due to the necessity of having to build logic around re-queueing to ensure that settings are properly reloaded for things like feature gates

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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