kube

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *rest.Config) (*Client, error)

func (*Client) ApplyManifests

func (c *Client) ApplyManifests(ctx context.Context, manifests []byte) error

ApplyManifests server-side applies every document of a multi-document YAML stream.

func (*Client) ApplySecret

func (c *Client) ApplySecret(ctx context.Context, ns, name string, values map[string]string) error

ApplySecret uses server-side apply on .data so keys dropped between runs are removed.

func (*Client) ApplySecretData

func (c *Client) ApplySecretData(ctx context.Context, ns, name string, data map[string][]byte) error

func (*Client) DeleteJob

func (c *Client) DeleteJob(ctx context.Context, ns, name string) error

DeleteJob removes a previous install Job (Jobs are immutable and a finished one never re-runs).

func (*Client) EnsureNamespace

func (c *Client) EnsureNamespace(ctx context.Context, name string) error

func (*Client) HasDefaultStorageClass

func (c *Client) HasDefaultStorageClass(ctx context.Context) (bool, error)

HasDefaultStorageClass reports whether a StorageClass is marked as the cluster default.

func (*Client) IngressHosts

func (c *Client) IngressHosts(ctx context.Context) ([]string, error)

func (*Client) IsClusterAdmin

func (c *Client) IsClusterAdmin(ctx context.Context) (bool, error)

IsClusterAdmin checks the rights the installer Job needs (it binds cluster-admin to its ServiceAccount).

func (*Client) JobDiagnostics

func (c *Client) JobDiagnostics(ctx context.Context, ns, name string) string

func (*Client) LoadBalancerAddress

func (c *Client) LoadBalancerAddress(ctx context.Context, ns string) (string, error)

LoadBalancerAddress waits until a LoadBalancer Service in ns has an external IP or hostname.

func (*Client) SecretValue

func (c *Client) SecretValue(ctx context.Context, ns, name, key string) (string, error)

func (*Client) StreamLogs

func (c *Client) StreamLogs(ctx context.Context, ns, pod string, w io.Writer) error

StreamLogs follows the pod's logs until the pod terminates, reconnecting if the stream drops.

func (*Client) WaitForJob

func (c *Client) WaitForJob(ctx context.Context, ns, name string) (bool, error)

WaitForJob blocks until the Job reports Complete (true) or Failed (false).

func (*Client) WaitForJobPod

func (c *Client) WaitForJobPod(ctx context.Context, ns, job string) (string, error)

WaitForJobPod returns the Job's pod once it has left Pending, failing fast on image/config errors.

Jump to

Keyboard shortcuts

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