Documentation ¶
Index ¶
- func WithClient(client client.Client) kube.ApplyOption
- func WithCodec(codec runtime.Codec) kube.ApplyOption
- func WithContext(ctx context.Context) kube.ApplyOption
- func WithLogger(logger logr.Logger) kube.ApplyOption
- func WithManager(manager manager.Manager) kube.ApplyOption
- func WithScheme(scheme *runtime.Scheme) kube.ApplyOption
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.