fix: update HPA deployment targets for api and webserver#9593
Open
matikepa wants to merge 1 commit intoonyx-dot-app:mainfrom
Open
fix: update HPA deployment targets for api and webserver#9593matikepa wants to merge 1 commit intoonyx-dot-app:mainfrom
matikepa wants to merge 1 commit intoonyx-dot-app:mainfrom
Conversation
Contributor
Greptile SummaryThis PR fixes a correctness bug in the Helm chart HPA templates where the
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant HPA as "api-hpa (HPA)"
participant WHPA as "webserver-hpa (HPA)"
participant AD as "fullname-api-server (Deployment)"
participant WD as "fullname-web-server (Deployment)"
Note over HPA,AD: Before fix scaleTargetRef pointed to fullname only - non-existent
Note over WHPA,WD: Before fix scaleTargetRef pointed to fullname only - non-existent
HPA->>AD: "scaleTargetRef.name = fullname-api-server (fixed)"
WHPA->>WD: "scaleTargetRef.name = fullname-web-server (fixed)"
Reviews (1): Last reviewed commit: "fix: update HorizontalPodAutoscaler name..." | Re-trigger Greptile |
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Add one-off context when rerunning by tagging
@cubic-dev-aiwith guidance or docs links (includingllms.txt) - Ask questions if you need clarification on any suggestion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
scaleTargetRefdeployment names so autoscalers point to the correct workloads.{{ include "onyx.fullname" . }}to{{ include "onyx.fullname" . }}-api-server.{{ include "onyx.fullname" . }}to{{ include "onyx.fullname" . }}-web-server.How Has This Been Tested?
scaleTargetRef.namein HPA templates:deployment/helm/charts/onyx/templates/api-hpa.yamldeployment/helm/charts/onyx/templates/webserver-hpa.yamlSummary by cubic
Fixes HPA targets for the API and webserver to point to the correct Deployments, restoring autoscaling behavior.
scaleTargetRef.nameinapi-hpa.yamlto{{ include "onyx.fullname" . }}-api-server.scaleTargetRef.nameinwebserver-hpa.yamlto{{ include "onyx.fullname" . }}-web-server.Written for commit b2af913. Summary will update on new commits.