-
Notifications
You must be signed in to change notification settings - Fork 30
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
Refactor SKR watcher installation to use native Kubernetes client #313
Refactor SKR watcher installation to use native Kubernetes client #313
Conversation
…o watcher-reconciles-kymas # Conflicts: # operator/internal/deploy/chart_manager.go
…atcher-reconciles-kymas
/test pull-lifecycle-mgr-tests |
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.
LGTM, good stuff! waiting for other reviews
pkg/deploy/template_chart_manager.go
Outdated
return true, err | ||
} | ||
for _, resource := range resources { | ||
err := syncContext.RuntimeClient.Patch(ctx, resource, client.Apply, client.ForceOwnership, skrChartFieldOwner) |
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.
would you kindly update this to a concurrent implementation using ErrGroup? otherwise we will have to wait for each resource patch to complete, which develops bottlenecking here
pkg/deploy/template_chart_manager.go
Outdated
if err := syncContext.RuntimeClient.Delete(ctx, resource); err != nil && !apierrors.IsNotFound(err) { | ||
return fmt.Errorf("failed to delete webhook %s: %w", resource.GetKind(), err) | ||
} | ||
} |
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.
does it make sense to implement similar errGrp here, so that deletion of following resources are not blocked by one failing?
…ient (kyma-project#313)" This reverts commit 4643b27.
implementation of #301