Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Conversation

keithmattix
Copy link
Contributor

@keithmattix keithmattix commented Jun 29, 2022

Signed-off-by: Keith Mattix II keithmattix2@gmail.com

Description:
Correctly sets the preset MRC's status on initial create and fixes a typo on the printer column of the MRC CRD

Testing done:
Ran the demo and checked the MRC manifest

Affected area:

Functional Area
Certificate Management [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution? N/A
  2. Is this a breaking change? no

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? N/A

Signed-off-by: Keith Mattix II <keithmattix2@gmail.com>
@keithmattix keithmattix marked this pull request as ready for review June 29, 2022 15:16
Comment on lines 411 to 414
_, err = b.configClient.ConfigV1alpha2().MeshRootCertificates(b.namespace).UpdateStatus(context.Background(), createdMRC, metav1.UpdateOptions{})
if err != nil {
return err
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd combine these 2 lines in one:

if _, err := (...); err != nil {}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a pretty long line to embed in an if statement; breaking it up seems like it would be more reasonable

@jaellio
Copy link
Contributor

jaellio commented Jun 29, 2022

In osm-bootstrap_test.go we could add a check to TestCreateMeshRootCertificate to verify the MRC status has been set as expected.

Signed-off-by: Keith Mattix II <keithmattix2@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #4856 (f42a565) into main (d970b24) will decrease coverage by 0.00%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main    #4856      +/-   ##
==========================================
- Coverage   69.51%   69.50%   -0.01%     
==========================================
  Files         219      219              
  Lines       16033    16041       +8     
==========================================
+ Hits        11146    11150       +4     
- Misses       4833     4837       +4     
  Partials       54       54              
Flag Coverage Δ
unittests 69.50% <66.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/osm-bootstrap/osm-bootstrap.go 47.93% <66.66%> (+0.05%) ⬆️
pkg/messaging/workqueue.go 89.28% <0.00%> (-10.72%) ⬇️
pkg/ticker/ticker.go 87.17% <0.00%> (+3.84%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d970b24...f42a565. Read the comment docs.

@nojnhuh nojnhuh merged commit bb007fd into openservicemesh:main Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants