Skip to content

[module-sdk] config is not gen if a hook has only ReadinessProbe#100

Merged
ldmonster merged 2 commits intomainfrom
fix-with-readinessprobe
Apr 2, 2026
Merged

[module-sdk] config is not gen if a hook has only ReadinessProbe#100
ldmonster merged 2 commits intomainfrom
fix-with-readinessprobe

Conversation

@RottenRat
Copy link
Copy Markdown
Contributor

@RottenRat RottenRat commented Mar 31, 2026

The PrintHookConfigs method returned error if len(executors) == 0 && settingsCheck == nil, without checking for readiness probe.
Readiness was added to the config only after this check, so the execution did not reach it.
There was a similar problem in WriteHookConfigsInFile

Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
Signed-off-by: Sinelnikov Michail <mikhail.sinelnikov@flant.com>
@RottenRat RottenRat self-assigned this Mar 31, 2026
@RottenRat RottenRat marked this pull request as draft March 31, 2026 13:51
@ipaqsa ipaqsa requested review from ipaqsa and ldmonster March 31, 2026 13:51
@RottenRat RottenRat marked this pull request as ready for review April 2, 2026 10:14
@ipaqsa ipaqsa changed the title Config is not generated if readinessProbe is without hooks [fix] config is not generated if a hook has only ReadinessProbe Apr 2, 2026
@ldmonster ldmonster changed the title [fix] config is not generated if a hook has only ReadinessProbe [module-sdk] config is not gen if a hook has only ReadinessProbe Apr 2, 2026
@ldmonster ldmonster merged commit 9958475 into main Apr 2, 2026
51 checks passed
@ldmonster ldmonster deleted the fix-with-readinessprobe branch April 2, 2026 15:01
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.

3 participants