Skip to content

fix initalDelaySeonds for deploy/sts#546

Merged
mbhandari31 merged 1 commit into
masterfrom
fix-startup-initial-delay-seconds
May 5, 2026
Merged

fix initalDelaySeonds for deploy/sts#546
mbhandari31 merged 1 commit into
masterfrom
fix-startup-initial-delay-seconds

Conversation

@rauneetverma

@rauneetverma rauneetverma commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have created feat/bugfix branch out of develop branch
  • Code passes linting/formatting checks
  • Changes to resources have been tested in our dev environments
  • I have made corresponding changes to the documentation

Testing

Reviewer instructions

@coderabbitai

coderabbitai Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The health-check schema for startup timing is updated across deployment modules by renaming startup_start_up_time to startup_initial_delay_seconds. The field type, validation constraints, and UI behavior remain unchanged.

Changes

Cohort / File(s) Summary
Health-check startup timing field rename
modules/service/deployment/0.1/facets.yaml, modules/service/statefulset/0.1/facets.yaml
Replaced spec.runtime.health_checks.startup_start_up_time with spec.runtime.health_checks.startup_initial_delay_seconds while preserving integer type, default/min/max constraints, and UI properties.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title references fixing 'initalDelaySeonds' which aligns with the actual changes (renaming startup_start_up_time to startup_initial_delay_seconds), but contains a typo and is somewhat vague about the actual field name being corrected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description provides clear context about the bug fix, explains the root cause with references to the Helm template, and correctly identifies the schema field name change.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-startup-initial-delay-seconds

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 win

Unify startup delay key naming across main runtime and sidecars

Line 412 introduces startup_initial_delay_seconds, but sidecars still use startup_start_up_time at 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 Pod

Also 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 win

Apply 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 expose startup_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

📥 Commits

Reviewing files that changed from the base of the PR and between 479ddb4 and d32a0a6.

📒 Files selected for processing (2)
  • modules/service/deployment/0.1/facets.yaml
  • modules/service/statefulset/0.1/facets.yaml

@mbhandari31
mbhandari31 merged commit 4379e03 into master May 5, 2026
2 checks passed
@mbhandari31
mbhandari31 deleted the fix-startup-initial-delay-seconds branch May 5, 2026 09:43
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.

2 participants