Documentation ¶
Index ¶
- func DuplicateApplication(fs afero.Fs, state git.PRState, labelSelector map[string]string) error
- func RemoveApplication(fs afero.Fs, state git.PRState) error
- func UpdateImageTag(path, app, group, tag string) error
- type KustomizeFs
- func (kfs KustomizeFs) CleanedAbs(path string) (filesys.ConfirmedDir, string, error)
- func (kfs KustomizeFs) Create(path string) (filesys.File, error)
- func (kfs KustomizeFs) Exists(path string) bool
- func (kfs KustomizeFs) Glob(pattern string) ([]string, error)
- func (kfs KustomizeFs) IsDir(path string) bool
- func (kfs KustomizeFs) Mkdir(path string) error
- func (kfs KustomizeFs) MkdirAll(path string) error
- func (kfs KustomizeFs) Open(path string) (filesys.File, error)
- func (kfs KustomizeFs) ReadDir(path string) ([]string, error)
- func (kfs KustomizeFs) ReadFile(path string) ([]byte, error)
- func (kfs KustomizeFs) RemoveAll(path string) error
- func (kfs KustomizeFs) Walk(path string, walkFn filepath.WalkFunc) error
- func (kfs KustomizeFs) WriteFile(path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateApplication ¶
DuplicateApplication duplicates the application manifests based on the label selector. It assumes that the fs is a base fs in the repository directory. nolint:gocognit,gocritic // ignore
func RemoveApplication ¶
nolint:gocritic // ignore
func UpdateImageTag ¶
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) Exists ¶
func (kfs KustomizeFs) Exists(path string) bool
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) RemoveAll ¶
func (kfs KustomizeFs) RemoveAll(path string) error
Click to show internal directories.
Click to hide internal directories.