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 <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Dec 4, 2024
1 parent 377b550 commit ac362f9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,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 ac362f9

Please sign in to comment.