Skip to content

Conversation

crenshaw-dev
Copy link
Member

Bumping for this change: argoproj/gitops-engine#732

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Copy link

bunnyshell bot commented Jun 5, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@@ -43,23 +43,19 @@ var ErrAnotherOperationInProgress = status.Errorf(codes.FailedPrecondition, "ano

// AugmentSyncMsg enrich the K8s message with user-relevant information
func AugmentSyncMsg(res common.ResourceSyncResult, apiResourceInfoGetter func() ([]kube.APIResourceInfo, error)) (string, error) {
switch res.Message {
case "the server could not find the requested resource":
if strings.Contains(res.Message, "the server could not find the requested resource") {
Copy link
Member Author

Choose a reason for hiding this comment

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

I refactored this function to return early and short-circuit instead of having a lot of nested logic. But the only functional change is to use strings.Contains instead of an exact match, in order to cope with the now-wrapped error message.

Copy link

codecov bot commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 59.93%. Comparing base (9472273) to head (65297f0).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
util/argo/argo.go 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23282      +/-   ##
==========================================
- Coverage   60.00%   59.93%   -0.08%     
==========================================
  Files         341      342       +1     
  Lines       57818    58548     +730     
==========================================
+ Hits        34694    35090     +396     
- Misses      20344    20617     +273     
- Partials     2780     2841      +61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev crenshaw-dev marked this pull request as ready for review June 6, 2025 15:01
@crenshaw-dev crenshaw-dev requested a review from a team as a code owner June 6, 2025 15:01
@crenshaw-dev crenshaw-dev merged commit 8010b4f into argoproj:master Jun 6, 2025
28 checks passed
philippemerle pushed a commit to philippemerle/argoproj-argo-cd that referenced this pull request Jun 7, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: Philippe Merle <philippe.merle@inria.fr>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
dsuhinin pushed a commit to dsuhinin/argo-cd that referenced this pull request Jun 16, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
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.

2 participants