Skip to content

fix(MAJORLEA-006-2): 2 review findings across 2 files - #88

Draft
flamingo[bot] wants to merge 2 commits into
mainfrom
ai-fix/majorlea-006-2-abde7124-89424001
Draft

fix(MAJORLEA-006-2): 2 review findings across 2 files#88
flamingo[bot] wants to merge 2 commits into
mainfrom
ai-fix/majorlea-006-2-abde7124-89424001

Conversation

@flamingo

@flamingo flamingo Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Closes 2 review findings across 2 files.

Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.

# Fix confidence Finding Location
1 🟢 90 high Frontend ConfigMap uses inline shell-style default syntax not supported by envsubst kubernetes/base/config.yaml:42
2 🟢 90 high backend-service.yaml hardcodes Redis port instead of using an envsubst placeholder kubernetes/base/backend-service.yaml:35

What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.


Run: https://product-hub.flamingo.so/admin/code-review
Run id: 89424001-8db6-4ce6-8840-ab853de69d56

Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.

@flamingo flamingo Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 What this fix changed, finding by finding

2 finding(s) fixed in this draft — 2 explained inline on the diff.

@@ -42,5 +42,5 @@ kind: ConfigMap
metadata:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🔴 Frontend ConfigMap uses inline shell-style default syntax not supported by envsubst

Changed NODE_ENV: "${NODE_ENV:-production}" and API_TIMEOUT: "${API_TIMEOUT:-30000}" to NODE_ENV: "${NODE_ENV}" and API_TIMEOUT: "${API_TIMEOUT}" in the frontend-config ConfigMap's data section, replacing unsupported bash-style default-value syntax with plain envsubst-compatible placeholders, exactly per the suggested fix.

🤖 Prompt for AI agents
In kubernetes/base/config.yaml around line 42, review and complete this code-review fix: Frontend ConfigMap uses inline shell-style default syntax not supported by envsubst.
What the draft fix changed: Changed `NODE_ENV: "${NODE_ENV:-production}"` and `API_TIMEOUT: "${API_TIMEOUT:-30000}"` to `NODE_ENV: "${NODE_ENV}"` and `API_TIMEOUT: "${API_TIMEOUT}"` in the `frontend-config` ConfigMap's `data` section, replacing unsupported bash-style default-value syntax with plain envsubst-compatible placeholders, exactly per the suggested fix.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer

Comment on lines 42 to 48
- name: SPRING_REDIS_HOST
value: "${REDIS_HOST}"
- name: SPRING_REDIS_PORT
value: "6379"
value: "${REDIS_PORT}"
- name: JAVA_MIN_HEAP
value: "${JAVA_MIN_HEAP}"
- name: JAVA_MAX_HEAP

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🔴 backend-service.yaml hardcodes Redis port instead of using an envsubst placeholder

Changed the hardcoded value: "6379" to value: "${REDIS_PORT}" for the SPRING_REDIS_PORT env var in the Deployment container spec (kubernetes/base/backend-service.yaml, line 35), matching the envsubst placeholder pattern used for SPRING_REDIS_HOST and all other environment-specific values in the file. This is a mechanical templating change; the only unverified part is ensuring the deployment pipeline's envsubst variable list/defaults file is updated to include REDIS_PORT (defaulting to 6379) outside this file's scope.

🤖 Prompt for AI agents
In kubernetes/base/backend-service.yaml around line 35, review and complete this code-review fix: backend-service.yaml hardcodes Redis port instead of using an envsubst placeholder.
What the draft fix changed: Changed the hardcoded `value: "6379"` to `value: "${REDIS_PORT}"` for the `SPRING_REDIS_PORT` env var in the Deployment container spec (`kubernetes/base/backend-service.yaml`, line 35), matching the envsubst placeholder pattern used for `SPRING_REDIS_HOST` and all other environment-specific values in the file. This is a mechanical templating change; the only unverified part is ensuring the deployment pipeline's envsubst variable list/defaults file is updated to include `REDIS_PORT` (defaulting to 6379) outside this file's scope.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟢 90 high — react 👍/👎 to teach the reviewer

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.

0 participants