Documentation ¶
Index ¶
- func GetClientConfigFromKubeConfigSecret(client kubernetes.Interface, namespace, secretName, clientUserAgent string) (*restclient.Config, error)
- func NewBuilder(restConfig *rest.Config) *resource.Builder
- func NewBuilderFromKubeConfigSecret(client kubernetes.Interface, namespace, secretName, userAgent string) (*resource.Builder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientConfigFromKubeConfigSecret ¶
func GetClientConfigFromKubeConfigSecret(client kubernetes.Interface, namespace, secretName, clientUserAgent string) (*restclient.Config, error)
GetClientConfigFromKubeConfigSecret reads a kubeconfig from the given namespace and secretName and returns a *rest.Config that the given user-agent is added.
func NewBuilder ¶
NewBuilder is a helper function that accepts a rest.Config as an input parameter and returns a resource.Builder instance.
func NewBuilderFromKubeConfigSecret ¶
func NewBuilderFromKubeConfigSecret(client kubernetes.Interface, namespace, secretName, userAgent string) (*resource.Builder, error)
NewBuilder is a helper function that accepts a kubeconfig secret as an input parameter and returns a resource.Builder instance.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.