Skip to content
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

Merged
merged 1 commit into from
May 15, 2024

Conversation

p3ck
Copy link
Collaborator

@p3ck p3ck commented Apr 30, 2024

SUMMARY

Adds the ability to assign User Assigned Identity to the Azure Kubernetes Service.

ISSUE TYPE
  • Feature Pull Request
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.

Copy link
Collaborator

@Fred-sun Fred-sun left a 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!

@@ -590,6 +611,9 @@
provisioning_state: Succeeded
service_principal_profile:
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
identity:
"type": "UserAssigned",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"type": "UserAssigned",
"type": "UserAssigned"

@@ -938,6 +985,8 @@ def __init__(self):
self.node_resource_group = None
self.pod_identity_profile = None

mutually_exclusive = [('identity','service_principal')]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing whitespace after ','

Suggested change
mutually_exclusive = [('identity','service_principal')]
mutually_exclusive = [('identity', 'service_principal')]

@@ -1387,6 +1450,35 @@ def create_addon_profile_instance(self, addon):
return result


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many blank!

Suggested change

plugins/modules/azure_rm_aks.py Outdated Show resolved Hide resolved
identity=dict(
type='dict',
options=managed_identity_spec,
required_if = [
Copy link
Collaborator

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

Suggested change
required_if = [
required_if=[

@Fred-sun Fred-sun added medium_priority Medium priority new_feature New feature requirments work in In trying to solve, or in working with contributors labels May 7, 2024
Adds the ability to assign User Assigned Identity to the Azure
Kubernetes Service.
@p3ck
Copy link
Collaborator Author

p3ck commented May 7, 2024

Thanks for the feedback. I will be sure to run sanity tests from now on.

@Fred-sun
Copy link
Collaborator

Fred-sun commented May 8, 2024

@p3ck No further questions, I will push for merger. Thank you!

@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged and removed work in In trying to solve, or in working with contributors labels May 8, 2024
@xuzhang3 xuzhang3 merged commit 2de77cc into ansible-collections:dev May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority new_feature New feature requirments ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants