-
Notifications
You must be signed in to change notification settings - Fork 115
Streamline deployment configs #5903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @clincoln8, 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 and cleans up the deployment configurations, primarily focusing on how mixer-related settings are managed within the Helm charts and Skaffold profiles. The changes aim to improve the clarity, maintainability, and consistency of deployment configurations by centralizing mixer-specific overrides, removing redundant parameters, and clarifying the purpose of various configuration files. This streamlines the deployment process and reduces potential for configuration errors. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request does a great job of cleaning up the deployment configurations by separating mixer-specific overrides into their own files and removing redundant values from skaffold.yaml. The changes largely follow the intent described in the pull request description.
I've found a few critical issues that need to be addressed:
- The
nlserver configuration has been accidentally removed or broken in theprod.yamlandstaging.yamlenvironment files. - The
serviceGroupsconfiguration, which includes replica counts, is missing from the newwebsite_mixer_prod.yamlfile. - In
skaffold.yaml, there's a duplicatesetValueskey for one of the profiles, and a requiredmixer.githashis missing for another.
I've left detailed comments with suggestions on how to fix these issues. Addressing them will ensure the deployments remain stable and correctly configured.
…r website_mixer_prod overrides, other nits
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively refactors the deployment configuration by separating mixer-specific overrides into dedicated website_mixer_*.yaml files. This greatly improves the clarity and maintainability of the Skaffold and Helm configurations. The redundant setValues in skaffold.yaml have been cleaned up, and unused workload configurations have been removed from the base values.yaml. The changes align well with the goals outlined in the description.
I've found a critical indentation issue in skaffold.yaml that would break deployments, along with a few medium-severity issues related to code style and consistency. Please address these to finalize the refactoring.
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively cleans up the deployment configuration by separating mixer-specific overrides into dedicated website_mixer_*.yaml files. It successfully removes redundant setValues from skaffold.yaml and consolidates serviceGroup workload configurations, improving clarity and maintainability. The changes also correctly disable ingress for mixer in datcom-website-* deployments and streamline githash parameter handling in deployment scripts. The ordering of valuesFiles in skaffold.yaml ensures proper overriding, as intended.
Changes
Separate out mixer specific overrides into website_mixer_*.yaml files and use those files to override the /mixer/deploy/helm_charts/envs/*.yaml values which override the /mixer/deploy/helm_charts/mixer/values.yaml values.
Remove the redundant setValues overrides in the skaffold.yaml now that the override values are provided in the second valuesFiles array.
In /deploy/helm_charts/dc_website/values.yaml, remove the unused serviceGroup workload configs, keeping the routing configs for ingrese. Changes to the mixer workload configs should be made in the website_mixer_*.yaml files.
Set githash parameters in skaffold.yaml as
setValueTemplates. These are overriden by the--deploy-parametersin the cloud deploy commands like in scripts/deploy_website_cloud_deploy.sh.Disable ingress for mixer in datcom-website-* deployments.
Things for reviewer to look for:
Testing
Pushed to datcom-website-dev. Replica counts reflect the changes. However noticed that the recon service group is still present but was missing the latest revision; we may need to separately remove that workload as a one-off from each datcom-website-* env.
In datcom-mixer-dev, I see that MIXER_GITHASH is propagated correctly.