build

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder builds yaml manifests It retrieves the kustomization object from the k8s cluster and overlays the manifests with the resources specified in the resourcesPath

func NewBuilder

func NewBuilder(rcg *genericclioptions.ConfigFlags, name, resources string, opts ...BuilderOptionFunc) (*Builder, error)

NewBuilder returns a new Builder to dp : create functional options

func (*Builder) Build

func (b *Builder) Build() ([]byte, error)

Build builds the yaml manifests from the kustomization object and overlays the manifests with the resources specified in the resourcesPath It expects a kustomization.yaml file in the resourcesPath, and it will generate a kustomization.yaml file if it doesn't exist

func (*Builder) Cancel

func (b *Builder) Cancel() error

Cancel cancels the build It restores a clean reprository

func (*Builder) Diff

func (b *Builder) Diff() (string, bool, error)

func (*Builder) Manager

func (b *Builder) Manager() (*ssa.ResourceManager, error)

type BuilderOptionFunc

type BuilderOptionFunc func(b *Builder) error

func WithProgressBar added in v0.27.1

func WithProgressBar() BuilderOptionFunc

func WithTimeout

func WithTimeout(timeout time.Duration) BuilderOptionFunc

Jump to

Keyboard shortcuts

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