manifest

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuplicateApplication

func DuplicateApplication(fs afero.Fs, state git.PRState, labelSelector map[string]string) error

DuplicateApplication duplicates the application manifests based on the label selector. It assumes that the fs is a base fs in the repository directory.

func RemoveApplication

func RemoveApplication(fs afero.Fs, state git.PRState) error

func UpdateImageTag

func UpdateImageTag(path, app, group, tag string) error

UpdateImageTag changes the image tag in the kustomization file. TODO: Should change to using fs objects.

Types

type KustomizeFs

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

func NewKustomizeFs

func NewKustomizeFs(fs afero.Fs) KustomizeFs

func (KustomizeFs) CleanedAbs

func (kfs KustomizeFs) CleanedAbs(path string) (filesys.ConfirmedDir, string, error)

func (KustomizeFs) Create

func (kfs KustomizeFs) Create(path string) (filesys.File, error)

func (KustomizeFs) Exists

func (kfs KustomizeFs) Exists(path string) bool

func (KustomizeFs) Glob

func (kfs KustomizeFs) Glob(pattern string) ([]string, error)

func (KustomizeFs) IsDir

func (kfs KustomizeFs) IsDir(path string) bool

func (KustomizeFs) Mkdir

func (kfs KustomizeFs) Mkdir(path string) error

func (KustomizeFs) MkdirAll

func (kfs KustomizeFs) MkdirAll(path string) error

func (KustomizeFs) Open

func (kfs KustomizeFs) Open(path string) (filesys.File, error)

func (KustomizeFs) ReadDir

func (kfs KustomizeFs) ReadDir(path string) ([]string, error)

func (KustomizeFs) ReadFile

func (kfs KustomizeFs) ReadFile(path string) ([]byte, error)

func (KustomizeFs) RemoveAll

func (kfs KustomizeFs) RemoveAll(path string) error

func (KustomizeFs) Walk

func (kfs KustomizeFs) Walk(path string, walkFn filepath.WalkFunc) error

func (KustomizeFs) WriteFile

func (kfs KustomizeFs) WriteFile(path string, data []byte) error

Jump to

Keyboard shortcuts

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