Skip to content

Commit

Permalink
🔧(arnold) use var to allow override pvc name (#419)
Browse files Browse the repository at this point in the history
The var ralph_pvc_history_name allow to change the PVC to use for the
ralph's history volume.
  • Loading branch information
claudusd authored Aug 28, 2023
1 parent 560b43d commit 13075ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ have an authority field matching that of the user
- Models: The xAPI `context.contextActivities.category` field is now mandatory
in the video and virtual classroom profiles. [BC]
- Backends: `LRSHTTP` methods must not be used in `asyncio` events loop (BC)
- Add variable to override PVC name in arnold deployment

## [3.9.0] - 2023-07-21

Expand Down
2 changes: 1 addition & 1 deletion src/tray/templates/services/app/cronjob_pipeline.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ items:
volumes:
- name: ralph-v-history
persistentVolumeClaim:
claimName: ralph-pvc-history
claimName: "{{ ralph_pvc_history_name }}"
{% if ralph_mount_es_ca_secret %}
- name: es-ca-certificate
secret:
Expand Down
2 changes: 1 addition & 1 deletion src/tray/templates/services/app/deploy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
volumes:
- name: ralph-v-history
persistentVolumeClaim:
claimName: ralph-pvc-history
claimName: "{{ ralph_pvc_history_name }}"
{% if ralph_mount_es_ca_secret %}
- name: es-ca-certificate
secret:
Expand Down
2 changes: 1 addition & 1 deletion src/tray/templates/volumes/history.yml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ralph-pvc-history
name: "{{ ralph_pvc_history_name }}"
namespace: "{{ namespace_name }}"
labels:
app: ralph
Expand Down
3 changes: 3 additions & 0 deletions src/tray/vars/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ ralph_lrs_command:
ralph_lrs_auth_secret_name: "ralph-lrs-auth-{{ ralph_vault_checksum | default('undefined_ralph_vault_checksum') }}"
ralph_ingress_class_name: "{{ default_ingress_class_name }}"
ralph_sentry_ignore_health_checks: false

# -- pvc
ralph_pvc_history_name: "ralph-pvc-history"

0 comments on commit 13075ef

Please sign in to comment.