From 914f30b1705c3442fda917cb281f00f5e560f385 Mon Sep 17 00:00:00 2001 From: Eguo Wang Date: Sun, 25 Feb 2024 03:21:28 +0800 Subject: [PATCH] Add accessMode, bump app version to v0.8.23 --- README.md | 3 ++- charts/amphitheatre/Chart.yaml | 4 ++-- charts/amphitheatre/reinstall.sh | 5 ++++- charts/amphitheatre/templates/controllers/deployment.yaml | 6 +++--- charts/amphitheatre/values.yaml | 4 +++- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c12d979..143f7c6 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,8 @@ Provisioner](https://github.com/openebs/dynamic-nfs-provisioner). | Parameter | Description | Default | |---------------------|-------------------------------------------|--------------| -| persistence.storageClass | Persistent Volume storage class | `"standard"` | +| persistence.storageClass | Persistent Volume storage class name | `"standard"` | +| persistence.accessMode | Persistent Volume access mode | `"ReadWriteOnce"` | ### Amphitheatre CRDs Parameters diff --git a/charts/amphitheatre/Chart.yaml b/charts/amphitheatre/Chart.yaml index 91a7abc..cfb9d74 100644 --- a/charts/amphitheatre/Chart.yaml +++ b/charts/amphitheatre/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.12.23 +version: 0.12.24 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.8.22" +appVersion: "v0.8.23" dependencies: - name: amphitheatre-crds diff --git a/charts/amphitheatre/reinstall.sh b/charts/amphitheatre/reinstall.sh index 1b456b4..4464c24 100755 --- a/charts/amphitheatre/reinstall.sh +++ b/charts/amphitheatre/reinstall.sh @@ -13,7 +13,10 @@ kubectl delete ns amp-system sleep 10 echo "3/4 Install new release" -helm install amp . --create-namespace --namespace amp-system +helm install amp . --create-namespace \ + --namespace amp-system \ + --set persistence.storageClass=local-path \ + --set persistence.accessMode=ReadWriteOnce echo "4/4 Get the application URL" NODE=$(kubectl get nodes --namespace amp-system -o jsonpath="{.items[0].metadata.name}") diff --git a/charts/amphitheatre/templates/controllers/deployment.yaml b/charts/amphitheatre/templates/controllers/deployment.yaml index 04af212..b6bfe8c 100644 --- a/charts/amphitheatre/templates/controllers/deployment.yaml +++ b/charts/amphitheatre/templates/controllers/deployment.yaml @@ -40,10 +40,10 @@ spec: value: {{ include "amphitheatre.controllers.serviceAccountName" . }} - name: AMP_NATS_URL value: {{ include "amphitheatre.nats.url" . | quote }} - {{- if .Values.persistence.storageClass }} - - name: AMP_STORAGE_CLASS_NAME + - name: AMP_PV_STORAGE_CLASS_NAME value: {{ .Values.persistence.storageClass | quote }} - {{- end }} + - name: AMP_PV_ACCESS_MODE + value: {{ .Values.persistence.accessMode | quote }} {{- if .Values.controllers.debug }} - name: RUST_LOG value: amp=DEBUG diff --git a/charts/amphitheatre/values.yaml b/charts/amphitheatre/values.yaml index 1bf11b8..48a5e62 100644 --- a/charts/amphitheatre/values.yaml +++ b/charts/amphitheatre/values.yaml @@ -183,8 +183,10 @@ controllers: ## @section Persistence Parameters persistence: - # Persistent Volume storage class + # Persistent Volume storage class name storageClass: "standard" + # Persistent Volume Access Mode + accessMode: "ReadWriteOnce" ## @section Amphitheatre CRDs Parameters crds: