Skip to content

Conversation

@Chaffelson
Copy link
Contributor

Dependencies:
cloudera-labs/cdpy#30

cloudera.cloud:

  • renamed df.py to df_service.py to reflect that other DataFlow modules for Deployments will be needed in future
  • Include changes to submission parameters and method names for 'cdp df' calls in cdpy
  • Modify enable and disable service logic to match new methods and parameters
  • df_info now supports name, df_crn, or env_crn for filtering results
  • env_info once again checks for DataFlow during detailed Environment information collection
  • Added input validation for DataFlow service creation

Signed-off-by: Daniel Chaffelson [email protected]

Cdpy:
* Rework cdpy/df to use the 'service' nomenclature instead of 'environment' for DataFlow
* Allow separate submission of a name, env_crn, or df_crn for filtering the list of enabled DataFlow services
* Allow submission of an env_crn or df_crn for the description of a Dataflow Service, as you cannot know the df_crn during creation until it is actually created
* Standardise on use of df_crn for the service crn in DataFlow to provide differentiation from the env crn and other crns in CDP
* Add new service enablement parameters to the dfx enable_service call
* Add new terminate option to the DFX disable_service call
* Change delete_environment to reset_service to reflect new usage
* Squelch 403 response on describing a recently deleted Dataflow Service while it is being cleaned up

cloudera.cloud:
* renamed df.py to df_service.py to reflect that other DataFlow modules for Deployments will be needed in future
* Include changes to submission parameters and method names for 'cdp df' calls in cdpy
* Modify enable and disable service logic to match new methods and parameters
* df_info now supports name, df_crn, or env_crn for filtering results
* env_info once again checks for DataFlow during detailed Environment information collection
* Added input validation for DataFlow service creation

cloudera.exe:
* Added defaults handling for new DataFlow submission parameters
* renamed various methods and parameters to reflect updated DataFlow service naming and options

Signed-off-by: Daniel Chaffelson <[email protected]>
Copy link
Member

@wmudge wmudge left a comment

Choose a reason for hiding this comment

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

Minor changes. Really hate to commit the scope creep of env_info/one-ring-to-rule-them-all.

df = None
# Removing until DF is GA so we are not dependent on Beta functionality
# df = self.cdpy.df.describe_environment(this_env['crn'])
df = self.cdpy.df.list_services(env_crn=this_env['crn'])
Copy link
Member

Choose a reason for hiding this comment

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

This is scope creep! #21

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently safe delete of an environment relies on this functionality, agree that it should be cleaned up to not need it but I don't want to cross the streams.

Add terminate option to docs for df_service.py
Add additional options to examples/cdf for df service

Signed-off-by: Daniel Chaffelson <[email protected]>
@Chaffelson Chaffelson requested a review from cmperro October 13, 2021 13:29
@wmudge wmudge merged commit dea792b into cloudera-labs:devel Oct 28, 2021
@wmudge wmudge added the enhancement MINOR - New feature or enhancement in the CHANGELOG label Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement MINOR - New feature or enhancement in the CHANGELOG

Development

Successfully merging this pull request may close these issues.

3 participants