Skip to content

Automatically cleanup provider cache Secret on upgrade. #873

@anmazzotti

Description

@anmazzotti

Detailed Description

On provider version upgrade, the previous cache Secret seems to stay.
These Secrets are normally packed with data, and since rolling back a provider is not a supported operation, there's no reason for the old cache to still exist. I believe it should be deleted.

> kubectl -n capv-system get secrets
NAME                                   TYPE                DATA   AGE
capv-manager-bootstrap-credentials     Opaque              1      2m45s
capv-webhook-service-cert              kubernetes.io/tls   3      4m42s
infrastructure-vsphere-v1.12.0-cache   Opaque              1      4m42s
infrastructure-vsphere-v1.13.0-cache   Opaque              1      2m47s

/kind feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions