fix: Null iteration in kubectl-apply module#5430
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a runtime error occurring during Terraform execution where an attempt to iterate over a null variable caused the process to fail. By ensuring the input collection defaults to an empty list when null, the module now safely handles cases where no manifests are provided. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request modifies the kubectl-apply module to prevent errors when var.apply_manifests is null by using the coalesce function during iteration. The reviewer suggests that a more robust approach, consistent with the repository's style guide, would be to set nullable = false in the variable definition within variables.tf to handle null values at the module boundary.
|
We need to modify the gke-a3-mega, gke-a3-ultra and gke-a4 blueprints by removing |
6de7f7c to
f706d98
Compare
|
LGTM! |
2b9b9e6
into
GoogleCloudPlatform:develop
This PR fixes below error: