✨ feat: new validator to check Multiple Architectures configuration#233
✨ feat: new validator to check Multiple Architectures configuration#233openshift-ci[bot] merged 2 commits intooperator-framework:masterfrom camilamacedo86:add-multi-arch
Conversation
ryantking
left a comment
There was a problem hiding this comment.
Few changes and questions. A lot of it is stylistic stuff to make the code more readable.
|
Hi @ryantking, I think we have all addressed this now. |
jmrodri
left a comment
There was a problem hiding this comment.
A couple suggestions and question about SO vs OS.
|
@jmrodri THANK YOU a lot. |
|
/lgtm |
|
|
||
| // loadInfraLabelsFromCSV will gather the respective labels from the CSV | ||
| func (data *multiArchValidator) loadInfraLabelsFromCSV() { | ||
| for k, v := range data.bundle.CSV.ObjectMeta.Labels { |
There was a problem hiding this comment.
would this iteration over the map panic if there are no labels set on the CSV?
There was a problem hiding this comment.
That was a good catcher. But the label is Labels map[string]string.
So that do not panic if be nil. See: https://go.dev/play/p/VUZPduMAOIf
Co-authored-by: Brett Tofel <[email protected]>
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, dinhxuanvu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add the commit from operator-framework/api#233 that requires the 'docker' executable to be present in order to test code paths added in that PR. Downstream CI doesn't have docker available in the CI containers, and therefore, CI will fail when running the staging API unit tests if this commit is present. Signed-off-by: timflannagan <[email protected]>
Add the commit from operator-framework/api#233 that requires the 'docker' executable to be present in order to test code paths added in that PR. Downstream CI doesn't have docker available in the CI containers, and therefore, CI will fail when running the staging API unit tests if this commit is present. Signed-off-by: timflannagan <[email protected]>
Description
add: new validator to check Multiarch configuration
Motivation
Help users, cis and tools verify the Multiarch configuration