monokube

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type KubeManifest

type KubeManifest struct {
	Metadata
}

KubeManifest represents the basic values needed from k8s

type LernaConfig

type LernaConfig struct {
	Packages []string
}

LernaConfig is a basic representation of a lerna config file

type Manifest

type Manifest struct {
	File         string
	RunCondition string
	Kube         KubeManifest
}

Manifest represents a k8s manifest config

type Metadata added in v0.0.11

type Metadata struct {
	Namespace string `yaml:"namespace"`
	Kind      string `yaml:"kind"`
	Name      string `yaml:"name"`
}

Metadata is the k8s metadata

type Package

type Package struct {
	Name        string
	Image       string
	ImageRoot   string
	Commit      string
	Version     string
	BuildDocker bool
	DockerArgs  string
	Path        string
	Manifests   []Manifest
	Env         map[string]string
	Namespace   string
	PackageConfig
}

Package is the deployment spec for a monorepo package

type PackageConfig

type PackageConfig struct {
	Version    string   `yaml:"version"`
	Namespace  string   `yaml:"namespace"`
	Clusters   []string `yaml:"clusters"`
	Watch      bool     `yaml:"watch"`
	Kind       string   `yaml:"kind"`
	DockerArgs string   `yaml:"dockerArgs"`
	ImageRoot  string   `yaml:"imageRoot"`
}

PackageConfig is a basic representation of a lerna config file

Jump to

Keyboard shortcuts

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