fix initalDelaySeonds for deploy/sts#546
Conversation
WalkthroughThe health-check schema for startup timing is updated across deployment modules by renaming Changes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
modules/service/statefulset/0.1/facets.yaml (1)
412-419:⚠️ Potential issue | 🟠 Major | ⚡ Quick winUnify startup delay key naming across main runtime and sidecars
Line 412 introduces
startup_initial_delay_seconds, but sidecars still usestartup_start_up_timeat Line 1701. This creates two keys for the same concept in one schema. Also, title/placeholder text still says “Start-Up Time”, which no longer matches the key semantics.🔧 Proposed fix
- startup_initial_delay_seconds: + startup_initial_delay_seconds: type: integer - title: Startup Start-Up Time + title: Startup Initial Delay Seconds default: 10 minimum: 0 maximum: 10000 - x-ui-placeholder: Enter startup start up time for the Pod + x-ui-placeholder: Enter startup initial delay in seconds for the Pod x-ui-error-message: Value doesn't match pattern, accepted values are from 0-10000 @@ - startup_start_up_time: + startup_initial_delay_seconds: type: integer - title: Startup Start-Up Time + title: Startup Initial Delay Seconds default: 10 minimum: 0 maximum: 10000 - x-ui-placeholder: Enter startup start up time for the Pod + x-ui-placeholder: Enter startup initial delay in seconds for the PodAlso applies to: 1701-1708
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@modules/service/statefulset/0.1/facets.yaml` around lines 412 - 419, Replace the duplicate keys by unifying the schema to use a single, consistent property name (choose and standardize on either startup_initial_delay_seconds or startup_start_up_time) across the main runtime and all sidecar definitions (references: startup_initial_delay_seconds and startup_start_up_time), and update the title, x-ui-placeholder and x-ui-error-message values to reflect the chosen semantics (e.g., "Startup initial delay (seconds)" and "Enter startup initial delay in seconds") so the key name, title and placeholders are consistent across the schema.modules/service/deployment/0.1/facets.yaml (1)
422-429:⚠️ Potential issue | 🟠 Major | ⚡ Quick winApply the same startup delay rename in sidecars and UI labels
Line 422 renames the main runtime field to
startup_initial_delay_seconds, but sidecars still exposestartup_start_up_time(Line 1666). The title/placeholder also still describe “Start-Up Time” instead of initial delay seconds.🔧 Proposed fix
startup_initial_delay_seconds: type: integer - title: Startup Start-Up Time + title: Startup Initial Delay Seconds default: 10 minimum: 0 maximum: 10000 - x-ui-placeholder: "Enter startup start up time for the Pod" + x-ui-placeholder: "Enter startup initial delay in seconds for the Pod" @@ - startup_start_up_time: + startup_initial_delay_seconds: type: integer - title: Startup Start-Up Time + title: Startup Initial Delay Seconds default: 10 minimum: 0 maximum: 10000 - x-ui-placeholder: "Enter startup start up time for the Pod" + x-ui-placeholder: "Enter startup initial delay in seconds for the Pod"Also applies to: 1666-1673
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@modules/service/deployment/0.1/facets.yaml` around lines 422 - 429, The sidecar and UI labels are inconsistent with the renamed main field: change any occurrences of startup_start_up_time (sidecars) to startup_initial_delay_seconds so the schema key matches the main runtime field (startup_initial_delay_seconds), and update the title, x-ui-placeholder and x-ui-error-message values for both the main and sidecar entries to reference "Startup initial delay seconds" (or similar phrasing) instead of "Start-Up Time"/"start up time" so the label and placeholder accurately describe initial delay seconds across the file; ensure both schema properties and their UI metadata (title, x-ui-placeholder, x-ui-error-message) are updated for the sidecar block that currently uses startup_start_up_time and the main block using startup_initial_delay_seconds.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@modules/service/deployment/0.1/facets.yaml`:
- Around line 422-429: The sidecar and UI labels are inconsistent with the
renamed main field: change any occurrences of startup_start_up_time (sidecars)
to startup_initial_delay_seconds so the schema key matches the main runtime
field (startup_initial_delay_seconds), and update the title, x-ui-placeholder
and x-ui-error-message values for both the main and sidecar entries to reference
"Startup initial delay seconds" (or similar phrasing) instead of "Start-Up
Time"/"start up time" so the label and placeholder accurately describe initial
delay seconds across the file; ensure both schema properties and their UI
metadata (title, x-ui-placeholder, x-ui-error-message) are updated for the
sidecar block that currently uses startup_start_up_time and the main block using
startup_initial_delay_seconds.
In `@modules/service/statefulset/0.1/facets.yaml`:
- Around line 412-419: Replace the duplicate keys by unifying the schema to use
a single, consistent property name (choose and standardize on either
startup_initial_delay_seconds or startup_start_up_time) across the main runtime
and all sidecar definitions (references: startup_initial_delay_seconds and
startup_start_up_time), and update the title, x-ui-placeholder and
x-ui-error-message values to reflect the chosen semantics (e.g., "Startup
initial delay (seconds)" and "Enter startup initial delay in seconds") so the
key name, title and placeholders are consistent across the schema.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ad9f4547-af29-4d22-833e-fc74fd720176
📒 Files selected for processing (2)
modules/service/deployment/0.1/facets.yamlmodules/service/statefulset/0.1/facets.yaml
Description
Fixed incorrect schema field name for startup probe's initialDelaySeconds in facets.yaml. Changed
startup_start_up_time to startup_initial_delay_seconds to match what the Helm template (_helpers.tpl) actually reads.
Context
The Helm template at _helpers.tpl:320 reads:
{{ default .Values.spec.runtime.health_checks.start_up_time
.Values.spec.runtime.health_checks.startup_initial_delay_seconds | default 10 }}
The facets.yaml schema was defining the field as startup_start_up_time, which is not consumed by the template.
This caused any value set via the UI form to be silently ignored, and the startup probe would always fall
back to the default of 10.
Any service that configured startup_start_up_time via the form was not getting the correct initialDelaySeconds
value applied to the startup probe — unless they also happened to set startup_initial_delay_seconds directly
in JSON mode.
Related issues
Type of change
Checklist
developbranchTesting
Reviewer instructions