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

fix(agent): allows to specify non semver tags [SMAGENT-6093] #1504

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

AlbertoBarba
Copy link
Contributor

What this PR does / why we need it:

Due to the introduction of some features that are available since version 12.18.0 we introduced a check on the version which fails if the provided tag is not a valid semantic version.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Title of the PR starts with type and scope, (e.g. feat(agent,node-analyzer,sysdig-deploy):)
  • Chart Version bumped for the respective charts
  • Variables are documented in the README.md (or README.tpl in some charts)
  • Check GithubAction checks (like lint) to avoid merge-check stoppers
  • All test files are added in the tests folder of their respective chart and have a "_test" suffix

Check Contribution guidelines in README.md for more insight.

@AlbertoBarba AlbertoBarba self-assigned this Nov 30, 2023
@github-actions github-actions bot added the no-tests Chart templates modified without test changes label Nov 30, 2023
@AlbertoBarba AlbertoBarba marked this pull request as ready for review November 30, 2023 11:17
@AlbertoBarba AlbertoBarba requested a review from a team as a code owner November 30, 2023 11:17
@github-actions github-actions bot removed the no-tests Chart templates modified without test changes label Nov 30, 2023
@AlbertoBarba AlbertoBarba enabled auto-merge (squash) November 30, 2023 11:25
Copy link
Contributor

@mavimo mavimo left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -219,7 +219,7 @@ spec:
value: /opt/draios/etc/ca-certs/{{- include "sysdig.custom_ca.keyName" (dict "global" .Values.global.ssl "component" .Values.ssl) -}}
{{- end }}
readinessProbe:
{{- if ge (semver "12.18.0" | (semver .Values.image.tag).Compare) 0 }}
{{- if eq (include "agent.enableHttpProbes" .) "true" }}
httpGet:
path: /healthz

Choose a reason for hiding this comment

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

A totally unrelated comment, is the z at the end on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's a sort of convention

@AlbertoBarba AlbertoBarba merged commit 9c64b01 into master Nov 30, 2023
5 checks passed
@AlbertoBarba AlbertoBarba deleted the fix/SMAGENT-6093 branch November 30, 2023 11:32
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