feat: add dry-run functionality and similar dependency
All checks were successful
Run Check Script / check (pull_request) Successful in 1m45s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m45s
- Implemented a dry-run mode for K8s resource patching, displaying diffs before applying changes. - Added the `similar` dependency for calculating and displaying text diffs. - Enhanced K8s resource application to handle various port specifications in NetworkPolicy ingress rules. - Added support for port ranges and lists of ports in NetworkPolicy rules. - Updated K8s client to utilize the dry-run configuration setting. - Added configuration option `HARMONY_DRY_RUN` to enable or disable dry-run mode.
This commit is contained in:
7
Cargo.lock
generated
7
Cargo.lock
generated
@@ -1576,6 +1576,7 @@ dependencies = [
|
||||
"serde-value",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
"similar",
|
||||
"temp-dir",
|
||||
"temp-file",
|
||||
"tokio",
|
||||
@@ -4090,6 +4091,12 @@ dependencies = [
|
||||
"rand_core 0.6.4",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "similar"
|
||||
version = "2.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa"
|
||||
|
||||
[[package]]
|
||||
name = "simple_asn1"
|
||||
version = "0.6.3"
|
||||
|
||||
Reference in New Issue
Block a user