kubernetes

package
v0.0.0-...-34c5bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubernetes

type Kubernetes struct {
	Service *config.Service
	Target  Target
}

Kubernetes is a deployer for k8s

func (*Kubernetes) Deploy

func (k *Kubernetes) Deploy(revision string) error

Deploy builds and applies a kubernetes manifest for the service

func (*Kubernetes) Revision

func (k *Kubernetes) Revision() (string, error)

Revision returns the currently deployed revision from the k8s annotation

type Target

type Target interface {
	Name() string
	Host() string
	KubeContext() string
	Namespace() string
	DockerRegistry() string
	DockerRepository() string
}

Target is the interface implemented by a Kubernetes target

Jump to

Keyboard shortcuts

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