-
Notifications
You must be signed in to change notification settings - Fork 0
fix(MAJORLEA-007): 3 review findings across 2 files #77
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: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,7 @@ spec: | |
| - 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 | ||
|
Comment on lines
42
to
48
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ cache-updater-service.yaml missing readinessProbe β GKE load balancer will route traffic before the JVM is ready Added a π€ Prompt for AI agentsfix confidence: π‘ 88 medium β react π/π to teach the reviewer |
||
|
|
@@ -69,7 +69,15 @@ spec: | |
| initialDelaySeconds: 90 | ||
| periodSeconds: 30 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| failureThreshold: 3 | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /actuator/health/readiness | ||
| port: ${SERVER_PORT} | ||
| initialDelaySeconds: 30 | ||
| periodSeconds: 10 | ||
| timeoutSeconds: 5 | ||
| failureThreshold: 3 | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
|
|
@@ -86,4 +94,4 @@ spec: | |
| - name: http | ||
| port: ${SERVER_PORT} | ||
| targetPort: ${SERVER_PORT} | ||
| type: ClusterIP | ||
| type: ClusterIP | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ data: | |
| JAVA_OPTS: "-Xmx${JAVA_MAX_HEAP} -Xms${JAVA_MIN_HEAP} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp" | ||
| CACHE_IMPLEMENTATION: "redis" | ||
| SPRING_DATA_REDIS_HOST: "${REDIS_HOST}" | ||
| SPRING_DATA_REDIS_PORT: "6379" | ||
| SPRING_DATA_REDIS_PORT: "${REDIS_PORT}" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
|
Comment on lines
9
to
15
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ config.yaml hardcodes Redis port 6379 and uses ${NODE_ENV:-production} / ${API_TIMEOUT:-30000} with inline defaults instead of pure envsubst placeholders Three changes were made to address the single finding (which covers three sub-issues): π€ Prompt for AI agentsfix confidence: π‘ 82 medium β react π/π to teach the reviewer |
||
|
|
@@ -42,5 +42,5 @@ kind: ConfigMap | |
| metadata: | ||
| name: frontend-config | ||
| data: | ||
| NODE_ENV: "${NODE_ENV:-production}" | ||
| API_TIMEOUT: "${API_TIMEOUT:-30000}" | ||
| NODE_ENV: "${NODE_ENV}" | ||
| API_TIMEOUT: "${API_TIMEOUT}" | ||
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.
𦩠π΄ cache-updater-service.yaml hardcodes Redis port 6379 instead of using ${REDIS_PORT} placeholder
Changed
value: "6379"tovalue: "${REDIS_PORT}"on line 46 (theSPRING_REDIS_PORTenv var). This is a direct mechanical substitution of the hardcoded literal with an envsubst placeholder, consistent with the pattern already used forSPRING_REDIS_HOSTimmediately above it. TheREDIS_PORTvariable must be defined in whatever envsubst environment/script drives these manifests; if it is not already defined there, that external definition is also required for a complete fix.π€ Prompt for AI agents
fix confidence: π’ 95 high β react π/π to teach the reviewer