-
Notifications
You must be signed in to change notification settings - Fork 14.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
Passing Custom Image Family Name to the DataprocClusterCreateOperator() #15245
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
I will work on this, please let me know any suggestions or comments. |
There is workaround to this, we can just pass family/<family_name> in custom_image parameter to DataprocClusterCreateOperator(), taking advantage of because the way custom_image_url is created. But I really think there should be a dedicated parameter custom_image_family for avoiding any confusion, and this substitution might not work in the future. |
…sterCreateoperator (#15250) * [airflow-15245] - custom_image_family added as a parameter to DataprocCreateClusterOperator Signed-off-by: ashish <[email protected]> * [airflow-15245] - test added to check both custom_image and custom_image_family must not be passed Signed-off-by: ashish <[email protected]> * [airflow-#15245] - typo fixed in documentation Signed-off-by: ashish <[email protected]> * [Airflow-15245] - comments updated, more info provided. * [Airflow-15245] - sanity check added for image_version and custom_image_family. * Update airflow/providers/google/cloud/operators/dataproc.py Co-authored-by: Xinbin Huang <[email protected]> * Apply suggestions from code review Co-authored-by: Xinbin Huang <[email protected]> * [Airflow-15245] - added a test case to verify the generated cluster config is as expected with custom_image_family and single_node. * Remove print() from test case Co-authored-by: Ashish Patel <[email protected]> Co-authored-by: Xinbin Huang <[email protected]>
Description
Currently, we can only pass custom Image name to DataprocClusterCreateOperator(),
as the custom image expires after 60 days, we either need to update the image or we need to pass the expiration token.
Functionality is already available in gcloud and REST.
gcloud dataproc clusters test_cluster ...... --image projects/<custom_image_project_id>/global/images/family/<family_name> .......
Use case / motivation
The user should be able to pass either Custom Image or Custom Image family name,
so we don't have to update the image up on expiration or use expiration token.
Are you willing to submit a PR?
Yes
Related Issues
None
The text was updated successfully, but these errors were encountered: