kubernetes

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(clusterName string) (*kubernetes.Clientset, error)

func CreateNamespace

func CreateNamespace(client *kubernetes.Clientset, namespace string) error

func CreateSecret

func CreateSecret(client *kubernetes.Clientset, secretRef, namespace string, secrets map[string]string, labels map[string]string) error

func CreateUpdateIngress

func CreateUpdateIngress(client *kubernetes.Clientset, serviceConfig *model.ServiceConfig, serviceName, namespace string) error

func CreateUpdateService

func CreateUpdateService(client *kubernetes.Clientset, serviceDefinition *model.ServiceDefinition, namespace string) error

func GetConfig

func GetConfig(clusterName string) (*rest.Config, error)

func UpsertDeployment added in v0.0.5

func UpsertDeployment(client *kubernetes.Clientset, serviceDefinition *model.ServiceDefinition, serviceConfig *model.ServiceConfig, namespace, deployVersion, dockerRegistry string) error

func WatchDeployment added in v0.0.5

func WatchDeployment(ctx context.Context, client *kubernetes.Clientset, namespace, deploymentName string) error

Types

type UpsertCommand added in v0.0.5

type UpsertCommand struct {
	Create func() error
	Update func() error
}

func (*UpsertCommand) Do added in v0.0.5

func (u *UpsertCommand) Do() (err error)

Jump to

Keyboard shortcuts

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