config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package config holds the operator's installation configuration: the infrastructure the chart sets as values and passes as flags (api.md installation values). ClusterRuntime never holds any of it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AICRVersion string
	AICRImage   string
	// AllowPrereleaseAICR lets AICRVersion be a prerelease, such as a release
	// candidate or a build from a commit.
	AllowPrereleaseAICR bool

	OperatorNamespace   string
	JobsNamespace       string
	DiscoveryNamespace  string
	ValidationNamespace string
	// JobServiceAccount runs AICR recipe, render and assessment Jobs.
	JobServiceAccount string

	Engine          plan.Engine
	EngineNamespace string
	EngineProject   string

	// RegistryRepository is the runtime registry prefix (oci://host/path).
	RegistryRepository string
	// RegistryPlainHTTP talks HTTP to the registry; only for test clusters.
	RegistryPlainHTTP bool
	// RegistryAuthProvider is "aws" (ECR through the operator's AWS identity)
	// or "static" (an administrator's docker config Secret, or none).
	RegistryAuthProvider string
	// RegistryCredentialsSecret names the static docker config Secret, present
	// under the same name in the operator, Job and validation namespaces;
	// empty is an anonymous registry.
	RegistryCredentialsSecret string
	// EngineRepoCredsSecret names the Argo CD repo-creds Secret the operator
	// refreshes with the aws provider.
	EngineRepoCredsSecret string

	// BypassApprovals lets rollouts proceed without approval; development
	// builds only.
	BypassApprovals bool

	// SnapshotServiceAccount runs the AICR snapshot Job (the launcher) in
	// the discovery namespace.
	SnapshotServiceAccount string
	// SnapshotAgentServiceAccount is the exact ServiceAccount AICR's snapshot
	// agent runs as.
	SnapshotAgentServiceAccount string
	// SnapshotAgentRequests overrides the agent's resource requests
	// (name=quantity pairs); empty keeps AICR's defaults.
	SnapshotAgentRequests string
	// JobNodeSelector and JobTolerations place every AICR Job's pod
	// (aicr.jobs); empty places none.
	JobNodeSelector map[string]string
	JobTolerations  []corev1.Toleration
	// ComponentNamespaces are the namespaces plan releases may target
	// (namespaces.components); with RestrictNamespaces, a plan outside them
	// stalls with NamespaceNotAllowed.
	ComponentNamespaces []string
	// RestrictNamespaces is set when --component-namespaces is given, even
	// empty: then no namespace is allowed.
	RestrictNamespaces bool

	// SkipDiscovery resolves from declared criteria alone, with no node
	// gates or snapshot; development builds only, for clusters that cannot
	// satisfy a GPU recipe's constraints.
	SkipDiscovery bool

	// ValidationEnabled is set when the installation provides the
	// validation identities (validation.enabled); without it a runtime that
	// requires deployment validation stalls.
	ValidationEnabled bool
	// ValidationServiceAccount runs the validation Job (AICR's launcher).
	ValidationServiceAccount string
	// ValidatorServiceAccount is the pre-provisioned cluster-admin identity
	// AICR v1.1.0 and later run validators as.
	ValidatorServiceAccount string
	// ValidatorImages pin AICR's validator images by tag and digest
	// (aicr.validatorImages); evidence naming any other validator image
	// fails the run.
	ValidatorImages []string
	// ValidationSigningKey is the KMS key URI AICR v1.1.0 and later sign
	// evidence with (validation.signingKey); empty pushes it unsigned.
	ValidationSigningKey string
	// ValidationTransparencyLog uploads key signatures to the Rekor
	// transparency log (validation.transparencyLog).
	ValidationTransparencyLog bool
}

Config is the installation configuration.

func Defaults

func Defaults() Config

Defaults returns the chart's default values.

func (*Config) BindFlags

func (c *Config) BindFlags(fs *flag.FlagSet)

BindFlags registers the configuration on fs, using current values as defaults.

func (*Config) Namespaces

func (c *Config) Namespaces() aicrjob.Namespaces

Namespaces returns the AICR Job namespaces.

func (*Config) Registry

func (c *Config) Registry() registry.Repository

Registry returns the parsed runtime registry repository; Validate has checked it.

func (*Config) SignsEvidence

func (c *Config) SignsEvidence() bool

SignsEvidence reports whether validation runs sign their evidence.

func (*Config) Validate

func (c *Config) Validate(development bool) error

Validate rejects a configuration the operator must not run with. development reports whether this build accepts development settings.

func (*Config) ValidatorPins

func (c *Config) ValidatorPins() map[string]string

ValidatorPins maps each pinned validator repository to its pinned reference; Validate has checked them.

Jump to

Keyboard shortcuts

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