Skip to content

Commit

Permalink
Use proper field when converting AKS config for OsDiskType (#346)
Browse files Browse the repository at this point in the history
* Use proper field when converting AKS config for OsDiskType

* Update sdk to latest
  • Loading branch information
Tsonov authored Jun 27, 2024
1 parent 2c00d98 commit 0193bab
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 40 deletions.
2 changes: 1 addition & 1 deletion castai/resource_node_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func flattenAKSConfig(config *sdk.NodeconfigV1AKSConfig) []map[string]interface{
m["max_pods_per_node"] = *config.MaxPodsPerNode
}

if v := config.MaxPodsPerNode; v != nil {
if v := config.OsDiskType; v != nil {
m["os_disk_type"] = fromAKSDiskType(config.OsDiskType)
}

Expand Down
63 changes: 24 additions & 39 deletions castai/sdk/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0193bab

Please sign in to comment.