harbor/tools/migrate_chart/migrate_chart.sh
DQ 4f5c3568bc Add tool for migration chart v2 to oci format
chartmuseum might deprecated in future. This tool is used for migrate the charts

Signed-off-by: DQ <dengq@vmware.com>
2020-11-23 16:45:42 +08:00

10 lines
176 B
Bash

#! /bin/bash
HELM_CMD=$1
V2_CHART_PATH=$2
OCI_REF=$3
${HELM_CMD} chart save ${V2_CHART_PATH} ${OCI_REF}
${HELM_CMD} chart push ${OCI_REF}
${HELM_CMD} chart remove ${OCI_REF}