-
Notifications
You must be signed in to change notification settings - Fork 337
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 UserAssigned Identity to aks module #1543
Conversation
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.
@p3ck small change request!
plugins/modules/azure_rm_aks.py
Outdated
@@ -590,6 +611,9 @@ | |||
provisioning_state: Succeeded | |||
service_principal_profile: | |||
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |||
identity: | |||
"type": "UserAssigned", |
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.
"type": "UserAssigned", | |
"type": "UserAssigned" |
plugins/modules/azure_rm_aks.py
Outdated
@@ -938,6 +985,8 @@ def __init__(self): | |||
self.node_resource_group = None | |||
self.pod_identity_profile = None | |||
|
|||
mutually_exclusive = [('identity','service_principal')] |
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.
missing whitespace after ','
mutually_exclusive = [('identity','service_principal')] | |
mutually_exclusive = [('identity', 'service_principal')] |
plugins/modules/azure_rm_aks.py
Outdated
@@ -1387,6 +1450,35 @@ def create_addon_profile_instance(self, addon): | |||
return result | |||
|
|||
|
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.
too many blank!
plugins/modules/azure_rm_aks.py
Outdated
identity=dict( | ||
type='dict', | ||
options=managed_identity_spec, | ||
required_if = [ |
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.
unexpected spaces around keyword / parameter equals
required_if = [ | |
required_if=[ |
Adds the ability to assign User Assigned Identity to the Azure Kubernetes Service.
Thanks for the feedback. I will be sure to run sanity tests from now on. |
@p3ck No further questions, I will push for merger. Thank you! |
Adds the ability to assign User Assigned Identity to the Azure Kubernetes Service.
SUMMARY
Adds the ability to assign User Assigned Identity to the Azure Kubernetes Service.
ISSUE TYPE
COMPONENT NAME
azure_rm_aks
ADDITIONAL INFORMATION
Currently the aks module only supports a service_principal or System Assigned identity. This adds the ability to assign a User Assigned Identity to the cluster.
Integration tests have been updated to validate this feature.