-
Notifications
You must be signed in to change notification settings - Fork 77
✨ feat: new validator to check Multiple Architectures configuration #233
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
✨ feat: new validator to check Multiple Architectures configuration #233
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple suggestions and question about SO vs OS.
@jmrodri THANK YOU a lot. |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just small comments.
/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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this iteration over the map panic if there are no labels set on the CSV?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <btofel@redhat.com>
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[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
Needs 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 <timflannagan@gmail.com>
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 <timflannagan@gmail.com>
Description
add: new validator to check Multiarch configuration
Motivation
Help users, cis and tools verify the Multiarch configuration