bootstrap

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelmSettingsModule = fx.Provide(ProvideHelmSettings)
View Source
var LoggerModule = fx.Provide(ProvideLogger)

Viper module for Fx

Functions

func ConvertToHelmMirrors added in v0.2.0

func ConvertToHelmMirrors(configs []MirrorConfigSection) []helm.Mirror

func LoadViperConfiguration

func LoadViperConfiguration(rc helm.RegistryClient) (*viper.Viper, error)

Reads flags from user and sets state accordingly

func ProvideHelmSettings added in v0.2.0

func ProvideHelmSettings() *cli.EnvSettings

func ProvideLogger added in v0.2.0

func ProvideLogger() *slog.Logger

ProvideLogger sets up the slog configuration

func SetupHelm

func SetupHelm(settings *cli.EnvSettings, charts ChartSetupper, setters ...helm.Option) (*helm.ChartCollection, error)

Add Helm repos to user's local helm configuration file, Optionupdate all existing repos and pulls charts

Types

type ChartSetupper added in v0.2.0

type ChartSetupper interface {
	SetupHelm(settings *cli.EnvSettings, setters ...helm.Option) (*helm.ChartCollection, error)
}

type EnvironmentSetter added in v0.2.0

type EnvironmentSetter func(key, value string) error

EnvironmentSetter is a function type for setting environment variables

type ImportConfigSection

type ImportConfigSection struct {
	Import struct {
		Enabled                   bool    `yaml:"enabled"`
		Architecture              *string `yaml:"architecture"`
		ReplaceRegistryReferences bool    `yaml:"replaceRegistryReferences"`
		Copacetic                 struct {
			Enabled      bool `yaml:"enabled"`
			IgnoreErrors bool `yaml:"ignoreErrors"`
			Buildkitd    struct {
				Addr       string `yaml:"addr"`
				CACertPath string `yaml:"CACertPath"`
				CertPath   string `yaml:"certPath"`
				KeyPath    string `yaml:"keyPath"`
			} `yaml:"buildkitd"`
			Trivy struct {
				Addr          string `yaml:"addr"`
				Insecure      bool   `yaml:"insecure"`
				IgnoreUnfixed bool   `yaml:"ignoreUnfixed"`
			} `yaml:"trivy"`
			Output struct {
				Tars struct {
					Clean  bool   `yaml:"clean"`
					Folder string `yaml:"folder"`
				} `yaml:"tars"`
				Reports struct {
					Clean  bool   `yaml:"clean"`
					Folder string `yaml:"folder"`
				} `yaml:"reports"`
			} `yaml:"output"`
		} `yaml:"copacetic"`
		Cosign struct {
			Enabled           bool    `yaml:"enabled"`
			VerifyExisting    bool    `yaml:"verifyExisting"`
			KeyRef            string  `yaml:"keyRef"`
			KeyRefPass        *string `yaml:"keyRefPass"`
			PubKeyRef         *string `yaml:"pubKeyRef"`
			AllowHTTPRegistry bool    `yaml:"allowHTTPRegistry"`
			AllowInsecure     bool    `yaml:"allowInsecure"`
		} `yaml:"cosign"`
	} `yaml:"import"`
}

type MirrorConfigSection added in v0.1.8

type MirrorConfigSection struct {
	Registry string `yaml:"registry"`
	Mirror   string `yaml:"mirror"`
}

type ParserConfigSection added in v0.1.5

type ParserConfigSection struct {
	DisableImageDetection bool `yaml:"disableImageDetection"`
	UseCustomValues       bool `yaml:"useCustomValues"`
	FailOnMissingValues   bool `yaml:"failOnMissingValues"`
	FailOnMissingImages   bool `yaml:"failOnMissingImages"`
}

Jump to

Keyboard shortcuts

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