centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

enh(docker::local): Make compatible with Podman containers

Open jensrudolf opened this issue 1 year ago • 0 comments

Community contributors

Description

Modify the cloud::docker::local::plugin to be compatible with Podman container engine.

Podman uses two whitespaces at minimum to seperate its cli output colums whereas Docker uses three. This reduces the required whichtespaces in the regex filter of the command output accordingly.

Type of change

  • [ ] Patch fixing an issue (non-breaking change)
  • [ ] New functionality (non-breaking change)
  • [x] Functionality enhancement or optimization (non-breaking change)
  • [ ] Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Tested locally on RHEL8 with Icinga, Podman and Docker containers.

Checklist

  • [x] I have followed the coding style guidelines provided by Centreon
  • [ ] I have commented my code, especially hard-to-understand areas of the PR.
  • [x] I have rebased my development branch on the base branch (develop).
  • [ ] I have provide data or shown output displaying the result of this code in the plugin area concerned.

Centreon team

Description

PLEASE MAKE SURE THAT THE BRANCH PR INCLUDES JIRA TICKET ID

Please include a short resume of the changes and what is the purpose of this pull request. Any relevant information should be added to help reviewers to understand what are the stakes of the pull request.

Fixes # (issue) If you are fixing a github Issue already existing, mention it here. If you are fixing one or more JIRA ticket, mention it here too.

Type of change

  • [ ] Patch fixing an issue (non-breaking change)
  • [ ] New functionality (non-breaking change)
  • [ ] Functionality enhancement or optimization (non-breaking change)
  • [ ] Breaking change (patch or feature) that might cause side effects breaking part of the Software

How this pull request can be tested ?

Please describe the procedure to verify that the goal of the PR is matched. Provide clear instructions so that it can be correctly tested. Mention the automated tests included in this FOR (what they test like mode/option combinations).

Checklist

  • [ ] I have followed the coding style guidelines provided by Centreon
  • [ ] I have commented my code, especially hard-to-understand areas of the PR.
  • [ ] I have rebased my development branch on the base branch (develop).
  • [ ] In case of a new plugin, I have created the new packaging directory accordingly.
  • [ ] I have implemented automated tests related to my commits.
  • [ ] I have reviewed all the help messages in all the .pm files I have modified.
    • [ ] All sentences begin with a capital letter.
    • [ ] All sentences are terminated by a period.
    • [ ] I am able to understand all the help messages, if not, exchange with the PO or TW to rewrite them.
  • [ ] After having created the PR, I will make sure that all the tests provided in this PR have run and passed.

jensrudolf avatar Oct 08 '24 12:10 jensrudolf