[8.x](backport #6293) chore: update version and appVersion in the elastic-agent helm chart #6354
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR extends the logic of
mage helm:updateAgentVersion
to include updating theversion
(chart version) andappVersion
keys in the Chart.yaml of the Elastic-Agent Helm chart. Note that since the chart is not yet GA for the chart version we always append-SNAPSHOT
to mark it as devel. This will have to change when we reach the version that the Helm chart is GA.Why is it important?
It is important because it sets correctly the chart and the app version in the Chart.yaml of the Elastic-Agent Helm chart and this is required before being able to release the Helm chart.
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
N/A
How to test this PR locally
change either or both
version
andappVersion
indeploy/helm/elastic-agent/Chart.yaml
and then runmage helm:updateAgentVersion
. The two fields will get updated to reflect the correct values based on the branch you are.Related issues
This is an automatic backport of pull request #6293 done by [Mergify](https://mergify.com).