-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add key/value pair validation (#684)
* Initial commit * Fix failing doc tests * Start to add more doc comments * Finish doc comments * Add KeyValuePairs, add TryFrom<(&str, &str)> impl * Add BTreeMap helper functions * Add FromIterator impl * Start to add more test cases * Add invalid kvp tests * Add key, key prefix, and key name tests * Add value tests * Rename max length constants * Add associated function `push` * Rename unit tests * Introduce generic type parameter to allow different value impls * Fix annotation macro, add unit test * Rename generic type param, fix rustdoc error * Add doc comments to macros * Update changelog * Add macros and full feature * Start to change KeyValuePairs from Vec to HashSet * Implement serde serialize * Implement serde deserialize * Use BTreeSet instead of HashSet for deterministic ordering * Add common func, add serde tests, fix deserialization * Introduce newtype Label and Annotation structs * Add recommended label function * Start to adjust other label handling code (wip) * Continue label/annotation handling code * Add final fixes without breaking changes * Add label and annotation error type aliases * Remove unwraps in secret volume builder * Remove unwraps from listener volume builder * Remove unwraps in object meta builder * Remove unwraps in PDB builder * Rename trait ValueExt to Value * Change deref target * Simplify key parsing * Remove unneeded annotation validation * Remove FromStr impl for KeyValuePair, Label, and Annotation * Remove unwraps from ClusterResources * Add annotation doc comments * Add label doc comments * Add module doc comment, remove outdated struct comment * Update const names, add doc comments * Remove label and annotation macro * Add const module doc comment * Update and move label selector to query string functionality * Fix rustdoc error * Move workspace member back * Add doc comments to ObjectLabels struct * Add missing doc comments * Remove Deserialize and Serialize support * Rework contains and add contains_key function
- Loading branch information
Showing
25 changed files
with
1,858 additions
and
390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.