Skip to content

Commit

Permalink
Merge pull request #4 from kloeckner-i/METAL-3701/docs
Browse files Browse the repository at this point in the history
add doc to configure chart repo
  • Loading branch information
hyunysmile authored Sep 16, 2022
2 parents b87ac0c + 64ccc8d commit 23b32f4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
path: charts
fetch-depth: 2 # to be able to obtain files changed in the latest commit

- id: get-chart
name: 'Get modified charts'
run: |
cd charts
files_changed="$(git show --pretty="" --name-only)"
files_changed="$(git diff --name-only HEAD^ HEAD)"
# Adding || true to avoid "Process exited with code 1" errors
charts_dirs_changed="$(echo "$files_changed" | xargs dirname | grep -o "charts/[^/]*" | sed "s|charts/||g" | uniq | tr '\n' ' ' || true)"
echo "changed:${charts_dirs_changed}"
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@

The new chart version release is executed automatically with Github actions.
For triggering it, change the version of Chart.yaml in the chart directory and merge to `main` branch.

## Configuring helm client
```
$ helm repo add kloeckneri https://kloeckner-i.github.io/charts
```
Test the helm chart repository
```
$ helm search repo kloeckneri
```
2 changes: 1 addition & 1 deletion charts/db-instances/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: Database Instances for db operator
name: db-instances
version: 1.3.0
version: 1.3.1
9 changes: 0 additions & 9 deletions charts/db-instances/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# db-instances
Create DB Instance resources for is DB Operator

## Configuring helm client
```
$ helm repo add kloeckneri https://kloeckner-i.github.io/charts
```
Test the helm chart repository
```
$ helm search repo kloeckneri/db-instances
```

## Installing Chart
To install the chart with the release name my-release:
```
Expand Down
2 changes: 1 addition & 1 deletion charts/db-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kubeVersion: ">= 1.21-prerelease"
appVersion: "1.6.5"
description: A Database Operator
name: db-operator
version: 1.2.7
version: 1.2.8
9 changes: 0 additions & 9 deletions charts/db-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# db-operator
DB Operator is Kubernetes operator

## Configuring helm client
```
$ helm repo add kloeckneri https://kloeckner-i.github.io/charts
```
Test the helm chart repository
```
$ helm search repo kloeckneri/db-operator
```

## Installing Chart
To install the chart with the release name my-release:
```
Expand Down

0 comments on commit 23b32f4

Please sign in to comment.