-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AKS] az aks create/update: Support in place param updates for managed prom
#29273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @bragi92, |
️✔️AzureCLI-BreakingChangeTest
|
|
AKS |
src/azure-cli/azure/cli/command_modules/acs/azuremonitormetrics/azuremonitorprofile.py
Show resolved
Hide resolved
FumingZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Queued live test to validate the change.
- test_aks_create_with_azuremonitormetrics
- test_aks_update_with_azuremonitormetrics
|
@FumingZhang I had to push in a styling fix. Queued live test again. Can you also help with re-running the PR checks? It looks like its failing for an unrelated reason. |
az aks create/update: support in place param updates for managed promaz aks create/update: Support in place param updates for managed prom
|
Hey @bragi92, I don't have the permission either, will ping cli team member to help take a look |
Related command
az aks update -n kaveeshcli22 -g kaveeshcli --enable-azure-monitor-metrics --ksm-metric-labels-allow-list "namespaces=[k8s-label-1,k8s-label-n]" --ksm-metric-annotations-allow-list "pods=[k8s-annotation-1,k8s-annotation-n]"Description
Updating the behavior of the az aks update command for managed prom to accept KSM parameter updates even when the addon is enabled on the cluster and stopping the error we throw saying that you have to disable the addon first before updating.
Testing Guide
Have the Azure Managed Prometheus enabled on a cluster.
Now run :
az aks update -n kaveeshcli22 -g kaveeshcli --enable-azure-monitor-metrics --ksm-metric-labels-allow-list "namespaces=[k8s-label-1,k8s-label-n]" --ksm-metric-annotations-allow-list "pods=[k8s-annotation-1,k8s-annotation-n]"The command should give an output which contains the following based on the parameters you passed in:
"azureMonitorProfile": {
"metrics": {
"enabled": true,
"kubeStateMetrics": {
"metricAnnotationsAllowList": "pods=[k8s-annotation-1,k8s-annotation-n]",
"metricLabelsAllowlist": "namespaces=[k8s-label-1,k8s-label-n]"
}
}
},
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.