kubernetes

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package kubernetes provides helpers for the Kubernetes API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRetryableError

func IsRetryableError(err error) bool

IsRetryableError returns true if this Kubernetes API should be retried.

func NewDialer

func NewDialer() *connrotation.Dialer

NewDialer creates new custom dialer.

Types

type Client

type Client struct {
	*kubernetes.Clientset
	// contains filtered or unexported fields
}

Client wraps the Kubernetes API client providing a way to force close all connections.

func NewForConfig

func NewForConfig(config *rest.Config) (*Client, error)

NewForConfig initializes and returns a client using the provided config.

func (*Client) Close

func (h *Client) Close() error

Close all connections.

Directories

Path Synopsis
Package compatibility provides some a way to enable/disable features based on Kubernetes version.
Package compatibility provides some a way to enable/disable features based on Kubernetes version.
Package manifests provides support for syncing Talos bootstrap manifests.
Package manifests provides support for syncing Talos bootstrap manifests.
Package upgrade provides some functions related to Kubernetes upgrades.
Package upgrade provides some functions related to Kubernetes upgrades.

Jump to

Keyboard shortcuts

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