Skip to content

Commit

Permalink
Merge pull request #3805 from enxebre/fix-awsmachine-deletion
Browse files Browse the repository at this point in the history
Do not return error if secret does not exist
  • Loading branch information
k8s-ci-robot authored Jul 3, 2023
2 parents b4596fc + cbb7032 commit 1a2bd94
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 @@ -803,7 +803,7 @@ func (r *AWSMachineReconciler) deleteIgnitionBootstrapDataFromS3(machineScope *s
}

_, userDataFormat, err := machineScope.GetRawBootstrapDataWithFormat()
if err != nil {
if err != nil && !apierrors.IsNotFound(err) {
r.Recorder.Eventf(machineScope.AWSMachine, corev1.EventTypeWarning, "FailedGetBootstrapData", err.Error())
return err
}
Expand Down

0 comments on commit 1a2bd94

Please sign in to comment.