Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Charts still appear in aggregator hubs if a deprecated version is not published before deleting source code #23128

Closed
@scottrigby

Description

Problem

There are some charts still listed on the helm/artifact hub(s) that no longer exist in the incubator/stable repos source code.

Cause

I believe this is because the chart was moved to stable back in 2017 rather than deprecated in the incubator repo. For example, you can see incubator/cockroachdb is listed in the hub(s) now, because the PR that moved/removed the chart did so before publishing a version where the chart was marked deprecated (#344).

Proposed solution

  1. Search for all charts that were deleted before being properly deprecated, and update list below accordingly:
    $ helm repo add stable https://kubernetes-charts.storage.googleapis.com
    $ helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com
    $ helm search repo | awk '{ print $1 }' | xargs ls -d
  2. Re-add each deleted chart with a README pointing to the new location and mark it deprecated, so the old versions will no longer appear listed in the hub(s) (for reasoning, see https://helm.sh/docs/topics/charts/#deprecating-charts)
    1. For each missing chart, use helm 2 to create a generic v1 chart that will pass CI
      $ file=incubator/cockroachdb
      $ helm2 create $file
    2. Find the last version before the missing chart was removed (example, "incubator/cockroachdb"), so we can bump the version
      $ helm search repo $file | awk '{ print $2 }'
      0.1.1
    3. Make required deprecation changes (per https://github.com/helm/charts/blob/master/PROCESSES.md#deprecating-a-chart)
    4. Open a PR and link to this tracking issue
    5. Once merged, wait 30 mins and ensure the chart is no longer listed in the hub(s)

Status

Metadata

Assignees

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