This reverts commit 4ecd0f7203.
Context:
The purpose behind introducing the previous two change was to run a `make sync`, which tries to pull in new charts *only* from the source branch. This step would fail if the packageVersion was not modified.
This worked, as seen below:
```bash
arvindiyengar: ~/Rancher/rke2-charts/src/github.com/rancher/rke2-charts
$ make sync
./bin/charts-build-scripts sync
INFO[0000] Synchronizing with charts that will be generated from migrate-source
... (omitted for brevity) ...
INFO[0002] Found the following latest release candidate versions: {
"rke2-canal/v3.13.300-build2021022301": "rke2-canal/v3.13.300-build2021022301-rc00",
"rke2-coredns/1.10.101-build2021022302": "rke2-coredns/1.10.101-build2021022302-rc00",
"rke2-ingress-nginx/3.3.001": "rke2-ingress-nginx/3.3.001-rc00",
"rke2-kube-proxy/v1.19.801": "rke2-kube-proxy/v1.19.801-rc00",
"rke2-metrics-server/2.11.100-build2021022301": "rke2-metrics-server/2.11.100-build2021022301-rc00"
}
... (omitted for brevity) ...
INFO[0003] Sync was successful!
INFO[0003] Successfully synchronized with migrate-source!
INFO[0003] Creating or updating the Helm index with the newly added assets...
INFO[0003] Your working directory is ready for a commit.
```
This seems to be an issue with the regenerate-assets script, most likely introduced due to the weird naming scheme for this chart which was allowed in the old build scripts.
The new build scripts expects the chart version to always end with the packageVersion, e.g. this should be `rke2-canal-v3.13.3-build2021022300`, but since this is already released I'm not going to tamper with it.
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>
1. Ran the following script to initialize
```
arvindiyengar: ~/Rancher/rke2-charts/src/github.com/rancher/rke2-charts
$ curl -s https://raw.githubusercontent.com/aiyengar2/charts-build-scripts/add_init_steps/init.sh > /dev/null | sh
Pulling in charts-build-scripts version v0.0.4
charts-build-scripts version v0.0.4 (567c991)
INFO[0000] Pulling rancher/charts-build-scripts[path=templates] from upstream into templates436707958
INFO[0002] Successfully pulled new updated docs into working directory.
Pulled in basic template for live into configuration.yaml and constructed charts directory
Next Steps:
1. Modify the configuration.yaml with your expected setup and re-run make docs to automatically update the repository.
arvindiyengar: ~/Rancher/rke2-charts/src/github.com/rancher/rke2-charts
$ make docs
./bin/charts-build-scripts docs
INFO[0000] Pulling rancher/charts-build-scripts[path=templates] from upstream into templates174667530
INFO[0002] Successfully pulled new updated docs into working directory.
```
2. Updated the configuration.yaml to point at rke2-charts manually
3. Ran `make docs`
Signed-off-by: Arvind Iyengar <arvind.iyengar@rancher.com>