Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 6.12 KB

File metadata and controls

76 lines (46 loc) · 6.12 KB
graph LR
    Kubernetes_YAML_Resource_Creation["Kubernetes YAML Resource Creation"]
    Kubernetes_Quantity_Parsing_and_Formatting["Kubernetes Quantity Parsing and Formatting"]
    Kubernetes_Duration_Handling["Kubernetes Duration Handling"]
    Kubernetes_Dynamic_Client["Kubernetes Dynamic Client"]
    Kubernetes_Utility_Test_Suite["Kubernetes Utility Test Suite"]
    Kubernetes_YAML_Resource_Creation -- "uses" --> Kubernetes_Dynamic_Client
    Kubernetes_Utility_Test_Suite -- "tests" --> Kubernetes_YAML_Resource_Creation
    Kubernetes_Utility_Test_Suite -- "tests" --> Kubernetes_Quantity_Parsing_and_Formatting
Loading

CodeBoardingDemoContact

Component Details

The Utilities component within the Kubernetes client library provides essential helper functions for common tasks. It encompasses functionalities for parsing and formatting Kubernetes resource quantities, handling time durations according to specific Kubernetes formats, and offering robust methods for creating Kubernetes objects from various input sources like YAML files, directories, or Python dictionaries. This component aims to simplify interactions with the Kubernetes API by abstracting complex data transformations and resource deployment mechanisms.

Kubernetes YAML Resource Creation

This component provides high-level functions to create Kubernetes resources from YAML files or Python dictionaries, handling multiple documents and aggregating potential API exceptions during resource creation. It serves as a convenient interface for deploying resources.

Related Classes/Methods:

Kubernetes Quantity Parsing and Formatting

This component offers utility functions for parsing and formatting Kubernetes resource quantities (e.g., '100m', '1Gi') into numerical equivalents and vice-versa, ensuring correct interpretation and representation of resource values.

Related Classes/Methods:

Kubernetes Duration Handling

This component provides utility functions for handling and converting time durations, which are essential for various time-based operations and configurations within the Kubernetes ecosystem.

Related Classes/Methods:

Kubernetes Dynamic Client

This core client component enables dynamic interaction with the Kubernetes API server. It allows for the creation, retrieval, and management of Kubernetes resources based on their kind and API version, including support for advanced features like server-side apply.

Related Classes/Methods:

Kubernetes Utility Test Suite

This component comprises a collection of end-to-end and unit tests specifically designed to validate the functionality of the Kubernetes utility modules, ensuring the correctness of resource creation from various configurations and the accuracy of quantity conversions.

Related Classes/Methods: