client

package
v0.0.0-...-beceb34 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveCRDs deprecated

func HaveCRDs(client clientset.Interface, expectedCRDs []string) error

Deprecated: Use https://github.com/stolostron/library-go/pkg/apis/meta/v1/crd#HasCRDs HaveCRDs returns an error if all provided CRDs are not installed client: the client to use expectedCRDs: The list of expected CRDS to find

func HaveDeploymentsInNamespace deprecated

func HaveDeploymentsInNamespace(client kubernetes.Interface,
	namespace string,
	expectedDeploymentNames []string,
) error

Deprecated: Use https://github.com/stolostron/library-go/pkg/apis/meta/v1/deployment#HaveDeploymentsInNamespace HaveDeploymentsInNamespace returns an error if all provided deployment are not installed in the given namespace client: the client to use namespace: The namespace to search in expectedDeploymentNames: The deployment names to search

func HaveServerResources

func HaveServerResources(client clientset.Interface, expectedAPIGroups []string) error

HaveServerResources returns an error if all provided APIGroups are not installed client: the client to use expectedAPIGroups: The list of expected APIGroups

func NewClient

func NewClient(url, kubeconfig, context string, options client.Options) (client.Client, error)

url: The url of the server kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information context: The context to connect to

func NewDefaultClient

func NewDefaultClient(kubeconfig string, options client.Options) (client.Client, error)

NewDefaultClient returns a client.Client for the current-context in kubeconfig kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information

func NewDefaultKubeClient

func NewDefaultKubeClient(kubeconfig string) (kubernetes.Interface, error)

NewDefaultKubeClient returns a kubernetes.Interface for the current-context in kubeconfig kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information

func NewDefaultKubeClientAPIExtension

func NewDefaultKubeClientAPIExtension(kubeconfig string) (clientset.Interface, error)

NewDefaultKubeClientAPIExtension returns a clientset.Interface for the current-context in kubeconfig kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information

func NewDefaultKubeClientDynamic

func NewDefaultKubeClientDynamic(kubeconfig string) (dynamic.Interface, error)

NewDefaultKubeClientDynamic returns a dynamic.Interface for the current-context in kubeconfig kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information

func NewKubeClient

func NewKubeClient(url, kubeconfig, context string) (kubernetes.Interface, error)

NewKubeClient returns a kubernetes.Interface based on the provided url, kubeconfig and context url: The url of the server kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information context: The context to connect to

func NewKubeClientAPIExtension

func NewKubeClientAPIExtension(url, kubeconfig, context string) (clientset.Interface, error)

NewKubeClientAPIExtension returns a clientset.Interface based on the provided url, kubeconfig and context url: The url of the server kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information context: The context to connect to

func NewKubeClientDynamic

func NewKubeClientDynamic(url, kubeconfig, context string) (dynamic.Interface, error)

NewKubeClientDynamic returns a dynamic.Interface based on the provided url, kubeconfig and context url: The url of the server kubeconfig: The path of the kubeconfig, see (../config/config.go#LoadConfig) for more information context: The context to connect to

Types

This section is empty.

Jump to

Keyboard shortcuts

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