Conversation
Release v0.41.1
Release v0.42.0
|
@rammanoj This looks great! For the CI failures, could you run |
| ) | ||
| ) | ||
|
|
||
| def _update_pool(self, pool: LKENodePool) -> LKENodePool: |
There was a problem hiding this comment.
Would you mind adding the following lint comment to right above the def _update_pool? We will probably want to address this eventually through a refactor but that's definitely out of the scope of this PR 👍
# pylint: disable=too-many-statements
|
One more tiny thing: Assuming firewall_id is only returned for enterprise clusters, we might be need to move the test changes from this PR to |
tests/integration/targets/lke_node_pool_enterprise/tasks/main.yaml
Outdated
Show resolved
Hide resolved
lgarber-akamai
left a comment
There was a problem hiding this comment.
LGTM, thanks for the contribution!
There was a problem hiding this comment.
Pull request overview
This PR adds support for the firewall_id parameter to Linode Kubernetes Engine (LKE) node pools, allowing users to associate firewalls with node pools during creation and update operations.
Key Changes:
- Added
firewall_idfield to node pool specifications in bothlke_node_poolandlke_clustermodules - Implemented update logic to handle firewall ID changes on existing node pools
- Added integration tests to verify firewall assignment and updates
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/modules/lke_node_pool.py | Added firewall_id field specification and update logic for standalone node pool management |
| plugins/modules/lke_cluster.py | Added firewall_id field to node pool sub-options and update logic in cluster-level node pool management |
| tests/integration/targets/lke_node_pool_enterprise/tasks/main.yaml | Added integration tests for firewall creation, assignment, and updates on enterprise node pools |
| tests/integration/targets/lke_cluster_enterprise/tasks/main.yaml | Added assertion to verify firewall ID is set correctly during cluster creation |
| tests/integration/targets/lke_node_pool_basic/tasks/main.yaml | Removed extraneous blank line |
| docs/modules/lke_node_pool.md | Added documentation for the new firewall_id parameter |
| docs/modules/lke_cluster.md | Added documentation for the new firewall_id parameter in node pool sub-options |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/integration/targets/lke_node_pool_enterprise/tasks/main.yaml
Outdated
Show resolved
Hide resolved
tests/integration/targets/lke_node_pool_enterprise/tasks/main.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… into add-lnp-firewall
📝 Description
What does this PR do and why is this change necessary?
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
ansible-playbook playbook.yaml)firewall2and re-run the playbook. Ensure that the firewall-id is updated both in UI the job went well.