From 9c2a3b93d9cc047a5d1e4a105cd61fa41ab19175 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Fri, 19 Mar 2021 13:58:22 -0400 Subject: [PATCH] debuginfod: follow storage PV rename into PVC objects --- playbooks/openshift-apps/debuginfod.yml | 2 +- .../debuginfod/{files => templates}/storage.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename roles/openshift-apps/debuginfod/{files => templates}/storage.yml (73%) diff --git a/playbooks/openshift-apps/debuginfod.yml b/playbooks/openshift-apps/debuginfod.yml index 4bf007ffb4..b4b094aaa5 100644 --- a/playbooks/openshift-apps/debuginfod.yml +++ b/playbooks/openshift-apps/debuginfod.yml @@ -36,7 +36,7 @@ - role: openshift/object app: debuginfod - file: storage.yml + template: storage.yml objectname: storage.yml - role: openshift/route diff --git a/roles/openshift-apps/debuginfod/files/storage.yml b/roles/openshift-apps/debuginfod/templates/storage.yml similarity index 73% rename from roles/openshift-apps/debuginfod/files/storage.yml rename to roles/openshift-apps/debuginfod/templates/storage.yml index 0c9a495756..4009b4a279 100644 --- a/roles/openshift-apps/debuginfod/files/storage.yml +++ b/roles/openshift-apps/debuginfod/templates/storage.yml @@ -15,7 +15,7 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: debuginfod-volume + name: debuginfod-storage{{ '-stg' if env == 'staging' else '' }} spec: storageClassName: "" accessModes: @@ -23,4 +23,4 @@ spec: resources: requests: storage: 300Gi - volumeName: debuginfod-volume + volumeName: debuginfod-storage{{ '-stg' if env == 'staging' else '' }}