Added support for licenses#59
Conversation
This adds an optional parameter for licenses to be added to dataproc images. This parameter supports the gcloud syntax for passing in licenses of a list of licenses seperates by commas inside of a string, with an optional space.
|
May you explain what is use case for the extra licenses or even overriding licenses? |
|
+1, this requires a product decision, we need to understand the use case first. In my opinion, we might not want customers to apply other licenses other than the default Dataproc license. |
|
To clarify I’m not asking for anything in GCP to change. We just want the ability to add to the list of licenses through this script. This behavior does not effect applied licenses from the original image. The functionality of adding licenses to an image is something we already do in an additional automation step after building the Dataproc image. The use case: We utilize licenses as a way to validate that our image is the base image for all our customer's images. |
|
|
||
| echo 'Creating custom image.' | ||
| gcloud compute images create my-image --project=my-project --source-disk-zone=us-west1-a --source-disk=my-image-install --storage-location=us-east1 --family=debian9 | ||
| gcloud compute images create my-image --project=my-project --source-disk-zone=us-west1-a --source-disk=my-image-install --storage-location=us-east1 --family=debian9 --licenses='https://www.googleapis.com/compute/v1/projects/my-project/global/licenses/my-license' |
There was a problem hiding this comment.
The family needs to be updated here. We're up to 12 on the debian versions, and so support for 9 has slipped into the bit bucket with oldoldoldstable
| 'storage_location': 'us-east1', | ||
| 'shutdown_timer_in_sec': 500, | ||
| 'base_image_family': 'projects/my-dataproc-project/global/images/family/debian-10' | ||
| 'base_image_family': 'projects/my-dataproc-project/global/images/family/debian-10', |
There was a problem hiding this comment.
please let's d use 12 if we can here. 10 will be slipping into the bit bucket with the impending release of 13, trixie, which is already in testing.
This adds an optional parameter for licenses to be added to dataproc
images.
This parameter supports the gcloud syntax for passing in licenses of
a list of licenses separates by commas inside of a string, with an
optional space.