config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 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 Configuration

type Configuration struct {
	// Git-related configuration
	Remote       string `mapstructure:"remote"`
	TargetBranch string `mapstructure:"target-branch"`
	Since        string `mapstructure:"since"`

	// General configuration
	BuildID      string `mapstructure:"build-id"`
	Debug        bool   `mapstructure:"debug"`
	GithubGroups bool   `mapstructure:"github-groups"`

	// Zarf package configuration
	ZarfDirs           []string `mapstructure:"zarf-dirs"`
	ExcludedPackages   []string `mapstructure:"excluded-packages"`
	Packages           []string `mapstructure:"packages"`
	ProcessAllPackages bool     `mapstructure:"all"`

	// Validation configuration
	CheckVersionIncrement bool `mapstructure:"check-version-increment"`
	ValidateImagePinning  bool `mapstructure:"validate-image-pinning"`
	ValidatePackageSchema bool `mapstructure:"validate-package-schema"`
	ValidateComponents    bool `mapstructure:"validate-components"`
	ExcludeDeprecated     bool `mapstructure:"exclude-deprecated"`

	// Zarf CLI configuration
	ZarfExtraArgs       string `mapstructure:"zarf-extra-args"`
	ZarfLintExtraArgs   string `mapstructure:"zarf-lint-extra-args"`
	ZarfBuildExtraArgs  string `mapstructure:"zarf-build-extra-args"`
	ZarfDeployExtraArgs string `mapstructure:"zarf-deploy-extra-args"`

	// Deployment testing configuration
	Upgrade           bool          `mapstructure:"upgrade"`
	SkipCleanUp       bool          `mapstructure:"skip-clean-up"`
	Namespace         string        `mapstructure:"namespace"`
	DeploymentTimeout time.Duration `mapstructure:"deployment-timeout"`
	TestTimeout       time.Duration `mapstructure:"test-timeout"`
	KubectlTimeout    time.Duration `mapstructure:"kubectl-timeout"`
	PrintLogs         bool          `mapstructure:"print-logs"`

	// Legacy chart-testing compatibility (kept for migration)
	ChartDirs               []string `mapstructure:"chart-dirs"`
	Charts                  []string `mapstructure:"charts"`
	ExcludedCharts          []string `mapstructure:"excluded-charts"`
	LintConf                string   `mapstructure:"lint-conf"`
	ChartYamlSchema         string   `mapstructure:"chart-yaml-schema"`
	ValidateMaintainers     bool     `mapstructure:"validate-maintainers"`
	ValidateChartSchema     bool     `mapstructure:"validate-chart-schema"`
	ValidateYaml            bool     `mapstructure:"validate-yaml"`
	ProcessAllCharts        bool     `mapstructure:"process-all-charts"`
	ChartRepos              []string `mapstructure:"chart-repos"`
	HelmRepoExtraArgs       []string `mapstructure:"helm-repo-extra-args"`
	HelmExtraArgs           string   `mapstructure:"helm-extra-args"`
	HelmLintExtraArgs       string   `mapstructure:"helm-lint-extra-args"`
	SkipMissingValues       bool     `mapstructure:"skip-missing-values"`
	ReleaseLabel            string   `mapstructure:"release-label"`
	UseHelmignore           bool     `mapstructure:"use-helmignore"`
	HelmDependencyExtraArgs []string `mapstructure:"helm-dependency-extra-args"`
	AdditionalCommands      []string `mapstructure:"additional-commands"`
}

func LoadConfiguration

func LoadConfiguration(cfgFile string, cmd *cobra.Command, printConfig bool) (*Configuration, error)

Jump to

Keyboard shortcuts

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