Migrating install_aspad_lite module to helm#5410
Migrating install_aspad_lite module to helm#5410agrawalkhushi18 wants to merge 2 commits intoGoogleCloudPlatform:developfrom
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 significantly refactors the 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
|
3638311 to
0a03ae2
Compare
There was a problem hiding this comment.
Code Review
This pull request refactors the installation of the asapd_lite daemonset by migrating its deployment from a direct kubectl module to a helm_install module. This change involves updating the asapd_lite variable definition in variables.tf and README.md to include optional parameters for installation, configuration path, and template variables. A new local variable asapd_lite_config_content is introduced in main.tf to process the configuration, which is then passed to the helm_install module. A review comment suggests simplifying a conditional check for var.asapd_lite.config_path in main.tf by removing the redundant != null check, as the variable's definition ensures it will default to an empty string.
| ) | ||
|
|
||
| asapd_lite_config_content = ( | ||
| var.asapd_lite.config_path != null && var.asapd_lite.config_path != "" ? |
There was a problem hiding this comment.
The check var.asapd_lite.config_path != null is redundant. Since config_path is defined in variables.tf as optional(string, ""), its value will never be null; it will default to an empty string ("") if not provided. Simplifying this condition will make the code clearer and more aligned with the variable's definition.
var.asapd_lite.config_path != "" ?
253ab3a to
aaa8cf1
Compare
This PR migrates the install_aspad_lite module to use helm provider instead of
gavinbunney/kubectlprovider as an effort to deprecate the kubectl submodule usage across kubectl-apply.Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.