Update README with new dependency versioning approach #578

Merged
justusbunsi merged 5 commits from readme-dep-versioning into main 2023-12-13 16:56:02 +00:00
Collaborator

As discussed in gitea/helm-chart#572.

Also added a bit more context and updates to the overall "Dependencies" sections.

As discussed in https://gitea.com/gitea/helm-chart/issues/572. Also added a bit more context and updates to the overall "Dependencies" sections.
pat-s added the
kind
docs
label 2023-12-04 20:23:38 +00:00
pat-s added 1 commit 2023-12-04 20:23:38 +00:00
update README with dependency versioning approach
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 29s
5446273310
pat-s requested review from justusbunsi 2023-12-04 20:23:47 +00:00
pat-s added 1 commit 2023-12-04 20:29:15 +00:00
lint
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 29s
415bdaa4a9
Author
Collaborator

@justusbunsi Any comments from your side?

@justusbunsi Any comments from your side?
justusbunsi requested changes 2023-12-11 17:34:49 +00:00
justusbunsi left a comment
Contributor

Sorry for not reviewing earlier. Last week was weird wrt my availability.

Sorry for not reviewing earlier. Last week was weird wrt my availability.
README.md Outdated
@@ -82,2 +85,2 @@
Gitea can be run with an external database and cache.
This chart provides those dependencies, which can be enabled, or disabled via configuration.
Gitea is most performant when run with an external database and cache.
This chart provides those dependencies as sub-chart dependencies.
Contributor

Don't repeat "dependencies".

- This chart provides those dependencies as sub-chart dependencies. + This chart provides those dependencies via sub-charts. 
Don't repeat "dependencies". ```diff - This chart provides those dependencies as sub-chart dependencies. + This chart provides those dependencies via sub-charts. ```
justusbunsi marked this conversation as resolved
README.md Outdated
@@ -89,0 +105,4 @@
The reasoning behind this is that new users of the chart will start with the most recent sub-chart dependency versions.
If you want to stay on an older appVersion of a sub-chart dependency (e.g. PostgreSQL), you need to override the image tag in your `values.yaml` file.
In fact, we recommend to do so right from the start to be independent of major sub-chart dependency changes as they are released.
Contributor

This should be more eye-catching. Maybe by using the quote syntax? Although, this would break the text flow. 🤔

This should be more eye-catching. Maybe by using the quote syntax? Although, this would break the text flow. 🤔
Author
Collaborator

I've used a **Note** to make it stand out more.

I've used a `**Note**` to make it stand out more.
justusbunsi marked this conversation as resolved
README.md Outdated
@@ -89,0 +106,4 @@
If you want to stay on an older appVersion of a sub-chart dependency (e.g. PostgreSQL), you need to override the image tag in your `values.yaml` file.
In fact, we recommend to do so right from the start to be independent of major sub-chart dependency changes as they are released.
There is no need to update to every new PostgreSQL major version - you can happily skip some and do a larger update every few years.
Contributor

I wouldn't be specific about when to update. Every few years seems a bit long. 😉

- There is no need to update to every new PostgreSQL major version - you can happily skip some and do a larger update every few years. + There is no need to update to every new PostgreSQL major version - you can happily skip some and do larger updates when you are ready for them. 
I wouldn't be specific about when to update. Every few years seems a bit long. 😉 ```diff - There is no need to update to every new PostgreSQL major version - you can happily skip some and do a larger update every few years. + There is no need to update to every new PostgreSQL major version - you can happily skip some and do larger updates when you are ready for them. ```
pat-s marked this conversation as resolved
README.md Outdated
@@ -89,0 +108,4 @@
In fact, we recommend to do so right from the start to be independent of major sub-chart dependency changes as they are released.
There is no need to update to every new PostgreSQL major version - you can happily skip some and do a larger update every few years.
We recommend to use a rolling tag like `:<majorVersion>-debian-11` to incorporate minor and patch updates for the respective major version as they are released.
Contributor

We probably shouldn't refer to a OS-specific image. Otherwise, we should update the reference now and then. Maybe simply referring to :<majorVersion>?

We probably shouldn't refer to a OS-specific image. Otherwise, we should update the reference now and then. Maybe simply referring to `:<majorVersion>`?
Author
Collaborator

This is the image the Bitnami chart uses. I would prefer to link users to it to avoid them using the official PG image - for compatibility with the bitnami chart. There are reasons why Bitnami maintains their own PG images.

We could variabalize the 11 but I wouldn't want to be too generic here with the image recommendation.

This is the image the Bitnami chart uses. I would prefer to link users to it to avoid them using the official PG image - for compatibility with the bitnami chart. There are reasons why Bitnami maintains their own PG images. We could variabalize the `11` but I wouldn't want to be too generic here with the image recommendation.
Contributor

This is the image the Bitnami chart uses. I would prefer to link users to it to avoid them using the official PG image - for compatibility with the bitnami chart. There are reasons why Bitnami maintains their own PG images.

Absolutely. We should prevent any confusion. We could directly link to the DockerHub tag list site of the respective pgsql image. There is also the :<majorVersion> tag available.

> This is the image the Bitnami chart uses. I would prefer to link users to it to avoid them using the official PG image - for compatibility with the bitnami chart. There are reasons why Bitnami maintains their own PG images. Absolutely. We should prevent any confusion. We could directly link to the DockerHub tag list site of the respective pgsql image. There is also the `:<majorVersion>` tag available. - HA: https://hub.docker.com/r/bitnami/postgresql-repmgr/tags - Non-HA: https://hub.docker.com/r/bitnami/postgresql/tags
justusbunsi marked this conversation as resolved
README.md Outdated
@@ -89,0 +114,4 @@
Please double-check the image repository and available tags in the sub-chart:
- [PostgreSQL-HA](https://github.com/bitnami/charts/blob/main/bitnami/postgresql-ha/values.yaml#L106-L107)
- [Redis Cluster](https://github.com/bitnami/charts/blob/d6059e1cfa130e3f206976c412ee41c69532ed2f/bitnami/redis-cluster/values.yaml#L75-L76)
Contributor

Intentional to use the permalink for redis-cluster but the main branch for pgsql-ha?
If not, this is the permalink for pgsql-ha: https://github.com/bitnami/charts/blob/b51288a469c1e42dac2ee2b3f26f1951eebf741f/bitnami/postgresql-ha/values.yaml#L106-L107

Intentional to use the permalink for redis-cluster but the main branch for pgsql-ha? If not, this is the permalink for pgsql-ha: `https://github.com/bitnami/charts/blob/b51288a469c1e42dac2ee2b3f26f1951eebf741f/bitnami/postgresql-ha/values.yaml#L106-L107`
Author
Collaborator

Good catch. Not intentional. I think the the dynamic link is better here. Yes, line numbers might change but linking to an old version might also confuse users.

Good catch. Not intentional. I think the the dynamic link is better here. Yes, line numbers might change but linking to an old version might also confuse users.
justusbunsi marked this conversation as resolved
README.md Outdated
@@ -1054,0 +1091,4 @@
- Update PostgreSQL sub-chart dependencies to appVersion 16.x
- Update to sub-charts versioning approach: Users are encouraged to pin the version tag of the sub-chart dependencies to a major appVersion.
This avoids issues during chart upgrades and allows to incorporate new sub-chart versions as they come in. Please see the new [README section describing the versioning approach for sub-chart versions](#dependency-versioning).
Contributor
- ... as they come in. ... + ... as they are released. ... 
```diff - ... as they come in. ... + ... as they are released. ... ```
justusbunsi marked this conversation as resolved
pat-s added 1 commit 2023-12-12 14:00:15 +00:00
address comments
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 32s
a9969002e2
pat-s added 1 commit 2023-12-13 08:25:11 +00:00
use dockerhub links
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 31s
462ece0cde
justusbunsi approved these changes 2023-12-13 16:55:05 +00:00
justusbunsi left a comment
Contributor

LGTM 👍

LGTM 👍
justusbunsi added 1 commit 2023-12-13 16:55:09 +00:00
Merge branch 'main' into readme-dep-versioning
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 31s
ac49bc40ee
justusbunsi merged commit ff932a0bf9 into main 2023-12-13 16:56:02 +00:00
justusbunsi deleted branch readme-dep-versioning 2023-12-13 16:56:03 +00:00
Sign in to join this conversation.
No description provided.