mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Use backup_pvc for custom backup PVC name in templates When backup_pvc is specified with create_backup_pvc: true, the PVC template and ownerReference removal used the hardcoded default name (deployment_name-backup-claim) instead of the user-specified name. This caused the management pod to reference a PVC that didn't exist. Replace backup_claim variable with backup_pvc throughout the backup role so the resolved PVC name is used consistently in all templates. Authored By: Adam Knochowski <aknochow@redhat.com> Assisted By: Claude
14 lines
416 B
YAML
14 lines
416 B
YAML
---
|
|
|
|
# The backup directory in this status can be referenced when restoring
|
|
- name: Update CR Backup status
|
|
operator_sdk.util.k8s_status:
|
|
api_version: '{{ api_version }}'
|
|
kind: "{{ kind }}"
|
|
name: "{{ ansible_operator_meta.name }}"
|
|
namespace: "{{ ansible_operator_meta.namespace }}"
|
|
status:
|
|
backupDirectory: "{{ backup_dir }}"
|
|
backupClaim: "{{ backup_pvc }}"
|
|
when: backup_complete
|