Skip to content

Commit f88f0fa

Browse files
authored
Merge pull request #4557 from vincepri/fix-secret-not-found
🐛 On deletion, should ignore if the secret cannot be found
2 parents bc98315 + 6f639f9 commit f88f0fa

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
@@ -809,7 +809,7 @@ func getIgnitionVersion(scope *scope.MachineScope) string {
809809

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

0 commit comments

Comments
 (0)