Documentation
¶
Index ¶
Constants ¶
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.
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.
const MaxObjectCountCode = "1070"
MaxObjectCountCode is the error code for MaxObjectCount
const MissingRepoErrorCode = "1017"
MissingRepoErrorCode is the error code for MissingRepoError
const OldAllowedRepoVersion = "0.1.0"
OldAllowedRepoVersion is the old (but still supported) Repo.Spec.Version.
const UnsupportedRepoSpecVersionCode = "1027"
UnsupportedRepoSpecVersionCode is the error code for UnsupportedRepoSpecVersion
Variables ¶
This section is empty.
Functions ¶
func MaxObjectCountError ¶ added in v1.21.0
MaxObjectCountError reports that the source includes more than the maximum number of objects.
func MissingRepoError ¶
MissingRepoError reports that there is no Repo definition in system/
Types ¶
This section is empty.