-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HDInsight] - Support ESP, BYOK and update tags #8294
[HDInsight] - Support ESP, BYOK and update tags #8294
Conversation
b4b9723
to
ca57776
Compare
ca57776
to
2037408
Compare
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.
One question, the rest LGTM
key=s.storage_account_key, | ||
container=s.container, | ||
is_default=False | ||
) | ||
for s in additional_storage_accounts | ||
] | ||
|
||
cluster_identity = build_identities_info(assign_identity) | ||
msi_resource_id = assign_identity and next((x for x in assign_identity if x != MSI_LOCAL_ID), None) |
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.
2 things:
- based on the parameter definition above,
assign_identity
is an array, wonder why we only take the first one here? - the validator has ensured system assigned identity will not be possible, i suggest you can simplify the code here and below by not thinking about
MSI_LOCAL_ID
; however if system assigned identity will be possible in possible, then we can keep the code here
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.
Good Catch!
- In the future(this will happen very soon), we will accept more than one assign identities. One is used here while the other one is used for storage. So the parameter should be an array. After all, in this change, array is not necessary. If you feel this is not good, I can change it:)
- I've simplified the code to take the first element of
assign_identity
directly.
@@ -14,7 +14,7 @@ | |||
logger.warn("Wheel is not available, disabling bdist_wheel hook") | |||
cmdclass = {} | |||
|
|||
VERSION = "0.2.0" | |||
VERSION = "0.3.0" |
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.
please add the dependency of azure-mgmt-storage
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.
Added dependency of azure-mgmt-storage
and azure-mgmt-network
. But I am curious why we have to add dependency here? After all the module seems to work well without adding these dependencies.
d0abf4b
to
8ae0c38
Compare
8ae0c38
to
b023837
Compare
Note
Change
create
,application create
: Removed the--virtual-network
and--subnet-name
parameters.create
: Change the--storage-account
to accept name or id of storage account instead of blob endpoints.create
: added the--vnet-name
and--subnet-name
parameters.create
: added support for Enterprise Security Package and disk encryptionrotate-disk-encryption-key
commandupdate
commandThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.