Viviana Capote
05943687fe
Added option to also delete backup directory on PVC when AWXBackup CRD object is deleted
2022-06-27 15:45:33 +10:00
Shane McDonald
e97def4429
meta -> ansible_operator_meta
2021-09-29 18:39:24 -04:00
Christian M. Adams
bfec61ad8d
Dynamically collect secrets for backup & restore roles
...
- This prevents us from overwriting vars unintentionally at restore time
- This will make it easier to add secrets to be backed up in the future
- Add generated secret names to awx spec backup
- Fail early if secret status doesn't exist
- Skip if secret is not in spec for non-generated secrets
- Secret values must be b64 decoded before secret is created
- Cleanup temp files
2021-06-15 14:17:02 -04:00
Marcelo Moreira de Mello
08776ca2b6
Extended labels to AWX Backup/Restore
2021-05-17 21:40:37 -04:00
Christian M. Adams
5e2d11835e
Fix rebase issue & remove dynamic kind/version var setting
2021-04-30 13:51:48 -04:00
Christian M. Adams
5ae36367a4
Rename product specific variable names
2021-04-30 10:49:31 -04:00
Christian M. Adams
38a6a02f85
Add secret names as statuses on the AWX object
...
- set migrate data status even if custom name for old postgres config is not used
- Allow users to change pg name, pw & db name for a managed postgres
- set default value for postgres-configuration type as unmanaged if secret is created
- Make pg port configurable for managed deployments
2021-04-30 10:49:27 -04:00
Christian M. Adams
5b32c41277
Fix retry for checking postgres pod & fix secrets template
...
- fixed a lot of typos & updated the README.md files
2021-04-30 10:24:37 -04:00
Christian M. Adams
b9d0852c83
Fix small namespace issue
2021-04-30 10:24:36 -04:00
Christian M. Adams
0580398c90
Finish db restore logic
...
- rename _backup_dir to backup_dir
- add towerBackupClaim status to make the pvc name easier to find for users
2021-04-30 10:24:36 -04:00
Christian M. Adams
e1dca00f46
Fix backup reconciliation loop, add error status
2021-04-30 10:24:35 -04:00
Christian M. Adams
4839bdcaad
Rename Backup CR to AWXBackup to be more unique
...
- we could alternatively direct users to use the full GVK. Issue is potential conflict with AH operator CRs
2021-04-30 10:24:34 -04:00
Christian M. Adams
91dda5cb16
backup secrets to YAML files
2021-04-30 10:24:34 -04:00
Christian M. Adams
0a82fec359
Refactor backup role & store secrets as well
2021-04-30 10:24:34 -04:00
Christian M. Adams
13397f41ad
use meta.data to keep pods and pvcs unique in the same namespace
2021-04-30 10:24:34 -04:00
Christian M. Adams
fdcc745f11
Add watcher for backup CR
2021-04-30 10:24:33 -04:00
Christian M. Adams
4a5ca184c0
Use storage class to dynamically create volume for backups
2021-04-30 10:24:33 -04:00
Christian M. Adams
e037feafbf
Create management pod and pvc for backup
2021-04-30 10:24:33 -04:00
Christian M. Adams
0220c75884
wip deployment podspec or sts
2021-04-30 10:24:33 -04:00