c.Logger().Debug("failed to delete resource","namespace",info.Namespace,"name",info.Name,"kind",info.Mapping.GroupVersionKind.Kind,slog.Any("error",err))
c.Logger().Debug("failed to delete resource","namespace",info.Namespace,"name",info.Name,"kind",info.Mapping.GroupVersionKind.Kind,slog.Any("error",err))
if!apierrors.IsNotFound(err){
updateErrors=append(updateErrors,fmt.Errorf("failed to delete resource %s: %w",info.Name,err))
# verifySupported checks that the os/arch combination is supported for
# verifySupported checks that the os/arch combination is supported for
# binary builds.
# binary builds.
verifySupported() {
verifySupported() {
local supported="darwin-amd64\nlinux-386\nlinux-amd64\nlinux-arm\nlinux-arm64\nlinux-ppc64le\nlinux-s390x\nlinux-riscv64\nwindows-amd64\nwindows-arm64"
local supported="darwin-amd64\nlinux-386\nlinux-amd64\nlinux-arm\nlinux-arm64\nlinux-loong64\nlinux-ppc64le\nlinux-s390x\nwindows-amd64\nwindows-arm64"
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
echo "No prebuilt binary for ${OS}-${ARCH}."
echo "No prebuilt binary for ${OS}-${ARCH}."
echo "To build from source, go to https://github.com/helm/helm"
echo "To build from source, go to https://github.com/helm/helm"
# verifySupported checks that the os/arch combination is supported for
# verifySupported checks that the os/arch combination is supported for
# binary builds, as well whether or not necessary tools are present.
# binary builds, as well whether or not necessary tools are present.
verifySupported() {
verifySupported() {
local supported="darwin-amd64\ndarwin-arm64\nlinux-386\nlinux-amd64\nlinux-arm\nlinux-arm64\nlinux-ppc64le\nlinux-s390x\nlinux-riscv64\nwindows-amd64\nwindows-arm64"
local supported="darwin-amd64\ndarwin-arm64\nlinux-386\nlinux-amd64\nlinux-arm\nlinux-arm64\nlinux-loong64\nlinux-ppc64le\nlinux-s390x\nlinux-riscv64\nwindows-amd64\nwindows-arm64"
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
if ! echo "${supported}" | grep -q "${OS}-${ARCH}"; then
echo "No prebuilt binary for ${OS}-${ARCH}."
echo "No prebuilt binary for ${OS}-${ARCH}."
echo "To build from source, go to https://github.com/helm/helm"
echo "To build from source, go to https://github.com/helm/helm"