base

package
v1.7.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 24 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

func UnmarshalConfigValuesContent added in v0.9.14

func UnmarshalConfigValuesContent(content []byte) (map[string]template.ItemValue, error)

func UnmarshalLicenseContent added in v1.4.0

func UnmarshalLicenseContent(content []byte, log *logger.Logger) *kotsv1beta1.License

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
	Log               *logger.Logger
}

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