Skip to content

Slurm6. Enable support for CloudSQL#1945

Merged
mr0re1 merged 1 commit into
GoogleCloudPlatform:developfrom
mr0re1:cloudsql
Nov 15, 2023
Merged

Slurm6. Enable support for CloudSQL#1945
mr0re1 merged 1 commit into
GoogleCloudPlatform:developfrom
mr0re1:cloudsql

Conversation

@mr0re1

@mr0re1 mr0re1 commented Nov 7, 2023

Copy link
Copy Markdown
Collaborator
  • Unwrap slurm_cluster/modules/slurm_controller_instance into schedmd-slurm-gcp-v6-controller/controller.tf;
  • Simplify unwrapped slurm_controller_instance;
  • Set depends_on=[module.slurm_files,... for slurm_controller_instance;
  • Allow setting var.cloudsql.

@mr0re1 mr0re1 changed the title Cloudsql Enable support for CloudSQL Nov 10, 2023
@mr0re1 mr0re1 requested a review from tpdownes November 10, 2023 00:25
@mr0re1 mr0re1 added the release-chore To not include into release notes label Nov 10, 2023
@mr0re1 mr0re1 enabled auto-merge November 10, 2023 00:25
@mr0re1 mr0re1 changed the title Enable support for CloudSQL Slurm6. Enable support for CloudSQL Nov 10, 2023

@tpdownes tpdownes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Please make the minimal changes for syntax.
  • I'm a little concerned at the presence of the "conditional creation of resource" (anti-)pattern in several places. This is not the only example of it in the Toolkit, but it can make dependency tracking difficult. I'd like to take a moment (myself) to look at the design doc and understand.
  • I believe this is capturing all the "cleanup" variables behavior in once place (going by memory, this is part of the design) and that's a good thing!

@tpdownes tpdownes assigned mr0re1 and unassigned tpdownes Nov 10, 2023
* Unwrap `slurm_cluster/modules/slurm_controller_instance` into `schedmd-slurm-gcp-v6-controller/controller.tf`;
* Simplify unwrapped `slurm_controller_instance`;
* Set `depends_on=[module.slurm_files,...` for `slurm_controller_instance`;
* Allow setting `var.cloudsql`.

@tpdownes tpdownes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the choice to point directly to _slurm_instance is probably reasonable as having a chain of 2 wrappers is not likely to be helping us.

@mr0re1 mr0re1 merged commit ea78a24 into GoogleCloudPlatform:develop Nov 15, 2023
@mr0re1 mr0re1 deleted the cloudsql branch November 16, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-chore To not include into release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants