apply

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(client client.Client) kube.ApplyOption

WithClient specifies the Kubernetes API Client that is uses for running all cluster operations for ApplyObject.

Note that ApplyObject requires a client and tries different configuration points to locate it. However, it does not fall back to a default client.

func WithCodec

func WithCodec(codec runtime.Codec) kube.ApplyOption

WithCodec configures apply with the specified codec for serializing and deserializing objects.

By default it uses the `UnstructuredJSONScheme` codec.

func WithContext

func WithContext(ctx context.Context) kube.ApplyOption

WithContext configures apply with the logger and the client from the context.

func WithLogger

func WithLogger(logger logr.Logger) kube.ApplyOption

WithLogger configures apply with the specified logger.

By defaults all logs are discarded.

func WithManager

func WithManager(manager manager.Manager) kube.ApplyOption

WithContext configures apply with the client, scheme, and logger from the manager.

This is a convenient way for configuring apply.

func WithScheme

func WithScheme(scheme *runtime.Scheme) kube.ApplyOption

WithScheme configures apply with the specified scheme for looking up Go types from resource kind and API version.

By defaults the global Scheme is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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