clients

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviderConfigRC

func GetProviderConfigRC(ctx context.Context, cr resource.Managed, kube client.Client) (*rest.Config, error)

GetProviderConfigRC gets the provider config secret, and parses it into a rest.Config

func GetSecretData

func GetSecretData(ctx context.Context, kube client.Client, nn types.NamespacedName) (map[string][]byte, error)

GetSecretData extracts arbitrary data from a Kubernetes secret

func NewKubeClient

func NewKubeClient(config *rest.Config) (client.Client, error)

NewKubeClient returns a kubernetes client given a secret with connection information.

func NewRestConfig

func NewRestConfig(kubeconfig []byte) (*rest.Config, error)

NewRestConfig returns a rest config given a secret with connection information.

Types

This section is empty.

Directories

Path Synopsis
database
olm

Jump to

Keyboard shortcuts

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