Skip to content

feat: add node_pool_name output for extra node pools (PR #401)#744

Merged
lonegunmanb merged 3 commits intomainfrom
release/add-node-pools-output
Apr 10, 2026
Merged

feat: add node_pool_name output for extra node pools (PR #401)#744
lonegunmanb merged 3 commits intomainfrom
release/add-node-pools-output

Conversation

@lonegunmanb
Copy link
Copy Markdown
Member

This PR implements the feature requested in #401 by @SubatomicHero / @fleetwoodstack — adding a node_pool_name output that exposes the names of non-default node pools created via var.node_pools.

Changes

  • outputs.tf: Added node_pool_name output using merge() to combine both node_pool_create_before_destroy and node_pool_create_after_destroy resources (the original node_pool resource was split in v7.0).
  • README.md: Auto-updated by make pre-commit (terraform-docs regeneration).

Background

PR #401 was opened ~3 years ago but became stale due to merge conflicts and an outdated resource reference (azurerm_kubernetes_cluster_node_pool.node_pool no longer exists). This PR applies the same intent with the corrected resource references on a clean release branch from main.

Closes #401

Adds a new output `node_pool_name` that exposes the names of non-default
node pools created via `var.node_pools`. The original PR #401 referenced
the old `azurerm_kubernetes_cluster_node_pool.node_pool` resource which
was split in v7.0 into `node_pool_create_before_destroy` and
`node_pool_create_after_destroy`. This commit uses `merge()` to combine
both resources into a single output map.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ter example

- Add delegation block for Microsoft.Network/applicationGateways to
  azurerm_subnet.appgw in application_gateway_ingress example to fix
  ApplicationGatewayNetworkIsolationRequiresSubnetDelegation error
- Set oidc_issuer_enabled = true in named_cluster example to match
  Azure AKS API default behavior and fix idempotency drift

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add oidc_issuer_enabled = true to multiple_node_pools example to
  match Azure AKS API default behavior (same fix as named_cluster)
- Add actions to appgw subnet delegation to match Azure API response
  for Microsoft.Network/applicationGateways delegation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@jiaweitao001 jiaweitao001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lonegunmanb lonegunmanb merged commit c8ae924 into main Apr 10, 2026
4 of 5 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Azure Module Kanban Apr 10, 2026
@lonegunmanb lonegunmanb deleted the release/add-node-pools-output branch April 10, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants