-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
…ixes argoproj#5646 Signed-off-by: Alex Collins <alex_collins@intuit.com>
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
@@ -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")) { |
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.
Move this string to a constant so it can be reused by get()
when emitting this error?
@sarabala1979 bump. |
Fixes #5646