gitops

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPodReadyTimeout = 5 * time.Minute

DefaultPodReadyTimeout is the time it will wait for Flux and Helm Operator to become ready

Variables

This section is empty.

Functions

func DeleteKey

func DeleteKey(cfg *api.ClusterConfig) error

FLUX V1 DEPRECATION NOTICE. https://github.com/weaveworks/eksctl/issues/2963 DeleteKey deletes the authorized SSH key for the gitops repo if gitops are configured Will not fail if the key was not previously authorized

func InstallProfile

func InstallProfile(cfg *api.ClusterConfig) error

InstallProfile installs the bootstrap profile in the user's repo if it's specified in the cluster config

func RepositoryURL

func RepositoryURL(quickstartArgument string) (string, error)

RepositoryURL returns the full Git repository URL corresponding to the provided "quickstart profile" mnemonic a.k.a. short name. If a valid Git URL is provided, this function returns it as-is.

func Setup

func Setup(kubeconfigPath string, k8sRestConfig *rest.Config, k8sClientSet kubeclient.Interface, cfg *api.ClusterConfig, timeout time.Duration) error

Setup sets up gitops in a repository for a cluster.

Types

type FluxInstaller added in v0.39.0

type FluxInstaller interface {
	Run() error
}

type Profile

type Profile struct {
	Processor         fileprocessor.FileProcessor
	ProfileCloner     git.TmpCloner
	UserRepoGitClient *git.Client
	FS                afero.Fs
	IO                afero.Afero
}

Profile represents a gitops profile

func (*Profile) Generate

func (p *Profile) Generate(profile api.Profile) error

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

func (*Profile) Install

func (p *Profile) Install(clusterConfig *api.ClusterConfig) error

Install installs the profile specified in the cluster config into a user's repository

Directories

Path Synopsis
FLUX V1 DEPRECATION NOTICE.
FLUX V1 DEPRECATION NOTICE.
FLUX V1 DEPRECATION NOTICE.
FLUX V1 DEPRECATION NOTICE.

Jump to

Keyboard shortcuts

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