mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/*] Make Helm charts 100% OCI (#15998)
* [bitnami/*] Make Helm charts 100% OCI Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Add main files and scaffolding Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Bump chart version Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Improve helm upgrade instruction Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Revert bitnami/common version bump Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Prettify Chart.yamls Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> * Regenerate Chart.lock and bump chart versions Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> --------- Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
committed by
GitHub
parent
4596ed932f
commit
884151035e
@@ -1,9 +1,9 @@
|
||||
dependencies:
|
||||
- name: mariadb
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
version: 11.5.5
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 11.5.7
|
||||
- name: common
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
version: 2.2.4
|
||||
digest: sha256:530ab3397c43a6d50dd4177017cabc1c20a684a75cd7498ecefdb36f17107840
|
||||
generated: "2023-04-01T13:33:14.66513492Z"
|
||||
digest: sha256:d3c202c293f907243cdb6d9e44960bafbb3d62a9d6a65da9b677e123988cdd0f
|
||||
generated: "2023-04-20T09:35:48.244414+02:00"
|
||||
|
||||
@@ -6,12 +6,12 @@ appVersion: 5.2.1
|
||||
dependencies:
|
||||
- condition: db.bundleTestDB
|
||||
name: mariadb
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
tags:
|
||||
- phpmyadmin-database
|
||||
version: 11.x.x
|
||||
- name: common
|
||||
repository: https://charts.bitnami.com/bitnami
|
||||
repository: oci://registry-1.docker.io/bitnamicharts
|
||||
tags:
|
||||
- bitnami-common
|
||||
version: 2.x.x
|
||||
@@ -29,4 +29,4 @@ name: phpmyadmin
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/phpmyadmin
|
||||
- https://www.phpmyadmin.net/
|
||||
version: 10.4.6
|
||||
version: 10.5.0
|
||||
|
||||
@@ -11,8 +11,7 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
|
||||
## TL;DR
|
||||
|
||||
```console
|
||||
helm repo add my-repo https://charts.bitnami.com/bitnami
|
||||
helm install my-release my-repo/phpmyadmin
|
||||
helm install my-release oci://registry-1.docker.io/bitnamicharts/phpmyadmin
|
||||
```
|
||||
|
||||
## Introduction
|
||||
@@ -33,8 +32,7 @@ Bitnami charts can be used with [Kubeapps](https://kubeapps.dev/) for deployment
|
||||
To install the chart with the release name `my-release`:
|
||||
|
||||
```console
|
||||
helm repo add my-repo https://charts.bitnami.com/bitnami
|
||||
helm install my-release my-repo/phpmyadmin
|
||||
helm install my-release oci://registry-1.docker.io/bitnamicharts/phpmyadmin
|
||||
```
|
||||
|
||||
The command deploys phpMyAdmin on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation.
|
||||
@@ -266,7 +264,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
|
||||
|
||||
```console
|
||||
helm install my-release \
|
||||
--set db.host=mymariadb,db.port=3306 my-repo/phpmyadmin
|
||||
--set db.host=mymariadb,db.port=3306 oci://registry-1.docker.io/bitnamicharts/phpmyadmin
|
||||
```
|
||||
|
||||
The above command sets the phpMyAdmin to connect to a database in `mymariadb` host and `3306` port respectively.
|
||||
@@ -274,7 +272,7 @@ The above command sets the phpMyAdmin to connect to a database in `mymariadb` ho
|
||||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
|
||||
|
||||
```console
|
||||
helm install my-release -f values.yaml my-repo/phpmyadmin
|
||||
helm install my-release -f values.yaml oci://registry-1.docker.io/bitnamicharts/phpmyadmin
|
||||
```
|
||||
|
||||
> **Tip**: You can use the default [values.yaml](values.yaml)
|
||||
@@ -420,7 +418,7 @@ Consequences:
|
||||
export MARIADB_ROOT_PASSWORD=$(kubectl get secret --namespace default phpmyadmin-mariadb -o jsonpath="{.data.mariadb-root-password}" | base64 -d)
|
||||
export MARIADB_PASSWORD=$(kubectl get secret --namespace default phpmyadmin-mariadb -o jsonpath="{.data.mariadb-password}" | base64 -d)
|
||||
kubectl delete deployments.apps phpmyadmin
|
||||
helm upgrade phpmyadmin my-repo/phpmyadmin --set mariadb.auth.rootPassword=$MARIADB_ROOT_PASSWORD,mariadb.auth.password=$MARIADB_PASSWORD
|
||||
helm upgrade phpmyadmin oci://registry-1.docker.io/bitnamicharts/phpmyadmin --set mariadb.auth.rootPassword=$MARIADB_ROOT_PASSWORD,mariadb.auth.password=$MARIADB_PASSWORD
|
||||
```
|
||||
|
||||
### To 7.0.0
|
||||
@@ -485,7 +483,7 @@ Delete the phpMyAdmin deployment and delete the MariaDB statefulsets:
|
||||
Now the upgrade works:
|
||||
|
||||
```console
|
||||
helm upgrade phpmyadmin my-repo/phpmyadmin --set mariadb.primary.persistence.existingClaim=$MARIADB_PVC --set mariadb.auth.rootPassword=$MARIADB_ROOT_PASSWORD --set mariadb.auth.password=$MARIADB_PASSWORD --set db.bundleTestDB=true
|
||||
helm upgrade phpmyadmin oci://registry-1.docker.io/bitnamicharts/phpmyadmin --set mariadb.primary.persistence.existingClaim=$MARIADB_PVC --set mariadb.auth.rootPassword=$MARIADB_ROOT_PASSWORD --set mariadb.auth.password=$MARIADB_PASSWORD --set db.bundleTestDB=true
|
||||
```
|
||||
|
||||
Finally, you should see the lines below in MariaDB container logs:
|
||||
|
||||
@@ -51,7 +51,7 @@ instance. Please login using the following credentials:
|
||||
phpMyAdmin has not been configure to point to a specific database. Please provide the db host,
|
||||
username and password at log in or upgrade the release with a specific database:
|
||||
|
||||
$ helm upgrade {{ .Release.Name }} my-repo/phpmyadmin --set db.host=mydb
|
||||
$ helm upgrade {{ .Release.Name }} oci://registry-1.docker.io/bitnamicharts/phpmyadmin --set db.host=mydb
|
||||
|
||||
{{- end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user