Skip to content

Commit 1a2bd94

Browse files
authored
Merge pull request #3805 from enxebre/fix-awsmachine-deletion
Do not return error if secret does not exist
2 parents b4596fc + cbb7032 commit 1a2bd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/awsmachine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ func (r *AWSMachineReconciler) deleteIgnitionBootstrapDataFromS3(machineScope *s
803803
}
804804

805805
_, userDataFormat, err := machineScope.GetRawBootstrapDataWithFormat()
806-
if err != nil {
806+
if err != nil && !apierrors.IsNotFound(err) {
807807
r.Recorder.Eventf(machineScope.AWSMachine, corev1.EventTypeWarning, "FailedGetBootstrapData", err.Error())
808808
return err
809809
}

0 commit comments

Comments
 (0)