Documentation ¶
Index ¶
- func HaveCRDs(client clientset.Interface, expectedCRDs []string) errordeprecated
- func HaveDeploymentsInNamespace(client kubernetes.Interface, namespace string, ...) errordeprecated
- func HaveServerResources(client clientset.Interface, expectedAPIGroups []string) error
- func NewClient(url, kubeconfig, context string, options client.Options) (client.Client, error)
- func NewDefaultClient(kubeconfig string, options client.Options) (client.Client, error)
- func NewDefaultKubeClient(kubeconfig string) (kubernetes.Interface, error)
- func NewDefaultKubeClientAPIExtension(kubeconfig string) (clientset.Interface, error)
- func NewDefaultKubeClientDynamic(kubeconfig string) (dynamic.Interface, error)
- func NewKubeClient(url, kubeconfig, context string) (kubernetes.Interface, error)
- func NewKubeClientAPIExtension(url, kubeconfig, context string) (clientset.Interface, error)
- func NewKubeClientDynamic(url, kubeconfig, context string) (dynamic.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HaveCRDs
deprecated
Deprecated: Use https://github.com/open-cluster-management/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/open-cluster-management/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 ¶
HaveServerResources returns an error if all provided APIGroups are not installed client: the client to use expectedAPIGroups: The list of expected APIGroups
func NewClient ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.