Skip to content

Helm does not remove old resource when switching to a new apiVersion #12578

@warhunt

Description

@warhunt

I have the same issue as this one issue, but the issue is closed and not resolved

When migrating resource with kind: CronJob from apiVersion: batch/v1 to self-written apiVersion: kubecronic.<company-name>/v1 in existing release, Helm not deleted the resource which contains an old api version, and created another one.

For deployment it uses werf v1.2.248, but under the hood it uses Helm

Output of werf helm version: version.BuildInfo{Version:"v3.11", GitCommit:"", GitTreeState:"", GoVersion:"go1.20.3"}

Output of kubectl version: v1.25.4

Cloud Provider/Platform (AKS, GKE, Minikube etc.): self-hosted K8s cluster v1.27.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions