Skip to content

Commit 745641d

Browse files
committed
Remove readOnly from nodeImageVersion in agent pool models to unblock rollback
The TypeSpec conversion in Azure/azure-rest-api-specs#38641 incorrectly re-added readOnly to nodeImageVersion in agent pool models. This was intentionally removed in Azure/azure-rest-api-specs#37229 to enable agentpool rollback functionality. The upstream spec fix is tracked in Azure/azure-rest-api-specs#41598 but vendoring may take a week+. This is a temporary SDK-level workaround to unblock the rollback feature that is already in preview for customers. Removes readonly from nodeImageVersion in: - AgentPool - ManagedClusterAgentPoolProfileProperties - ManagedClusterAgentPoolProfile MachineProperties and Snapshot retain readonly as nodeImageVersion is genuinely read-only on those resources.
1 parent da27996 commit 745641d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/models

src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/models/_models_py3.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,6 @@ class AgentPool(ProxyResource):
556556
"e_tag": {"readonly": True},
557557
"os_disk_size_gb": {"maximum": 2048, "minimum": 0},
558558
"current_orchestrator_version": {"readonly": True},
559-
"node_image_version": {"readonly": True},
560559
"provisioning_state": {"readonly": True},
561560
}
562561

@@ -6517,7 +6516,6 @@ class ManagedClusterAgentPoolProfileProperties(_serialization.Model):
65176516
"e_tag": {"readonly": True},
65186517
"os_disk_size_gb": {"maximum": 2048, "minimum": 0},
65196518
"current_orchestrator_version": {"readonly": True},
6520-
"node_image_version": {"readonly": True},
65216519
"provisioning_state": {"readonly": True},
65226520
}
65236521

@@ -7173,7 +7171,6 @@ class ManagedClusterAgentPoolProfile(ManagedClusterAgentPoolProfileProperties):
71737171
"e_tag": {"readonly": True},
71747172
"os_disk_size_gb": {"maximum": 2048, "minimum": 0},
71757173
"current_orchestrator_version": {"readonly": True},
7176-
"node_image_version": {"readonly": True},
71777174
"provisioning_state": {"readonly": True},
71787175
"name": {"required": True, "pattern": r"^[a-z][a-z0-9]{0,11}$"},
71797176
}

0 commit comments

Comments
 (0)