flux

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyTitle

func KeyTitle(clusterMeta api.ClusterMeta) string

KeyTitle returns the title for the SSH key used to access the gitops repo

Types

type Installer

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

Installer installs Flux

func NewInstaller

func NewInstaller(k8sRestConfig *rest.Config, k8sClientSet kubeclient.Interface, cfg *api.ClusterConfig, timeout time.Duration) (*Installer, error)

NewInstaller creates a new Flux installer

func (*Installer) IsFluxInstalled

func (fi *Installer) IsFluxInstalled() (bool, error)

IsFluxInstalled returns an error if Flux is not installed in the cluster. To determine that it looks for the flux pod

func (*Installer) Run

func (fi *Installer) Run(ctx context.Context) (string, error)

Run runs the Flux installer

type PublicKey

type PublicKey struct {
	Key string `json:"key"`
}

PublicKey represents a public SSH key as it is returned by flux

Jump to

Keyboard shortcuts

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