Skip to content

Commit

Permalink
Merge pull request containers#301 from klihub/fixes/unsable-helm-charts
Browse files Browse the repository at this point in the history
.github: fix unstable chart version and registry path.
  • Loading branch information
marquiz committed Mar 28, 2024
2 parents 1a3bf05 + 2883ef4 commit 07d6d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# For unstable chart verison we use:
# - chart version: x.y-unstable derived from the latest tag x.y.z
# - image version: 'unstable'.
majmin="$(git describe | sed -E 's/v([0-9]*\.[0-9]*).*$/\1/')"
majmin="$(git describe | sed -E 's/(v[0-9]*\.[0-9]*).*$/\1/')"
CHART_VERSION="${majmin}-unstable"
APP_VERSION=unstable
# Package charts
Expand Down Expand Up @@ -98,6 +98,6 @@ jobs:
# between new tags unstable chart have the same version, though.
pushd ../$UNSTABLE_CHARTS
for i in ./*.tgz; do
helm push $i oci://${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}
helm push $i oci://${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}/helm-charts
done
popd
6 changes: 3 additions & 3 deletions docs/deployment/helm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ are stored alongside plugin images in the OCI image registry.
Unstable charts can be discovered using [skopeo](https://github.com/containers/skopeo).
For instance, one can list the available charts for the balloons plugin using this
skopeo command:
`skopeo list-tags docker://ghcr.io/containers/nri-plugins/nri-resource-policy-balloons`
`skopeo list-tags docker://ghcr.io/containers/nri-plugins/helm-charts/nri-resource-policy-balloons`

### Using Unstable Helm Charts

Once discovered, unstable Helm charts can be used like any other. For instance, to use
the `$X.$Y-unstable` version of the chart to install the development version of the
the `v$X.$Y-unstable` version of the chart to install the development version of the
balloons plugin one can use this command:
`helm install --devel -n kube-system test oci://ghcr.io/containers/nri-plugins/nri-resource-policy-balloons --version $X.$Y-unstable --set image.tag=unstable --set image.pullPolicy=Always`
`helm install --devel -n kube-system test oci://ghcr.io/containers/nri-plugins/helm-charts/nri-resource-policy-balloons --version v$X.$Y-unstable --set image.tag=unstable --set image.pullPolicy=Always`

```{toctree}
---
Expand Down

0 comments on commit 07d6d46

Please sign in to comment.