Skip to content

Commit

Permalink
adjust to v0.19.1-beta1 (#200)
Browse files Browse the repository at this point in the history
* adjust to v0.19.1-beta1

* add release sop
  • Loading branch information
ZhangNing10 authored Nov 14, 2023
1 parent 56dd5a5 commit aa2e96b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 22 deletions.
6 changes: 3 additions & 3 deletions HelmSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To install the chart with release name `devlake`:
helm repo add devlake https://apache.github.io/incubator-devlake-helm-chart
helm repo update
ENCRYPTION_SECRET=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)
helm install devlake devlake/devlake --version=0.19.0-beta6 --set lake.encryptionSecret.secret=$ENCRYPTION_SECRET
helm install devlake devlake/devlake --version=0.19.1-beta1 --set lake.encryptionSecret.secret=$ENCRYPTION_SECRET
```

Visit your devlake from the node port (32001 by default): http://YOUR-NODE-IP:32001.
Expand All @@ -49,14 +49,14 @@ _Notes for mac users with minikube:_
```shell
helm repo update
helm upgrade devlake devlake/devlake --version=0.19.0-beta6 --set lake.encryptionSecret.secret=<ENCRYPTION_SECRET>
helm upgrade devlake devlake/devlake --version=0.19.1-beta1 --set lake.encryptionSecret.secret=<ENCRYPTION_SECRET>
```

**If you're upgrading from DevLake v0.18.x or later versions:**

```shell
helm repo update
helm upgrade devlake devlake/devlake --version=0.19.0-beta6
helm upgrade devlake devlake/devlake --version=0.19.1-beta1
```

### 2.3 Uninstall
Expand Down
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ helm install devlake devlake/devlake --set lake.encryptionSecret.secret=$ENCRYPT
helm repo add devlake https://apache.github.io/incubator-devlake-helm-chart
helm repo update
ENCRYPTION_SECRET=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)
helm install devlake devlake/devlake --version=0.19.0-beta6 --set lake.encryptionSecret.secret=$ENCRYPTION_SECRET
helm install devlake devlake/devlake --version=0.19.1-beta1 --set lake.encryptionSecret.secret=$ENCRYPTION_SECRET
```

If you are using minikube inside your mac, please use the following command to forward the port:
Expand Down Expand Up @@ -71,14 +71,14 @@ grafana by url `http://YOUR-NODE-IP:30091`
```shell
helm repo update
helm upgrade devlake devlake/devlake --version=0.19.0-beta6 --set lake.encryptionSecret.secret=<ENCRYPTION_SECRET>
helm upgrade devlake devlake/devlake --version=0.19.1-beta1 --set lake.encryptionSecret.secret=<ENCRYPTION_SECRET>
```

**If you're upgrading from DevLake v0.18.x or later versions:**

```shell
helm repo update
helm upgrade devlake devlake/devlake --version=0.19.0-beta6
helm upgrade devlake devlake/devlake --version=0.19.1-beta1
```

## Uninstall
Expand All @@ -93,18 +93,6 @@ helm uninstall devlake

https://github.com/apache/incubator-devlake/pulls?q=is%3Apr+helm+is%3Aclosed

## How to upgrade helm chart after releasing new devlake images

1. In [values.yaml](https://github.com/apache/incubator-devlake-helm-chart/blob/main/charts/devlake/values.yaml), change {{ imageTag }} to current image tag
2. In [chart.yaml](https://github.com/apache/incubator-devlake-helm-chart/blob/main/charts/devlake/Chart.yaml), change {{ version }}, {{ appVersion }} to current image tag
3. If we want to release a new chart without new release of devlake, we should increase both chart version and image tag.
- For example, right now both versions are 0.16.1-beta1, if we make change on chart, we should set chart-version to 0.16.1-beta1, also, we need to crate new images for devlake with tag 0.16.1-beta1
4. If we release any new image for devlake, we just need to set a new version for chart.

## Original pr in apache/incubator-devlake

https://github.com/apache/incubator-devlake/pulls?q=is%3Apr+helm+is%3Aclosed

## More

You could find more examples and details in [HelmSetup.md](HelmSetup.md)
8 changes: 8 additions & 0 deletions ReleaseSOP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## How to upgrade helm chart after releasing new devlake images

1. In [values.yaml](https://github.com/apache/incubator-devlake-helm-chart/blob/main/charts/devlake/values.yaml), change {{ imageTag }} to current image tag
2. In [chart.yaml](https://github.com/apache/incubator-devlake-helm-chart/blob/main/charts/devlake/Chart.yaml), change {{ version }}, {{ appVersion }} to current image tag
3. If we want to release a new chart without new release of devlake, we should increase both chart version and image tag.
- For example, right now both versions are 0.16.1-beta1, if we make change on chart, we should set chart-version to 0.16.1-beta1, also, we need to crate new images for devlake with tag 0.16.1-beta1
4. If we release any new image for devlake, we just need to set a new version for chart.

4 changes: 2 additions & 2 deletions charts/devlake/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ keywords:
type: application

# Chart version
version: 0.19.0-beta6
version: 0.19.1-beta1

# devlake version
appVersion: v0.19.0-beta6
appVersion: v0.19.1-beta1

dependencies:
- condition: grafana.enabled
Expand Down
4 changes: 2 additions & 2 deletions charts/devlake/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# replica count for dev
replicaCount: 1
imageTag: v0.19.0-beta6
imageTag: v0.19.1-beta1

#the common environments for all pods except grafana, grafana needs to be set in grafana section seperately
commonEnvs:
Expand Down Expand Up @@ -147,7 +147,7 @@ grafana:
url: ""
image:
repository: devlake.docker.scarf.sh/apache/devlake-dashboard
tag: v0.19.0-beta6
tag: v0.19.1-beta1
adminPassword: ""
grafana.ini:
server:
Expand Down

0 comments on commit aa2e96b

Please sign in to comment.