Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

vertexai: add google_vertex_ai_model_development_cluster_xmanager resource (beta) - #20584

Open
NA2047 wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
NA2047:mm-b-582339842-xmanager
Open

NA2047 wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
NA2047:mm-b-582339842-xmanager

Conversation

@NA2047

@NA2047 NA2047 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds google_vertex_ai_model_development_cluster_xmanager (beta), which turns on a managed XManager instance for a GKE google_vertex_ai_model_development_cluster. This replaces #20347, which did the same thing with a field on the cluster.

The API only has :enableXmanager and :disableXmanager on the cluster, with no update or get, and it allows one XManager instance per cluster. So this is its own immutable resource keyed by the cluster, the same shape as google_firebase_storage_bucket (:addFirebase/:removeFirebase). Any change shows up as a replace in the plan, a failed enable only taints this resource instead of the cluster, and the cluster resource doesn't change at all.

Things worth a look:

  • Read goes through the cluster's runtime.xmanager (see the decoder), since there's no get for XManager instances. If XManager gets disabled outside Terraform, the resource drops out of state.
  • The endpoint outputs are also on the cluster's runtime.xmanager, but the cluster reads that before XManager is enabled, so it stays empty until the next refresh. These are set as soon as the enable finishes.
  • network, subnetwork, and xprof_config aren't returned by the API, so they're ignore_read. The docs note covers what that means after an import.
  • Replacing the cluster doesn't change any argument here, and deleting it doesn't disable XManager, so the examples use replace_triggered_by on the cluster's id.
  • region is required instead of coming from the provider default, since it has to match the cluster's region.
  • There's no sweeper. Generated sweepers only send DELETE, and turning XManager off is a POST to :disableXmanager. If a test dies mid-run, the cluster sweeper still deletes the cluster, which removes the XManager endpoints from the VPC, but the XManager instance itself is left behind on the service side. Happy to add a small handwritten sweeper if you'd like one.
  • Without auth_config, anyone who can reach the instance's endpoints in the VPC can use it. That's in a follow-up PR, vertexai: add auth_config to google_vertex_ai_model_development_cluster_xmanager (beta) #20585.

Both samples pass against a real project. Each one creates its own GKE-backed cluster in us-east1 and takes about 65 minutes, mostly cluster creation and XManager setup and teardown.

b/582339842, b/581399661

`google_vertex_ai_model_development_cluster_xmanager` (beta)

…ource (beta)

XManager is turned on and off with the cluster's :enableXmanager and
:disableXmanager methods, and there's no update or get call, so this is an
immutable resource keyed by the cluster. Read uses the cluster's
runtime.xmanager, and since the API doesn't return the inputs they're
ignore_read.
@modular-magician

modular-magician commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 8c75941:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 412 insertions(+)
google-beta provider View Diff 4 files changed, 1503 insertions(+)
terraform-google-conversion View Diff 1 file changed, 174 insertions(+)

Exhaustive test report

✅ Click here to see exhaustive test results

All newly added resource fields have exhaustive lifecycle test coverage (SET, MODIFY, UNSET). See the exhaustive acceptance testing guide for details.

Legend: ✅ Covered (no action needed) · ➖ Exempt (no action needed) · ❌ MISSING (action needed)

google_vertex_ai_model_development_cluster_xmanager

Status Field Path Kind SET MODIFY UNSET
✅ model_development_cluster Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ network Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ region Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ subnetwork Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ xprof_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample (step 1), omitted
✅ xprof_config.gcs_bucket_uri Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent

Test report

Analytics

Total Tests Passed Skipped Affected
176 163 11 2
Affected Service Packages
  • vertexai

Learn how VCR tests work


Step 1: Replaying Mode

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit.

Click here to see the affected tests
  • TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample
  • TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample

View the replaying VCR build log


Step 2: Recording Mode

Recording Mode Findings Test Name
✅ Log - TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample
✅ Log - TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample

🟢 All tests passed!

View the recording VCR build log or the debug logs folder for detailed results.

@NA2047 VCR tests complete for 8c75941!

unused-template-check only finds sample templates through steps, so the
0-step shorthand made it report the sample templates as unused. The
generated tests and docs don't change.
@modular-magician

modular-magician commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit a071137:

Diff report

Your PR generated the following diffs in downstream repositories:

Repository Diff Link Changes
google provider View Diff 1 file changed, 412 insertions(+)
google-beta provider View Diff 4 files changed, 1503 insertions(+)
terraform-google-conversion View Diff 1 file changed, 174 insertions(+)

Exhaustive test report

✅ Click here to see exhaustive test results

All newly added resource fields have exhaustive lifecycle test coverage (SET, MODIFY, UNSET). See the exhaustive acceptance testing guide for details.

Legend: ✅ Covered (no action needed) · ➖ Exempt (no action needed) · ❌ MISSING (action needed)

google_vertex_ai_model_development_cluster_xmanager

Status Field Path Kind SET MODIFY UNSET
✅ model_development_cluster Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ network Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ region Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ subnetwork Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required
✅ xprof_config NestedBlock ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerBasicExample (step 1), omitted
✅ xprof_config.gcs_bucket_uri Leaf ✅ Covered
TestAccVertexAIModelDevelopmentClusterXmanager_vertexAiModelDevelopmentClusterXmanagerFullExample (step 1)
➖ Exempt
resource_not_updatable
➖ Exempt
required_in_parent

Test report

Analytics

Total Tests Passed Skipped Affected
176 165 11 0
Affected Service Packages
  • vertexai

Learn how VCR tests work


Step 1: Replaying Mode

🟢 All tests passed in Replaying mode! No Recording was needed.

View the replaying VCR build log

@NA2047 VCR tests complete for a071137!

@NA2047
NA2047 requested a review from rileykarson December 5, 2026 00:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants