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

e2e: Moving constants into const.go and out of common.go #3670

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

draychev
Copy link
Contributor

This PR moves all const statements into a file named const.go and out of common.go

Reason for this change: common.go has around 1600 lines and could benefit from chopping up into smaller chunks.

@draychev draychev requested a review from a team as a code owner June 25, 2021 22:25
@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2021

Codecov Report

Merging #3670 (a80d235) into main (6925db7) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3670      +/-   ##
==========================================
- Coverage   67.44%   67.43%   -0.02%     
==========================================
  Files         181      181              
  Lines        8772     8772              
==========================================
- Hits         5916     5915       -1     
- Misses       2823     2824       +1     
  Partials       33       33              
Flag Coverage Δ
unittests 67.43% <ø> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
pkg/k8s/announcement_handlers.go 71.42% <0.00%> (-5.72%) ⬇️
...icate/providers/certmanager/certificate_manager.go 87.90% <0.00%> (+0.80%) ⬆️

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 6925db7...a80d235. Read the comment docs.

@draychev draychev marked this pull request as draft June 28, 2021 16:03
Signed-off-by: Delyan Raychev <delyan.raychev@microsoft.com>
@draychev draychev marked this pull request as ready for review June 28, 2021 19:36
Copy link
Contributor

@allenlsy allenlsy left a comment

Choose a reason for hiding this comment

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

nit: we have a file pkg/constants/constants.go. Do you want to make the name consistent, like `constants.go?

Signed-off-by: Delyan Raychev <delyan.raychev@microsoft.com>
@draychev draychev merged commit bc441ba into openservicemesh:main Jun 28, 2021
@draychev draychev deleted the e2e_refactor_c branch June 28, 2021 21:39
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Jul 6, 2021
Signed-off-by: Delyan Raychev <delyan.raychev@microsoft.com>

e2e: Moving constants into const.go and out of common.go (openservicemesh#3670)

pkg/*: remove unused cacheSynced channel

The code waits for caches to sync synchronously
using the `WaitForCacheSync()` API. The unused
`cacheSynced` channel is not necessary.

Signed-off-by: Shashank Ram <shashr2204@gmail.com>

feat(upgrade): Add helm hooks to manage crd upgrades

This commit allows OSM to manage the lifecyle of CRD's by adding a
pre-install and pre-upgrade helm hook to update the CRD's.

Part of openservicemesh#3396

Signed-off-by: Sneha Chhabria <snchh@microsoft.com>

smi/client: remove unused announcement channel

Removes the unused announcement channel which
was deprecated in favor of pubsub event framework.

Signed-off-by: Shashank Ram <shashr2204@gmail.com>

chore(demo): cross service distributed tracing in demo

Signed-off-by: Allen Leigh <allenlsy@gmail.com>

ref(catalog): improve performance of ListAllowedEndpointsForService()

Signed-off-by: Allen Leigh <allenlsy@gmail.com>
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.

4 participants