Remove ownerReferences based on secret name from backup

This commit is contained in:
Christian M. Adams
2021-05-03 22:43:36 -04:00
parent a46938e1be
commit 15bc12b7f6
2 changed files with 7 additions and 5 deletions

View File

@@ -18,7 +18,7 @@
namespace: '{{ meta.namespace }}'
ownerReferences: null
loop:
- '{{ deployment_name }}-admin-password'
- '{{ deployment_name }}-secret-key'
- '{{ deployment_name }}-postgres-configuration'
- '{{ deployment_name }}-broadcast-websocket'
- '{{ secret_key_secret_name }}'
- '{{ admin_password_secret_name }}'
- '{{ broadcast_websocket_secret_name }}'
- '{{ postgres_configuration_secret_name }}'

View File

@@ -16,8 +16,10 @@
- name: Write spec vars to temp file
shell: |
echo '{{ awx_object.stdout }} > {{ tmp_spec.path }}'
changed_when: false
- include_vars: "{{ tmp_spec.path }}"
- name: Include spec vars to save them as a dict
include_vars: "{{ tmp_spec.path }}"
register: spec
- name: Use include_vars to read in spec as a dict (because spec doesn't have quotes)