We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b423de commit 9be7c7bCopy full SHA for 9be7c7b
internal/actions/create_handler.go
@@ -66,7 +66,7 @@ func (h *CreateHandler) Handle(ctx context.Context, action *castai.ClusterAction
66
return fmt.Errorf("creating resource %v: %w", req.Resource, err)
67
}
68
69
- if !apierrors.IsAlreadyExists(err) {
+ if apierrors.IsAlreadyExists(err) {
70
log.Info("resource already exists, patching")
71
obj, err := resource.Get(ctx, newObj.GetName(), metav1.GetOptions{})
72
if err != nil {
0 commit comments