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

Expose Podman version info #3552

Merged
merged 2 commits into from
Jul 6, 2024
Merged

Conversation

riyad
Copy link
Contributor

@riyad riyad commented Jun 23, 2024

This exposes the Podman version and it's Docker API version. The fields were there, but they were always showing "Unknown".

This is how it looks after the patch:
cAdvisor - Podman versions

Copy link

google-cla bot commented Jun 23, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@k8s-ci-robot
Copy link
Collaborator

Hi @riyad. Thanks for your PR.

I'm waiting for a google member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@iwankgb
Copy link
Collaborator

iwankgb commented Jun 28, 2024

/ok-to-test

@iwankgb
Copy link
Collaborator

iwankgb commented Jun 28, 2024

@riyad, you need to sign Google CLA.

Comment on lines 116 to 117
status.Version, _ = VersionString()
status.APIVersion, _ = APIVersionString()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you log these errors, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was ignoring them, because both fields are set to "Unknown" by docker.StatusFromDockerInfo() above.
Similarly both functions also return "Unknown" in case of an error.
I've pushed 31c860f with error handling to make this behavor more explicit.
Please have a look. 😃

@riyad
Copy link
Contributor Author

riyad commented Jul 4, 2024

/retest

@Creatone
Copy link
Collaborator

Creatone commented Jul 5, 2024

@riyad please rebase to current master

@iwankgb iwankgb merged commit f46992f into google:master Jul 6, 2024
14 checks passed
@riyad riyad deleted the add-podman-version-info branch July 7, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants