Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
add msi_auth_for_monitoring_enabled #446
add msi_auth_for_monitoring_enabled #446
Changes from 2 commits
a4f6084
4b96aa2
218e831
498e79a
f71d278
46b5902
7807414
7935982
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is already present in provider version 3.47.0:
hashicorp/terraform-provider-azurerm#20757
No need to bump versions. All good.
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.
Why you have the default at false and not null ?
https://github.com/hashicorp/terraform-provider-azurerm/blob/8078e1bcdb8503e6c3a581f91aa3b201c4545f5c/internal/services/containers/kubernetes_addons.go#L121
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.
When running module aks with log_analytics_workspace_enabled = true without specifying
msi_auth_for_monitoring_enabled
the value is false by default. I checked by runningaz aks addon show --addon monitoring
.So I thought default value was false.
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.
It is weird, because enabling monitoring addon with
![image](https://private-user-images.githubusercontent.com/95360516/269620472-0e80ea3d-a141-411b-9104-b233d01b100e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjMyODQsIm5iZiI6MTczOTQ2Mjk4NCwicGF0aCI6Ii85NTM2MDUxNi8yNjk2MjA0NzItMGU4MGVhM2QtYTE0MS00MTFiLTkxMDQtYjIzM2QwMWIxMDBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MDk0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmMmNmMDZmMDU2NzU0YTZkNDcyODBkMGMxZmRiNWFlNzhmOWI1YmU3OGQ5NzJiNDFiN2I4YWUxYTAzNDQyZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.DzYvaEJjqmfrmdFEl9pqjqFGo3zgF_5U0twf6-Mdh4A)
az aks
CLI the default value is True..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.
Also is nullable = false, I interpreted it as only possible values should be either False or True? Correct me if I'm wrong
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.
I agree with @zioproto, according to the provider schema, this
msi_auth_for_monitoring_enabled
argument's default value isnull
, setting default value tofalse
could cause a configuration drift. Would you please set the default value tonull
?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.
@admincasper It is often the case that Terraform has
true
false
andnull
. But when you read back from the azurerm API the values are justtrue
orfalse
. Now we are interested if this value is explicit in the Terraform state asfalse
. I hope this clarifies why you dont get backnull
from youraz aks show
operation.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.
Yeah thanks for clarifying! I've pushed up the changes.
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.
We can remove "Defaults to
false
" hereThere 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.
@admincasper on line 695 at the end of the description string, can you remove:
Thanks
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.
@zioproto I think it needs to default to null. So I changed it to
null
.I think everything should be ok now then?
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.
@admincasper line 694 is ok, the correct default is
null
. don't touch it. In line 695 you have to remove the last statement in the descriptionThere 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.
@zioproto Done. Removed "Defaults to 'null'" in description.
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.
This variable could be set to
null
, we can just remove this setting.