Verifies that only allowed keys are used for reserved prefixes. Reserved prefixes are used to prevent user defined tags from overlapping with common infrastructure tagging that should be consistent for all data. Sample config:
prefix = "nf."
allowed-keys = ["app", "cluster"]
This config would only allow "nf.app" and "nf.cluster" with a prefix of "nf.".
Check the key/value pair and return null if it is valid or a reason string if there is a validation failure. The null type for success is used to avoid allocations or other overhead since the validation checks tend to be a hot path.
Check the key/value pair and return null if it is valid or a reason string if there is a validation failure. The null type for success is used to avoid allocations or other overhead since the validation checks tend to be a hot path.