gitops

package
v0.0.0-...-4c17ca5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	UserRepoPath     string
	ClusterConfig    *api.ClusterConfig
	UsersRepoOpts    git.Options
	QuickstartName   string
	FluxInstaller    *flux.Installer
	ProfileGenerator *Profile
	GitClient        *git.Client
}

Applier can set up a repo as a gitops repo with flux

func (*Applier) Run

func (g *Applier) Run(ctx context.Context) error

Run sets up gitops in a repository and a cluster and installs flux, helm, tiller and a quickstart into the cluster

type Profile

type Profile struct {
	Processor fileprocessor.FileProcessor
	Path      string
	GitOpts   git.Options
	GitCloner git.TmpCloner
	FS        afero.Fs
	IO        afero.Afero
	// contains filtered or unexported fields
}

Profile represents a GitOps profile

func (*Profile) DeleteClonedDirectory

func (p *Profile) DeleteClonedDirectory()

DeleteClonedDirectory deletes the directory where the repository was cloned

func (*Profile) Generate

func (p *Profile) Generate(ctx context.Context) error

Generate clones the specified Git repo in a base directory and generates overlays if the Git repo points to a profile repo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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