Skip to content

Conversation

@google-labs-jules
Copy link

This change adds a new converter for the compute.googleapis.com/Image asset type. The converter handles the mapping between the Terraform plan and the CAI asset, including fields such as name, source_snapshot, disk_size_gb, and licenses. A new test case has been added to validate the converter.


PR created automatically by Jules for task 7007410325176438087

This change adds a new converter for the `compute.googleapis.com/Image` asset type.

The following changes are included:
- A new entry for `google_compute_image` has been added to `mmv1/third_party/tgc/resource_converters.go.tmpl`.
- A comprehensive test case has been added to `mmv1/third_party/tgc/tests/data/` to validate the converter.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

Copy link
Owner

Choose a reason for hiding this comment

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

prettify the json file

Comment on lines 2 to 5
"ancestors": [
"projects/{{.Project.Number}}",
"organizations/{{.OrgID}}"
],
Copy link
Owner

Choose a reason for hiding this comment

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

use ancestry_path in place of this

Comment on lines 1 to 8
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 4.54.0"
}
}
}
Copy link
Owner

Choose a reason for hiding this comment

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

Not Required in test case

Comment on lines 10 to 18
variable "project_id" {
description = "The project ID to host the resources."
type = string
}

variable "organization_id" {
description = "The organization ID."
type = string
}
Copy link
Owner

Choose a reason for hiding this comment

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

Remove this variables.

}

provider "google" {
project = var.project_id
Copy link
Owner

Choose a reason for hiding this comment

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

Use "{{.Provider.project}}"

Comment on lines 24 to 25
data "google_project" "project" {
}
Copy link
Owner

Choose a reason for hiding this comment

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

Not required

google-labs-jules bot and others added 2 commits October 31, 2025 17:16
This change adds a new converter for the `compute.googleapis.com/Image` asset type.

The following changes are included:
- A new entry for `google_compute_image` has been added to `mmv1/third_party/tgc/resource_converters.go.tmpl`.
- A comprehensive test case has been added to `mmv1/third_party/tgc/tests/data/` to validate the converter.
- Addressed comments on the pull request.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants