system

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxObjectCount int = 1000

DefaultMaxObjectCount is the default maximum number of objects allowed in a single inventory, if the validator is enabled.

This is only used by nomos vet, not the reconciler. It will not block syncing.

The value 1000 was chosen as a compromise between scale and safety. Technically we know form e2e tests that the inventory can actually hold at least 5000 objects without needing to disable the status, however, this is unsafe to do in production because each of those objects could error, which adds error conditions to the inventory status, which can significantly increase the size of the inventory.

View Source
const DefaultMaxObjectCountDisabled int = 0

DefaultMaxObjectCountDisabled is a sentinel value to disable max object count validation. It's used when the --threshold flag is not specified.

View Source
const MaxObjectCountCode = "1070"

MaxObjectCountCode is the error code for MaxObjectCount

View Source
const MissingRepoErrorCode = "1017"

MissingRepoErrorCode is the error code for MissingRepoError

View Source
const OldAllowedRepoVersion = "0.1.0"

OldAllowedRepoVersion is the old (but still supported) Repo.Spec.Version.

View Source
const UnsupportedRepoSpecVersionCode = "1027"

UnsupportedRepoSpecVersionCode is the error code for UnsupportedRepoSpecVersion

Variables

This section is empty.

Functions

func MaxObjectCountError added in v1.21.0

func MaxObjectCountError(maxN, foundN int) status.Error

MaxObjectCountError reports that the source includes more than the maximum number of objects.

func MissingRepoError

func MissingRepoError() status.Error

MissingRepoError reports that there is no Repo definition in system/

func UnsupportedRepoSpecVersion

func UnsupportedRepoSpecVersion(resource client.Object, version string) status.Error

UnsupportedRepoSpecVersion reports that the repo version is not supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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