[confcom] Add containers from vn2 command#9560
Conversation
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| confcom containers | sub group confcom containers added property commands |
|
Hi @DomAyre, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
There was a problem hiding this comment.
Pull request overview
This PR adds a new command az confcom containers from_vn2 that generates partial container policy definitions from VN2 (Virtual Node 2) YAML templates. The command processes Kubernetes-style templates and produces security policy container definitions.
Changes:
- Added new
containers from_vn2command with full parameter support and help text - Added comprehensive test coverage with 17 sample scenarios
- Updated version from 1.6.0 to 1.7.0
Reviewed changes
Copilot reviewed 57 out of 57 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/confcom/setup.py |
Version bump to 1.7.0 |
src/confcom/azext_confcom/command/containers_from_vn2.py |
Core implementation for VN2 template parsing and conversion |
src/confcom/azext_confcom/lib/policy.py |
Updated data models to use int for signals instead of strings |
src/confcom/azext_confcom/lib/platform.py |
Added VN2-specific constants and configurations |
src/confcom/azext_confcom/lib/containers.py |
Added container merging utility and VN2 platform support |
src/confcom/azext_confcom/tests/latest/test_confcom_*.py |
Comprehensive test coverage for new functionality |
src/confcom/samples/vn2/* |
17 sample scenarios with expected outputs |
|
[Release] Update index.json for extension [ confcom ] : https://dev.azure.com/msazure/One/_build/results?buildId=151191933&view=results |
* Add containers from_vn2 command * Satisfy azdev style and linter checks * Add some tests * Add tests for containers from_vn2 * Full testing * Fix merge conflict * Fix azdev style * Support multiple containers
Why
This command generates a partial container policy based on an input vn2 yaml definition.
How
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)