resource

package
v0.0.0-...-6d33011 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func NewBuilder(restConfig *rest.Config) *resource.Builder

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.

Jump to

Keyboard shortcuts

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