api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadingRules

func LoadingRules() (*clientcmd.ClientConfigLoadingRules, error)

func NewScheme

func NewScheme() (*runtime.Scheme, error)

NewScheme returns a *runtime.Scheme with all the relevant types registered.

Types

type Client

type Client struct {
	runtimeclient.WithWatch
	Config         *rest.Config
	KubeconfigPath string
	Namespace      string
}

func New

func New(apiClusterContext, namespace string) (*Client, error)

New returns a new Client by loading a kubeconfig with the supplied context and namespace. The kubeconfig is discovered like this: * KUBECONFIG environment variable pointing at a file * $HOME/.kube/config if exists

func (*Client) GetConnectionSecret

func (c *Client) GetConnectionSecret(ctx context.Context, mg resource.Managed) (*corev1.Secret, error)

func (*Client) Name

func (c *Client) Name(name string) types.NamespacedName

Directories

Path Synopsis
login module

Jump to

Keyboard shortcuts

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