Skip to content

Commit

Permalink
Add Persistence Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Feb 24, 2024
1 parent 7d7326f commit 209d21f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ The following table lists the configurable parameters of the Amphitheatre chart
| controllers.affinity | Affinity settings for the Controllers pods | `{}` |
| controllers.debug | Enable debug mode for the Controllers | `true` |

### Persistence Parameters

| Parameter | Description | Default |
|---------------------|-------------------------------------------|--------------|
| persistence.storageClass | Persistent Volume storage class | `""` |

### Amphitheatre CRDs Parameters

| Parameter | Description | Default |
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.18
version: 0.12.19

# 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.17"
appVersion: "v0.8.18"

dependencies:
- name: amphitheatre-crds
Expand Down
2 changes: 1 addition & 1 deletion charts/amphitheatre/templates/apiserver/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
value: {{ include "amphitheatre.nats.url" . | quote }}
{{- if .Values.apiserver.debug }}
- name: RUST_LOG
value: amp=debug
value: amp=DEBUG
{{- end }}
ports:
- name: http
Expand Down
6 changes: 5 additions & 1 deletion charts/amphitheatre/templates/controllers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ 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
value: {{ .Values.persistence.storageClass | quote }}
{{- end }}
{{- if .Values.controllers.debug }}
- name: RUST_LOG
value: amp=debug
value: amp=DEBUG
{{- end }}
resources:
{{- toYaml .Values.controllers.resources | nindent 12 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/amphitheatre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ controllers:
## Enable debug mode
debug: true

## @section Persistence Parameters
persistence:
# Persistent Volume storage class
storageClass: ""

## @section Amphitheatre CRDs Parameters
crds:
# Switch to install or uninstall the amphitheatre-crds helm chart
Expand Down

0 comments on commit 209d21f

Please sign in to comment.