kubernetes

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(manifest, ns string) error

func GetAllResources

func GetAllResources() ([]string, error)

func ReadTemplates

func ReadTemplates(cfg *pkgcfg.CarbonConfig) ([]byte, error)

Types

type DepVars

type DepVars struct {
	Pkg DepVarsPkg
	Var map[string]string
}

type DepVarsPkg

type DepVarsPkg struct {
	DockerName string
	DockerTag  string
	Name       string
	Version    string
}

type KubeInstall

type KubeInstall struct {
	BuiltManifest []byte
	RawManifest   []byte
	Scope         string
	Variables     DepVars
}

func NewKubeInstall

func NewKubeInstall(meta *pkgmeta.PackageConfig, ccfg *carboncfg.CarbonConfig, dname string, dtag string) (*KubeInstall, error)

func (*KubeInstall) Apply

func (self *KubeInstall) Apply(defPWL bool) error

func (*KubeInstall) Build

func (self *KubeInstall) Build() error

func (*KubeInstall) ProcessPatches

func (self *KubeInstall) ProcessPatches(patchData []byte) error

func (*KubeInstall) SetAppLabels added in v0.0.5

func (self *KubeInstall) SetAppLabels() error

func (*KubeInstall) SetNamespace added in v0.0.5

func (self *KubeInstall) SetNamespace() error

func (*KubeInstall) UpdateVars

func (self *KubeInstall) UpdateVars(vars map[string]string)

func (*KubeInstall) VerifyAll

func (self *KubeInstall) VerifyAll(path string) error

func (*KubeInstall) VerifyTpl

func (self *KubeInstall) VerifyTpl(path string) error

type Patcher

type Patcher struct {
	Filters map[string]string `json:"filters"`
	Type    string            `json:"type"`
	Patch   json.RawMessage   `json:"patch"`
}

func (*Patcher) Apply

func (self *Patcher) Apply(original []byte) ([]byte, error)

func (*Patcher) MatchObj

func (self *Patcher) MatchObj(data []byte) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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