-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update secret functions to support more types, remove cli arguments f…
…or context, update service_spec, and helper function for base64 checks
- Loading branch information
Showing
2 changed files
with
109 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
Added support for using context in templates for `deployment_present`, `pod_present`, `service_present`, `configmap_present`, and `secret_present` states. | ||
Added unit tests to support the new context feature. | ||
# Added Template Context Support and Improved Secret Management | ||
|
||
## Template Context Support | ||
Added support for using context in templates for `deployment_present`, `pod_present`, `service_present`, `configmap_present`, and `secret_present` states | ||
Added comprehensive examples in docstrings showing context usage with templates | ||
|
||
## Secret Management Improvements | ||
Enhanced `create_secret` and `replace_secret` to handle base64 encoded values intelligently: | ||
- Added detection of pre-encoded base64 strings | ||
- Preserves already encoded values | ||
- Only encodes plain text values | ||
Added support for docker registry secrets (type kubernetes.io/dockerconfigjson) | ||
Preserves secret type when replacing existing secrets | ||
Updated docstrings with examples for both plain text and pre-encoded values | ||
|
||
## Service Specification Enhancement | ||
Improved `__dict_to_service_spec()` with: | ||
- Proper validation of required port values | ||
- Better initialization of service port configurations | ||
- Support for detailed port specifications | ||
|
||
## Connection Handling | ||
Simplified kubeconfig handling in `_setup_conn` | ||
Removed the ability to override individual kubeconfig options to prevent conflicts | ||
Better error handling for kubeconfig loading |
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