Azure / Azure/azure-rest-api-specs

`Microsoft.ContainerService` - `kubeProxyConfig` isn't returned when preview feature is enabled

Open
#22,208 7 comments 15 reactions 0 assignees View on GitHub
AKS Container Service customer-reported needs-team-attention question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Service: `Container Service`
API Version: `2022-09-02-preview`

We'd like to add support for this feature in Terraform, unfortunately we've run into some issues regarding the behaviour of the API.

As documented in the [AKS Cluster Schema](https://learn.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters?pivots=deployment-language-bicep#containerservicenetworkprofilekubeproxyconfig) Kube Proxy is enabled by default on clusters. When the preview feature is enabled I would expect the API to return `kubeProxyConfig` in the response if it's enabled, i.e.
```
"networkProfile": {
...
"kubeProxyConfig": {
"enabled": true,
"mode": "IPTABLES"
}
...
}

```

Currently nothing is returned which doesn't accurately reflect the state of the cluster and also means Terraform can't know that Kube Proxy is enabled.

In addition, disabling Kube Proxy by sending
```
"kubeProxyConfig": {
"enabled": false
}
```

results in the following response from the API.
```
"kubeProxyConfig": {}
```
Which isn't inconsistent with the behaviour of features in the rest of the API, like with AGIC for example.

Would you be able to look into:
1. Adding Kube Proxy to the API response when the preview feature and is enabled and Kube Proxy is enabled.
2. Return `"enabled": false` instead of an empty dictionary when Kube Proxy is disabled.

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Microsoft.ContainerService API definition for version 2022-09-02-preview and reproducing responses with kubeProxyConfig enabled and disabled. Done means the API response accurately represents both states, including an explicit enabled value when disabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.