Documentation
¶
Index ¶
- type Client
- func (c *Client) ApplyManifests(ctx context.Context, manifests []byte) error
- func (c *Client) ApplySecret(ctx context.Context, ns, name string, values map[string]string) error
- func (c *Client) ApplySecretData(ctx context.Context, ns, name string, data map[string][]byte) error
- func (c *Client) DeleteJob(ctx context.Context, ns, name string) error
- func (c *Client) EnsureNamespace(ctx context.Context, name string) error
- func (c *Client) HasDefaultStorageClass(ctx context.Context) (bool, error)
- func (c *Client) IngressHosts(ctx context.Context) ([]string, error)
- func (c *Client) IsClusterAdmin(ctx context.Context) (bool, error)
- func (c *Client) JobDiagnostics(ctx context.Context, ns, name string) string
- func (c *Client) LoadBalancerAddress(ctx context.Context, ns string) (string, error)
- func (c *Client) SecretValue(ctx context.Context, ns, name, key string) (string, error)
- func (c *Client) StreamLogs(ctx context.Context, ns, pod string, w io.Writer) error
- func (c *Client) WaitForJob(ctx context.Context, ns, name string) (bool, error)
- func (c *Client) WaitForJobPod(ctx context.Context, ns, job string) (string, error)
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 (*Client) ApplyManifests ¶
ApplyManifests server-side applies every document of a multi-document YAML stream.
func (*Client) ApplySecret ¶
ApplySecret uses server-side apply on .data so keys dropped between runs are removed.
func (*Client) ApplySecretData ¶
func (*Client) DeleteJob ¶
DeleteJob removes a previous install Job (Jobs are immutable and a finished one never re-runs).
func (*Client) EnsureNamespace ¶
func (*Client) HasDefaultStorageClass ¶
HasDefaultStorageClass reports whether a StorageClass is marked as the cluster default.
func (*Client) IsClusterAdmin ¶
IsClusterAdmin checks the rights the installer Job needs (it binds cluster-admin to its ServiceAccount).
func (*Client) JobDiagnostics ¶
func (*Client) LoadBalancerAddress ¶
LoadBalancerAddress waits until a LoadBalancer Service in ns has an external IP or hostname.
func (*Client) SecretValue ¶
func (*Client) StreamLogs ¶
StreamLogs follows the pod's logs until the pod terminates, reconnecting if the stream drops.
func (*Client) WaitForJob ¶
WaitForJob blocks until the Job reports Complete (true) or Failed (false).