deploy

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Local  StorageTarget = "LOCAL"
	Amazon               = "S3"
	Google               = "GCS"
	Azure                = "AZURE"
	Minio                = "MINIO"
	None                 = "NONE"
)

Variables

View Source
var (
	Version = "0.1.0"
)

Functions

func DatabasePV

func DatabasePV(namespace string, name string, target StorageTarget, cloudDiskName string, NodePath string, volumeSize string) (v1.PersistentVolume, error)

database can be stored on local disk or cloud disk target for DB can be different than object storage target

func DatabasePVClaim

func DatabasePVClaim(namespace string, volumeName string, claimName string, claimSize string) v1.PersistentVolumeClaim

func TlsConfig

func TlsConfig(opts *DeployOptions) (*v1.Secret, error)

Types

type Configurator

type Configurator interface {
	AddEntry(item interface{}) error
	ReadCacheBytes() []byte
	FlushToFile(path string) error
}

func BaseConfig

func BaseConfig(manifest Configurator, opts *DeployOptions) (Configurator, error)

func DatabaseConfig

func DatabaseConfig(manifest Configurator, opts *DeployOptions, dbStorage StorageTarget, cloudDiskName string, hostpath string, allocSize string) (Configurator, error)

func GoogleConfig

func GoogleConfig(manifest Configurator, opts *DeployOptions, creds string, objectStorageBucket string, dbStorage StorageTarget, dbCloudDiskName string, dbHostPath string, dbMountPath string, dbDiskSize string) (Configurator, error)

func NewConfigurator

func NewConfigurator() Configurator

type DeployOptions

type DeployOptions struct {
	Namespace       string
	PublicInterface string

	ServerIP       string
	ServerPort     int32
	ServerNodePort int32

	StorageTarget hfConfig.StorageTarget

	NoRBAC bool
	NoAuth bool

	// incase bolt uses local host volume path
	DbType          hfConfig.DbTarget
	DbFileMountPath string
	DbBucket        string
	DbUsePVClaim    bool

	DockerRegistry  string
	ImagePullSecret string
	WorkerImage     string

	NodeMemLimit string
	NodeCpuLimit string

	LogLevel string
	Version  string

	TLSServerCert string
	TLSServerKey  string

	APIServerConfig *hfConfig.Config
}

func DefaultDeployOpts

func DefaultDeployOpts() *DeployOptions

type StorageTarget

type StorageTarget string

Jump to

Keyboard shortcuts

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