-
Notifications
You must be signed in to change notification settings - Fork 67
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
terraform, azure and utoronto: an upgrade, misc to support it, and misc opportunistic details #3596
Conversation
This comment was relevant before 2i2c-org#3595, but not after.
@yuvipanda thank you soo much for the quick an thorugh review!
|
e60dfbb
to
d6d89f5
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.
Thanks a lot @consideRatio! This mostly looks good to me - however, I'd like us to do one of two things:
- Have separate
core_node_pool
,notebook_nodepools
anddask_nodepool
, to match what we have on GCP - Encode via type definition somehow that the only supported keys for the
node_pools
map are "core", "user" and "dask"
Currently, (2) is encoded in the code - if we use any other key, it will just silently fail.
I think (2) is preferable (here and in GCP too, although that's out of scope) but if that's not possible I'd like us to do (1) than leave it implicit.
I appreciate your cleanup efforts, @consideRatio!
Thank you for reviewing @yuvipanda!!
I think I can come up with a way to make this fail loudly, but not via the type definition. I tried to do this myself but failed to find a way to do it without breaking the DRY principle and verbosly duplicating the type definition for any individual node pool. I don't want to break DRY in this case, I find it gets too messy and hard to maintain. I'm aiming to meet your request for changes by failing loudly if:
|
Ahh googling for "terraform assertions" I ended up finding that there can be a "custom validation" block for variables like documented in https://developer.hashicorp.com/terraform/language/values/variables#custom-validation-rules - I'll go for that. |
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.
This is awesome work, and TIL about terraform validation too. Thank you for digging into this, @consideRatio! LGTM now.
Thank you for reviewing @yuvipanda !! |
@consideRatio thank you for patiently doing a couple rounds with me async on this! |
The terraform changes are applied already. I've done some things besides just upgrading the k8s cluster version that I believed were resonable to go for opportunistically.
Changes overviewed
Standard_E8s_v3
to_v5
, which is liker3.2xlarge
tor5.2xlarge
in AWS. This price of these are the same.hub.jupyter.org/node-size
)