Skip to content
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

fix(controller): Correct bug for repository ref without default key. Fixes #5646 #5660

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Apr 12, 2021

Fixes #5646

@codecov
Copy link

codecov bot commented Apr 12, 2021

Codecov Report

Merging #5660 (0eb173c) into master (54f4c26) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 0eb173c differs from pull request most recent head f8d1101. Consider uploading reports for the commit f8d1101 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5660      +/-   ##
==========================================
+ Coverage   47.08%   47.11%   +0.02%     
==========================================
  Files         240      240              
  Lines       15050    15050              
==========================================
+ Hits         7087     7091       +4     
+ Misses       7059     7057       -2     
+ Partials      904      902       -2     
Impacted Files Coverage Δ
...kflow/artifactrepositories/artifactrepositories.go 89.47% <100.00%> (+5.26%) ⬆️
cmd/argoexec/commands/emissary.go 50.00% <0.00%> (+1.56%) ⬆️

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 54f4c26...f8d1101. Read the comment docs.

@alexec alexec marked this pull request as ready for review April 12, 2021 16:25
@@ -52,7 +53,7 @@ func (s *artifactRepositories) Resolve(ctx context.Context, ref *wfv1.ArtifactRe
}
for _, r := range refs {
resolvedRef, _, err := s.get(ctx, r)
if apierr.IsNotFound(err) {
if err != nil && (apierr.IsNotFound(err) || strings.Contains(err.Error(), "config map missing key")) {
Copy link
Member

Choose a reason for hiding this comment

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

Move this string to a constant so it can be reused by get() when emitting this error?

@alexec
Copy link
Contributor Author

alexec commented Apr 15, 2021

@sarabala1979 bump.

@alexec alexec added this to the v3.0 milestone Apr 15, 2021
@alexec alexec merged commit f6be569 into argoproj:master Apr 16, 2021
@alexec alexec deleted the ref branch April 16, 2021 20:24
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
simster7 pushed a commit that referenced this pull request Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V3.0.1 error upgrading "error getting config map for artifact repository ref"
3 participants