Simplify pvc naming scheme, one pvc per deployment

This commit is contained in:
Christian M. Adams
2021-04-23 10:55:41 -04:00
parent 3e444da7bc
commit 57f9530198
4 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@
# If tower_backup_pvc is defined, use in management-pod.yml.j2
- name: Set default pvc name
set_fact:
_default_backup_pvc: "{{ meta.name }}-backup-claim"
_default_backup_pvc: "{{ tower_name }}-backup-claim"
# by default, it will re-use the old pvc if already created (unless a pvc is provided)
- name: Set PVC to use for backup

View File

@@ -2,7 +2,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ meta.name }}-backup-claim
name: {{ tower_name }}-backup-claim
namespace: {{ tower_backup_pvc_namespace }}
spec:
accessModes:

View File

@@ -32,7 +32,7 @@ metadata:
namespace: my-namespace
spec:
tower_name: mytower
tower_backup_pvc: awxbackup1-backup-claim
tower_backup_pvc: myoldtower-backup-claim
tower_backup_pvc_namespace: 'old-awx-namespace'
tower_backup_dir: /backups/tower-openshift-backup-2021-04-02-03:25:08
```

View File

@@ -1,7 +1,7 @@
---
- name: Set default pvc name
set_fact:
_default_backup_pvc: "{{ meta.name }}-backup-claim"
_default_backup_pvc: "{{ tower_name }}-backup-claim"
# by default, it will re-use the old pvc if already created (unless pvc is provided)
- name: Set PVC to use for backup