Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Weit <[email protected]>
  • Loading branch information
aviweit committed Jun 25, 2024
1 parent f0cb126 commit caf3536
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/controlplane/control/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,12 @@ func restartCoreDNS(ctx context.Context, mClient client.Client, logger *logrus.E
),
)

if err := mClient.Patch(ctx, &appsv1.Deployment{
return mClient.Patch(ctx, &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Namespace: "kube-system",
Name: "coredns",
},
}, client.RawPatch(types.StrategicMergePatchType, patch)); err != nil {
return err
}

return nil
}, client.RawPatch(types.StrategicMergePatchType, patch))
}

// Add coredns rewrite for a given external dns service.
Expand Down

0 comments on commit caf3536

Please sign in to comment.