Skip to content

fix(charts): exclude 'address' key from livenessProbe definition#5377

Merged
Skarlso merged 2 commits intoexternal-secrets:mainfrom
baprx:fix/liveness-probe
Sep 27, 2025
Merged

fix(charts): exclude 'address' key from livenessProbe definition#5377
Skarlso merged 2 commits intoexternal-secrets:mainfrom
baprx:fix/liveness-probe

Conversation

@baprx
Copy link
Copy Markdown
Contributor

@baprx baprx commented Sep 26, 2025

Problem Statement

What is the problem you're trying to solve?

address is not part of the allowed fields of the livenessProbe section (kubectl explain Pod.spec.containers.livenessProbe)

Proposed Changes

We now exclude the address field from the dict.

Another option if you prefer would be to move the address key one level above (.livenessProbe instead of .livenessProbe.spec) so we can keep templating the full .livenessProbe.spec.

Format

Checklist

  • I have read the contribution guidelines
  • All commits are signed with git commit --signoff
  • My changes have reasonable test coverage
  • All tests pass with make test
  • I ensured my PR is ready for review with make reviewable

Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>
@github-actions github-actions bot added area/charts Issues / Pull Requests related to our helm charts kind/bug Categorizes issue or PR as related to a bug. size/xs labels Sep 26, 2025
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
{{- toYaml .Values.livenessProbe.spec | nindent 12 }}
{{- toYaml (omit .Values.livenessProbe.spec "address") | nindent 12 }}
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.

Damn it. If I would have known about "omit" I wouldn't have introduced spec :D :D Well, lesson learned here.

@Skarlso Skarlso merged commit 823261d into external-secrets:main Sep 27, 2025
7 checks passed
@sonarqubecloud
Copy link
Copy Markdown

SamuelMolling pushed a commit to SamuelMolling/external-secrets that referenced this pull request Oct 24, 2025
…xternal-secrets#5377)

Signed-off-by: Baptiste Roux <arte.but.posix@gmail.com>
Co-authored-by: Gergely Brautigam <skarlso777@gmail.com>
Signed-off-by: Samuel Molling <samuelmolling@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/charts Issues / Pull Requests related to our helm charts kind/bug Categorizes issue or PR as related to a bug. size/xs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants