Skip to content

Commit 6f639f9

Browse files
committed
🐛 On deletion, should ignore if the secret cannot be found
Signed-off-by: Vince Prignano <[email protected]>
1 parent d0c8e32 commit 6f639f9

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
@@ -777,7 +777,7 @@ func (r *AWSMachineReconciler) ignitionUserData(scope *scope.MachineScope, objec
777777

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

0 commit comments

Comments
 (0)