Skip to content

Commit

Permalink
feat: Add a HelmChartRepository for use with OpenShift (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare authored Jan 10, 2025
1 parent e404bca commit 250c37c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions adfinis-charts-repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: helm.openshift.io/v1beta1
kind: HelmChartRepository
metadata:
name: adfinis-helm-charts
spec:
name: Adfinis Helm Charts
connectionConfig:
url: https://charts.adfinis.com/
4 changes: 3 additions & 1 deletion hack/ci/github/steps/update-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ HELMCHARTS_GOMPLATE_OUTPUT="$gh_pages_worktree/index.md" \
HELMCHARTS_GOMPLATE_NAME=indexpage \
hack/update-readme.sh

cp --force adfinis-charts-repo.yaml "$gh_pages_worktree/adfinis-charts-repo.yaml"

mkdir --parent "$gh_pages_worktree/docs/images"
cp --force docs/images/lunkwill_helm_shirt.png "$gh_pages_worktree/docs/images/lunkwill_helm_shirt.png"

pushd "$gh_pages_worktree" > /dev/null

git add index.md docs/images/lunkwill_helm_shirt.png
git add index.md adfinis-charts-repo.yaml docs/images/lunkwill_helm_shirt.png
# abort pages update if no changes detected
`git diff --cached --quiet` && exit 0
git commit --message="Update site" --signoff
Expand Down
6 changes: 6 additions & 0 deletions hack/config/update-readme/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ This repository contains [Helm](https://helm.sh/) charts managed by [Adfinis](ht
helm repo add adfinis https://charts.adfinis.com
```

To make the charts available in the OpenShift console:

```bash
oc apply -f https://charts.adfinis.com/adfinis-charts-repo.yaml
```

### Available Helm charts

{{- range (file.ReadDir "charts/" | sort) -}}
Expand Down

0 comments on commit 250c37c

Please sign in to comment.