lube

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

README

lube

Kubernetes deployments without the friction

Deployments

Helm

Put your deployments in a directory with a name containing _helm

Yaml

Put your yaml files in a directory, it will deploy any yaml as kube yaml that are not in a directory with a name containing _helm

As CLI tool

go build -o lube cmd/main.go

Deploy Archive URL (url to any tar.gz, example a git repo)

./lube deploy <url>

Deploy Directory

./lube deploy <dirpath>

As library

`./lube deploy

package main
import(
  "github.com/ertia-io/lube"
)

func main(){

  dp := lube.NewLubeDeployer("~/.kube/config", "lube-namespace" )

  //Deploy archive url (any url to tar.gz)
  err = ld.DeployArchiveUrl(context.Background(),https://github.com/ertia-io/deployments.tar.gz)
  
  //Deploy directory any dir containing helm charts / kube yaml
  err = ld.DeployDirectoryRecursive(context.Background(),"/opt/ertia/mydeploys/")
}


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLoggingContext added in v0.0.9

func WithLoggingContext(ctx context.Context) context.Context

Types

type Deployer

type Deployer interface {
	DeployPath(context.Context, string, string) error
	Name() string
}

type LubeDeployer

type LubeDeployer struct {
	Domain     string
	KubeConfig string
}

func NewLubeDeployer

func NewLubeDeployer(kubeCfgPath, domain string) *LubeDeployer

func (*LubeDeployer) DeployArchive added in v0.0.4

func (d *LubeDeployer) DeployArchive(ctx context.Context, owner, repo, tag, token string) error

Deploy tar archive

Directories

Path Synopsis
deployers
pkg

Jump to

Keyboard shortcuts

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