manifest

package
v0.0.0-...-7183293 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

Namespace create without spec and status for tidier yaml

type Svc

type Svc struct {
	// contains filtered or unexported fields
}

func NewSvc

func NewSvc(fs afero.Fs, wd string, log *logrus.Logger) *Svc

NewSvc creates a new Manifest Service which transforms deployment config into rendered manifests

func (Svc) Generate

func (s Svc) Generate(deploys cfg.Deploys) error

Generate generates manifests in a temporary directory and copies the content into the deployment directory if the generation process completes successfully.

func (Svc) JsonToYaml

func (Svc) JsonToYaml(b []byte) ([]byte, error)

func (Svc) JsonnetInline

func (s Svc) JsonnetInline(j *cfg.Jsonnet, vm *jsonnet.VM, n string) ([]byte, error)

func (Svc) JsonnetPath

func (s Svc) JsonnetPath(j *cfg.Jsonnet, vm *jsonnet.VM) ([]byte, error)

func (Svc) JsonnetPathMulti

func (s Svc) JsonnetPathMulti(j *cfg.Jsonnet, vm *jsonnet.VM) ([]byte, error)

func (Svc) ManifestPathForDeploy

func (s Svc) ManifestPathForDeploy(d *cfg.Deploy) string

func (Svc) PathForChart

func (s Svc) PathForChart(p string) string

func (Svc) Pull

func (s Svc) Pull(chartRef string, repoUrl string, version string) error

Pull adds a tgz chart to charts from repoUrl with chartRef and version addConfig generates a config stub for the chart

func (Svc) PullAddConfig

func (s Svc) PullAddConfig(chartRef string, version string) error

func (Svc) Verify

func (s Svc) Verify(deploys cfg.Deploys) (bool, error)

Verify generates manifests in a temporary directory and compares the sha of those files to the sha of the current deploy folder contents. If the sha values do not match, verify return false. It does not currently handle verifying file generated via with => path.

Jump to

Keyboard shortcuts

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