base

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBundlePart

func AddBundlePart(baseDir string, filename string, content []byte) error

Types

type Base

type Base struct {
	Files []BaseFile
}

func RenderUpstream

func RenderUpstream(u *upstream.Upstream, renderOptions *RenderOptions) (*Base, error)

RenderUpstream is responsible for any conversions or transpilation steps are required to take an upstream and make it a valid kubernetes base

func (*Base) GetOverlaysDir

func (b *Base) GetOverlaysDir(options WriteOptions) string

func (*Base) WriteBase

func (b *Base) WriteBase(options WriteOptions) error

type BaseFile

type BaseFile struct {
	Path    string
	Content []byte
}

func (BaseFile) ShouldBeIncludedInBaseFilesystem added in v0.9.0

func (f BaseFile) ShouldBeIncludedInBaseFilesystem(excludeKotsKinds bool) bool

ShouldBeIncludedInBaseFilesystem attempts to determine if this is a valid Kubernetes manifest. It accomplished this by trying to unmarshal the YAML and looking for a apiVersion and Kind

func (BaseFile) ShouldBeIncludedInBaseKustomization

func (f BaseFile) ShouldBeIncludedInBaseKustomization(excludeKotsKinds bool) bool

ShouldBeIncludedInBaseKustomization attempts to determine if this is a valid Kubernetes manifest. It accomplished this by trying to unmarshal the YAML and looking for a apiVersion and Kind

type OverlySimpleGVK

type OverlySimpleGVK struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
}

type RenderOptions

type RenderOptions struct {
	SplitMultiDocYAML bool
	Namespace         string
	HelmOptions       []string
}

type WriteOptions

type WriteOptions struct {
	BaseDir          string
	Overwrite        bool
	ExcludeKotsKinds bool
}

Jump to

Keyboard shortcuts

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