helmfile

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AppVersionEnvVar = "THF_APP_VERSION"
View Source
const ArgocdProjectEnvVar = "THF_ARGOCD_PROJECT"
View Source
const ChartPathEnvVar = "THF_CHART_PATH"
View Source
const ClusterAddressEnvVar = "THF_CLUSTER_ADDRESS"
View Source
const ClusterNameEnvVar = "THF_CLUSTER_NAME"
View Source
const NamespaceEnvVar = "THF_NAMESPACE"
View Source
const ProgName = "helmfile"

ProgName is the name of the `helmfile` binary

View Source
const ReleaseNameEnvVar = "THF_RELEASE_NAME"
View Source
const ReleaseTypeEnvVar = "THF_RELEASE_TYPE"
View Source
const TargetBaseEnvVar = "THF_TARGET_BASE"
View Source
const TargetNameEnvVar = "THF_TARGET_NAME"
View Source
const TargetTypeEnvVar = "THF_TARGET_TYPE"

Environment variables -- prefixed with THF for "terra-helmfile", used to pass in information to helmfile

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	ChartVersion *string  // ChartVersion optionally override chart version
	AppVersion   *string  // AppVersion optionally override application version (container image)
	ValuesFiles  []string // ValuesFiles optional list of files for overriding chart values
	ArgocdMode   bool     // ArgocdMode if true, render ArgoCD manifests instead of application manifests
}

Args arguments for a helmfile render

type Cmd

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

Cmd encapsulates low-level parameters for a `helmfile` command

type ConfigRepo

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

ConfigRepo can be used to `helmfile` render commands on a clone of the `terra-helmfile` repo

func NewConfigRepo

func NewConfigRepo(options Options) *ConfigRepo

NewConfigRepo constructs a new ConfigRepo object

func (*ConfigRepo) CleanOutputDirectoryIfEnabled

func (r *ConfigRepo) CleanOutputDirectoryIfEnabled() error

CleanOutputDirectory cleans the output directory before rendering

func (*ConfigRepo) HelmUpdate

func (r *ConfigRepo) HelmUpdate() error

HelmUpdate updates Helm repo indexes.

func (*ConfigRepo) RenderForRelease

func (r *ConfigRepo) RenderForRelease(release gitops.Release, args *Args) error

func (*ConfigRepo) RenderForTarget

func (r *ConfigRepo) RenderForTarget(target gitops.Target, args *Args) error

type Options

type Options struct {
	ThelmaHome       string        // ThelmaHome to terra-helmfile repo clone
	ChartSourceDir   string        // ChartSourceDir path on filesystem containing chart sources
	ChartCacheDir    string        // ChartCacheDir path to shared chart cache directory that can be re-used across renders
	ResolverMode     resolver.Mode // Resolver mode
	HelmfileLogLevel string        // HelmfileLogLevel is the --log-level argument to pass to `helmfile` command
	Stdout           bool          // Stdout if true, render to stdout instead of output directory
	OutputDir        string        // Output directory where manifests should be rendered
	ScratchDir       string        // Scratch directory where temporary files should be written
	ShellRunner      shell.Runner  // ShellRunner shell Runner to use for executing helmfile commands
}

Options constructor arguments for a ConfigRepo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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