Skip to content

Commit

Permalink
fix: ignore Unimplemented errors in MetaDelete calls
Browse files Browse the repository at this point in the history
Otherwise it breaks config update for the Talos version which do not
support `MetaDelete` API.

Signed-off-by: Artem Chernyshev <[email protected]>
(cherry picked from commit ac362f9)
  • Loading branch information
Unix4ever committed Dec 11, 2024
1 parent 60f8633 commit d86c30c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,12 @@ func (h *clusterMachineConfigStatusControllerHandler) deleteUpgradeMetaKey(ctx c
return nil
}

if status.Code(err) == codes.Unimplemented {
h.logger.Debug("upgrade meta key is not removed, unimplemented in the Talos version", zap.String("machine", machineConfig.Metadata().ID()))

return nil
}

return err
}

Expand Down

0 comments on commit d86c30c

Please sign in to comment.