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

[HDInsight] - Support ESP, BYOK and update tags #8294

Merged
merged 3 commits into from
Jan 22, 2019

Conversation

idear1203
Copy link
Contributor

@idear1203 idear1203 commented Jan 18, 2019

Note

  • Feature update. See Change.
  • Move test into East US. Re-record tests.

Change

  • BREAKING 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 encryption
  • Added rotate-disk-encryption-key command
  • Added update command

This 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.

@idear1203 idear1203 force-pushed the hdi_support_esp_byok_update_tags branch 2 times, most recently from b4b9723 to ca57776 Compare January 18, 2019 13:05
Copy link
Contributor

@yugangw-msft yugangw-msft left a 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)
Copy link
Contributor

Choose a reason for hiding this comment

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

2 things:

  1. based on the parameter definition above, assign_identity is an array, wonder why we only take the first one here?
  2. 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

Copy link
Contributor Author

@idear1203 idear1203 Jan 19, 2019

Choose a reason for hiding this comment

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

Good Catch!

  1. 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:)
  2. 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"
Copy link
Contributor

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

Copy link
Contributor Author

@idear1203 idear1203 Jan 19, 2019

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.

@idear1203 idear1203 force-pushed the hdi_support_esp_byok_update_tags branch 2 times, most recently from d0abf4b to 8ae0c38 Compare January 21, 2019 03:43
@idear1203 idear1203 force-pushed the hdi_support_esp_byok_update_tags branch from 8ae0c38 to b023837 Compare January 21, 2019 03:48
@yugangw-msft yugangw-msft merged commit fe8c896 into Azure:dev Jan 22, 2019
@idear1203 idear1203 deleted the hdi_support_esp_byok_update_tags branch January 23, 2019 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants