Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add doc to configure chart repo #4

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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