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

chore: set version and release_number labels in ubi image #711

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

sumo-drosiek
Copy link
Contributor

@sumo-drosiek sumo-drosiek commented Jun 3, 2024

preflight check container ghcr.io/sumologic/tailing-sidecar-operator:3cf903d-ubi --platform=linux/arm64
time="2024-06-03T14:10:14+02:00" level=info msg="certification library version" version="1.9.6 <commit: 354d10d9af8b5a64c7c2230a6656186957c3ed9f>"
time="2024-06-03T14:10:14+02:00" level=info msg="running checks for ghcr.io/sumologic/tailing-sidecar-operator:3cf903d-ubi for platform linux/arm64"
time="2024-06-03T14:10:14+02:00" level=info msg="target image" image="ghcr.io/sumologic/tailing-sidecar-operator:3cf903d-ubi"
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=HasLicense result=PASSED
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=HasUniqueTag result=PASSED
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=LayerCountAcceptable result=PASSED
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=HasNoProhibitedPackages result=PASSED
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=HasRequiredLabel result=PASSED
time="2024-06-03T14:10:20+02:00" level=info msg="USER nonroot:nonroot specified that is non-root"
time="2024-06-03T14:10:20+02:00" level=info msg="check completed" check=RunAsNonRoot result=PASSED
time="2024-06-03T14:10:23+02:00" level=info msg="check completed" check=HasModifiedFiles result=PASSED
time="2024-06-03T14:10:25+02:00" level=info msg="check completed" check=BasedOnUbi result=PASSED
time="2024-06-03T14:10:25+02:00" level=info msg="This image's tag 3cf903d-ubi will be paired with digest sha256:558fd2bf2063eb3e44f7e4079ebd1e1ceaf9231395a09bf41897e85978fed5f0 once this image has been published in accordance with Red Hat Certification policy. You may then add or remove any supplemental tags through your Red Hat Connect portal as you see fit."
{
    "image": "ghcr.io/sumologic/tailing-sidecar-operator:3cf903d-ubi",
    "passed": true,
    "test_library": {
        "name": "github.com/redhat-openshift-ecosystem/openshift-preflight",
        "version": "1.9.6",
        "commit": "354d10d9af8b5a64c7c2230a6656186957c3ed9f"
    },
    "results": {
        "passed": [
            {
                "name": "HasLicense",
                "elapsed_time": 0,
                "description": "Checking if terms and conditions applicable to the software including open source licensing information are present. The license must be at /licenses"
            },
            {
                "name": "HasUniqueTag",
                "elapsed_time": 0,
                "description": "Checking if container has a tag other than 'latest', so that the image can be uniquely identified."
            },
            {
                "name": "LayerCountAcceptable",
                "elapsed_time": 0,
                "description": "Checking if container has less than 40 layers.  Too many layers within the container images can degrade container performance."
            },
            {
                "name": "HasNoProhibitedPackages",
                "elapsed_time": 22,
                "description": "Checks to ensure that the image in use does not include prohibited packages, such as Red Hat Enterprise Linux (RHEL) kernel packages."
            },
            {
                "name": "HasRequiredLabel",
                "elapsed_time": 0,
                "description": "Checking if the required labels (name, vendor, version, release, summary, description) are present in the container metadata."
            },
            {
                "name": "RunAsNonRoot",
                "elapsed_time": 0,
                "description": "Checking if container runs as the root user because a container that does not specify a non-root user will fail the automatic certification, and will be subject to a manual review before the container can be approved for publication"
            },
            {
                "name": "HasModifiedFiles",
                "elapsed_time": 3510,
                "description": "Checks that no files installed via RPM in the base Red Hat layer have been modified"
            },
            {
                "name": "BasedOnUbi",
                "elapsed_time": 1776,
                "description": "Checking if the container's base image is based upon the Red Hat Universal Base Image (UBI)"
            }
        ],
        "failed": [],
        "errors": []
    }
}
time="2024-06-03T14:10:25+02:00" level=info msg="Preflight result: PASSED"

@sumo-drosiek sumo-drosiek requested a review from a team as a code owner June 3, 2024 11:36
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
@sumo-drosiek sumo-drosiek force-pushed the dev-build/fix-ubi-image branch from 056b73c to 3cf903d Compare June 3, 2024 11:38
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
@sumo-drosiek sumo-drosiek enabled auto-merge (squash) June 3, 2024 12:28
@sumo-drosiek sumo-drosiek merged commit 0c812ed into main Jun 3, 2024
16 checks passed
@sumo-drosiek sumo-drosiek deleted the dev-build/fix-ubi-image branch June 3, 2024 12:28
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