Skip to content

Commit

Permalink
Merge pull request #4557 from vincepri/fix-secret-not-found
Browse files Browse the repository at this point in the history
🐛 On deletion, should ignore if the secret cannot be found
  • Loading branch information
k8s-ci-robot authored Oct 12, 2023
2 parents bc98315 + 6f639f9 commit f88f0fa
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 @@ -809,7 +809,7 @@ func getIgnitionVersion(scope *scope.MachineScope) string {

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 f88f0fa

Please sign in to comment.