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 (*Config) BindFlags ¶
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 ¶
SignsEvidence reports whether validation runs sign their evidence.
func (*Config) Validate ¶
Validate rejects a configuration the operator must not run with. development reports whether this build accepts development settings.
func (*Config) ValidatorPins ¶
ValidatorPins maps each pinned validator repository to its pinned reference; Validate has checked them.