Skip to content

feat: startupProbe support in common - #485

Merged
bosbaber merged 1 commit into
mainfrom
stephan/20260915-common-probes
Sep 15, 2026
Merged

bosbaber merged 1 commit into
mainfrom
stephan/20260915-common-probes

Conversation

@bosbaber

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings September 15, 2026 08:24
@bosbaber
bosbaber requested a review from a team as a code owner September 15, 2026 08:24
@bosbaber bosbaber added the manual-versioning Instructs auto versioning to be skipped label Sep 15, 2026
@bosbaber bosbaber self-assigned this Sep 15, 2026
@bosbaber
bosbaber merged commit b40b31a into main Sep 15, 2026
12 checks passed
@bosbaber
bosbaber deleted the stephan/20260915-common-probes branch September 15, 2026 08:25

Copilot AI 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.

🟡 Changes recommended

The new probe action helper can silently render invalid or unintended probe YAML without enforcing that exactly one action is configured.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds startupProbe support to the shared common Helm library chart (plus expanded probe action support), enabling charts using this library to configure Kubernetes startup probes consistently alongside existing liveness/readiness probes.

Changes:

  • Introduces a shared common.probe.action helper to render one of httpGet, tcpSocket, grpc, or exec probe actions.
  • Adds common.startupProbe template with startup-appropriate defaults and wires startupProbe into container rendering.
  • Documents probe usage/defaults in the common chart README and bumps the common chart version.
File summaries
File Description
charts/common/templates/_probe.yaml Adds shared probe-action rendering and introduces startupProbe template/defaults.
charts/common/templates/_container.yaml Renders startupProbe on containers when configured.
charts/common/README.md Documents probe configuration, supported actions, and default timings.
charts/common/Chart.yaml Bumps library chart version to reflect new functionality.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +7 to +17
{{- define "common.probe.action" -}}
{{- if .httpGet }}
httpGet: {{- toYaml .httpGet | nindent 2 }}
{{- else if .tcpSocket }}
tcpSocket: {{- toYaml .tcpSocket | nindent 2 }}
{{- else if .grpc }}
grpc: {{- toYaml .grpc | nindent 2 }}
{{- else }}
exec: {{- toYaml .exec | nindent 2 }}
{{- end }}
{{- end }}
Comment on lines +73 to +75
{{- with $container.startupProbe }}
startupProbe: {{ include "common.startupProbe" (list $top .) | nindent 4 }}
{{- end }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual-versioning Instructs auto versioning to be skipped

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants