Skip to content

Exposing ability to Submit results when used as a library. #845

@naemono

Description

@naemono

Is your feature request related to a problem? Please describe.

I know there's been recent work to expose running checks on both containers, and operators (see #809), which I've found useful when attempting to simplify our openshift/operator release flow. Unfortunately there doesn't seem to be any way to actually submit the results, as the work to move most of the flow to /internal has progressed. There also seems to be some discussion about packaging the results to be able to be submitted without internet access.

Describe the solution you'd like.

containerCheck.Run returns runtime.Results. And the ResultSubmitter returned by

func ResolveSubmitter(pc PyxisClient, projectID, dockerconfig, logfile string) ResultSubmitter {
requires nearly all of the data that NewCheck can accept, given the variadic options that can be sent.

Exposing some ability to submit the results of checks seems like a logical step that could be taken to allow users the ability to integrate preflight checks fully into a custom release flow.

Describe alternatives you've considered.

There do not seem to be alternatives outside of running the preflight binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions