diff --git a/CHANGELOG.md b/CHANGELOG.md index f0ef19d01..b1c2dbb27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/tray/templates/services/app/cronjob_pipeline.yml.j2 b/src/tray/templates/services/app/cronjob_pipeline.yml.j2 index 36b106dba..16ef0e04f 100644 --- a/src/tray/templates/services/app/cronjob_pipeline.yml.j2 +++ b/src/tray/templates/services/app/cronjob_pipeline.yml.j2 @@ -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: diff --git a/src/tray/templates/services/app/deploy.yml.j2 b/src/tray/templates/services/app/deploy.yml.j2 index 96d564d78..22e94dd2a 100644 --- a/src/tray/templates/services/app/deploy.yml.j2 +++ b/src/tray/templates/services/app/deploy.yml.j2 @@ -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: diff --git a/src/tray/templates/volumes/history.yml.j2 b/src/tray/templates/volumes/history.yml.j2 index 736cabc59..cb76e2985 100644 --- a/src/tray/templates/volumes/history.yml.j2 +++ b/src/tray/templates/volumes/history.yml.j2 @@ -1,7 +1,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: ralph-pvc-history + name: "{{ ralph_pvc_history_name }}" namespace: "{{ namespace_name }}" labels: app: ralph diff --git a/src/tray/vars/all/main.yml b/src/tray/vars/all/main.yml index 81c898e23..840fa1d04 100644 --- a/src/tray/vars/all/main.yml +++ b/src/tray/vars/all/main.yml @@ -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"