gitops-engine icon indicating copy to clipboard operation
gitops-engine copied to clipboard

feat: Add func GetManagedObject

Open cyrus-mc opened this issue 5 years ago • 2 comments

Retrieve object from cache based on ResourceKey. Cache manifest if it isn't already cached.

This is required in support of https://github.com/argoproj/argo-cd/issues/3854 and https://github.com/argoproj/argo-cd/pull/3863.

cyrus-mc avatar Jul 07 '20 19:07 cyrus-mc

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jul 07 '20 19:07 sonarqubecloud[bot]

Codecov Report

Merging #81 into master will decrease coverage by 0.26%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
- Coverage   52.52%   52.25%   -0.27%     
==========================================
  Files          25       25              
  Lines        2599     2612      +13     
==========================================
  Hits         1365     1365              
- Misses       1103     1116      +13     
  Partials      131      131              
Impacted Files Coverage Δ
pkg/cache/cluster.go 52.06% <0.00%> (-1.52%) :arrow_down:

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 c23d4d7...70feb96. Read the comment docs.

codecov[bot] avatar Jul 07 '20 20:07 codecov[bot]