Skip to content

Conversation

@Aashiq-J
Copy link
Member

@Aashiq-J Aashiq-J commented Aug 25, 2025

Description

logs agent images now support passing SHA values but since the values for the init and main container are different, we had to take the approach in this PR

Release required?

  • No release
  • Patch release (x.x.X)
  • Minor release (x.X.x)
  • Major release (X.x.x)
Release notes content

Run the pipeline

If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.

Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:

/run pipeline

Checklist for reviewers

  • If relevant, a test for the change is included or updated with this PR.
  • If relevant, documentation for the change is included or updated with this PR.

For mergers

  • Use a conventional commit message to set the release level. Follow the guidelines.
  • Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
  • Use the Squash and merge option.

@Aashiq-J Aashiq-J requested a review from shemau as a code owner August 25, 2025 15:15
@Aashiq-J
Copy link
Member Author

Aashiq-J commented Sep 1, 2025

/run pipeline

@Aashiq-J
Copy link
Member Author

Aashiq-J commented Sep 1, 2025

/run pipeline

1 similar comment
@Aashiq-J
Copy link
Member Author

Aashiq-J commented Sep 2, 2025

/run pipeline

@Aashiq-J
Copy link
Member Author

Aashiq-J commented Sep 3, 2025

/run pipeline

Copy link
Contributor

@ocofaigh ocofaigh left a comment

Choose a reason for hiding this comment

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

Needs to be exposed in the DA too

name = "image.version"
type = "string"
value = var.logs_agent_image_version
value = split("@", var.logs_agent_image_version)[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, did you check what happens when image.version and image.containerSha are both being passed? Will SHA take precedence?

Copy link
Member Author

@Aashiq-J Aashiq-J Sep 3, 2025

Choose a reason for hiding this comment

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

image version is always required.
Here is the logic which the observability team implemented to use the SHA digest
https://github.ibm.com/Observability/helm-charts/blob/5a08774693cfd18c66cbf4e88e6f0cbbcbacd353/logs-agent/templates/_helpers.tpl#L46

If the user passes the sha they just append it to the version.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah I see - so thats why we need to remove it in our code - thanks

@Aashiq-J
Copy link
Member Author

Aashiq-J commented Sep 3, 2025

/run pipeline

@Aashiq-J Aashiq-J requested a review from ocofaigh September 3, 2025 16:59
@ocofaigh ocofaigh merged commit 38c0187 into main Sep 4, 2025
2 checks passed
@ocofaigh ocofaigh deleted the sha branch September 4, 2025 17:32
@terraform-ibm-modules-ops
Copy link
Contributor

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants