Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imp: add talos.dev compatibility #1572

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

imp: add talos.dev compatibility #1572

wants to merge 4 commits into from

Conversation

faelis
Copy link

@faelis faelis commented Oct 22, 2024

What this PR does / why we need it:

Which issue this PR fixes

Fix processAgent crash when Running on talos.dev cluster. It's because it try to mount files which don't exist on the OS.

Special notes for your reviewer:

I didn't managed to run make update-test-baselines

Checklist

  • Chart Version bumped
  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md
  • For Datadog Operator chart or value changes update the test baselines (run: make update-test-baselines)

@faelis faelis requested review from a team as code owners October 22, 2024 08:29
@clamoriniere clamoriniere requested a review from a team October 22, 2024 09:10
@faelis faelis requested a review from a team as a code owner October 22, 2024 13:32
@@ -65,7 +65,7 @@
mountPropagation: {{ .Values.datadog.hostVolumeMountPropagation }}
readOnly: true
{{- include "linux-container-host-release-volumemounts" . | nindent 4 }}
{{- if .Values.datadog.systemProbe.enableDefaultOsReleasePaths }}
{{- if or .Values.datadog.systemProbe.enableDefaultOsReleasePaths (not .Values.datadog.disableDefaultOsReleasePaths) }}
Copy link
Member

Choose a reason for hiding this comment

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

I think this might need to be and, otherwise the default value of true for the deprecated datadog.systemProbe.enableDefaultOsReleasePaths will always ignore the new config option.

- hostPath:
path: {{ .Values.datadog.systemProbe.osReleasePath | default .Values.datadog.osReleasePath }}
name: os-release-file
{{- end }}
{{- if or (and (eq (include "should-enable-system-probe" .) "true") .Values.datadog.systemProbe.enableDefaultOsReleasePaths) .Values.datadog.sbom.host.enabled }}
{{- if or (and (eq (include "should-enable-system-probe" .) "true") (or .Values.datadog.systemProbe.enableDefaultOsReleasePaths (not .Values.datadog.disableDefaultOsReleasePaths))) .Values.datadog.sbom.host.enabled }}
Copy link
Member

Choose a reason for hiding this comment

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

as above, I think this should be and

@faelis
Copy link
Author

faelis commented Nov 4, 2024

@brycekahle @clamoriniere I think I made a mistake as I didn't want to close the PR.

@brycekahle I applied your fix :)

@faelis faelis reopened this Nov 4, 2024
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