Skip to content

Commit

Permalink
🐛 On deletion, should ignore if the secret cannot be found
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Oct 9, 2023
1 parent d0c8e32 commit 6f639f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/awsmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ func (r *AWSMachineReconciler) ignitionUserData(scope *scope.MachineScope, objec

func (r *AWSMachineReconciler) deleteBootstrapData(machineScope *scope.MachineScope, clusterScope cloud.ClusterScoper, objectStoreScope scope.S3Scope) error {
_, userDataFormat, err := machineScope.GetRawBootstrapDataWithFormat()
if err != nil {
if client.IgnoreNotFound(err) != nil {
return errors.Wrap(err, "failed to get raw userdata")
}

Expand Down

0 comments on commit 6f639f9

Please sign in to comment.