kubeprovider

package
v0.0.0-...-496005d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	client.Client
}

func New

func New(client client.Client) *Client

func (*Client) EnsureCreate

func (c *Client) EnsureCreate(ctx context.Context, desired client.Object) error

EnsureCreate creates the object if not exist, some of the objects can't be patched directly like (service, secrets). In case when patching service object for example, API server returns an error that clusterIP is immutable. So we ensure that it's always created and exists and is not patched. Will revisit both these to define what all users can change in an existing cluster.

func (*Client) EnsurePatch

func (c *Client) EnsurePatch(ctx context.Context, object, desired client.Object) error

EnsurePatch creates if not exist, else will patch the existing object. Its used for deployments, statefulsets to provide configurability for flags.

Jump to

Keyboard shortcuts

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