Documentation
¶
Overview ¶
Package checkconfig provides all the necessary components for the `check` command to load its configuration.
Index ¶
Constants ¶
View Source
const GlobalConfigDirectory = "/etc/preflight/"
GlobalConfigDirectory is a static path where configuration may be loaded from. This is designed to support this executable in Docker containers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ClusterName string
PackageSources []*packagesources.TypedConfig
DataGatherers map[string]datagatherer.Config
Outputs []*output.TypedConfig
EnabledPackages []*EnabledPackage
}
Config is the configuration for a Preflight check.
func LoadConfig ¶
LoadConfig loads a Preflight check configuration from a file at the path specified.
type EnabledPackage ¶
type EnabledPackage struct {
ID string
EnabledRuleIDs []string `mapstructure:"enabled-rules"`
DisabledRuleIDs []string `mapstructure:"disabled-rules"`
}
EnabledPackage is the configuarion for an enabled Preflight package.
Click to show internal directories.
Click to hide internal directories.