kube

package
v0.0.0-...-2ccca0a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*kubernetes.Clientset, error)

func Config

func Config() string

Types

type Kube

type Kube struct {
	Client *kubernetes.Clientset
}

func (*Kube) CreateService

func (k *Kube) CreateService(namespace string, dbEndpoint *provider.DBEndpoint, internalname string, owner *crd.Database) (*v1.Service, error)

CreateService Creates or updates a service in Kubernetes with the new information

func (*Kube) DeleteService

func (k *Kube) DeleteService(namespace string, dbname string) error

func (*Kube) GetSecret

func (k *Kube) GetSecret(namespace string, name string, key string) (string, error)

Jump to

Keyboard shortcuts

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