Skip to content

Commit

Permalink
Add accessMode, bump app version to v0.8.23
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Feb 24, 2024
1 parent 1456dd0 commit 914f30b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions charts/amphitheatre/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion charts/amphitheatre/reinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
6 changes: 3 additions & 3 deletions charts/amphitheatre/templates/controllers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion charts/amphitheatre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 914f30b

Please sign in to comment.