rakesh561
43c1f396c3
Updated image pull policy for backup and restore policy as variable ( #1473 )
2023-07-05 14:39:43 -04:00
rakesh561
fcc09673cc
Add db_management_pod_node_selector for specifying nodeSelect for backup/restore mgmt pod ( #1434 )
...
Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com >
Co-authored-by: Jesse Wattenbarger <jesse.j.wattenbarger@gmail.com >
2023-06-21 10:46:29 -04:00
Stanislav Zaprudskiy
5a856eeba8
Add additional_labels parameter ( #1160 )
...
* Move label templates into `common` role
So that there is single source of labels management, and labels are
unified across the other roles
* Introduce `additional_labels`
* Fix paths for labels templates
* Return `additional_labels_items` as list
* Add molecule tests
2023-01-30 18:51:08 -05:00
Jeremy White
a81be586db
update filter to jinja 3.x format
2022-08-24 14:56:08 -05:00
Christian Adams
9f017d03e6
Make Backup & restore requests and limits configurable ( #1030 )
...
* Add resource specification options to the backup objects
* Add resource specification options to the restore object
Co-authored-by: Ivan Aragonés <26822043+ivarmu@users.noreply.github.com >
Co-authored-by: silvinux <silvinux7@gmail.com >
Co-authored-by: Ivan Aragonés Muniesa <iaragone@redhat.com >
2022-08-23 23:23:01 -04:00
Christian M. Adams
8aee279634
Use relatedImages to make disconnected deployments possible
...
* Add ability to pass images in from the CSV for disconnected installs
Signed-off-by: Christian M. Adams <chadams@redhat.com >
2021-10-26 00:26:16 -04:00
Shane McDonald
e97def4429
meta -> ansible_operator_meta
2021-09-29 18:39:24 -04:00
Yanis Guenane
5bbe7b6e3e
Merge pull request #397 from rooftopcellist/dynamic_secrets
...
Dynamic secret backup & restore
2021-06-16 10:41:04 +02: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
Christian M. Adams
42141cd159
Do not clean up pvc when awxbackup cr is deleted
...
- This is accomplished by explicitly setting ownerRefs to null
2021-06-15 12:23:04 -04:00
Christian M. Adams
69b3f43414
Make postgres image and version separately configurable for backup/restore
...
- Update templated and generated manifest files
2021-06-04 11:00:50 -04:00
Marcelo Moreira de Mello
08776ca2b6
Extended labels to AWX Backup/Restore
2021-05-17 21:40:37 -04:00
Christian M. Adams
82ed9d6d56
Default to storage class being undefined
...
* This is so that users can intentially set it to an empty string if they want to use the default storage class
* conversely, now users can manually create a pvc that does not utilize the default storage class
2021-05-17 16:41:53 -04:00
Christian M. Adams
8af0681373
Persist secret names from old deployment & add them to the spec
...
- renamed some more variables to be consistent with the pulp-operator
- removed unneeded vars from backup & restore crds
- added a way to parse spec at restore time by including vars to
get around the issue of triply nested quotes when using to_json
2021-05-04 10:06:29 -04:00
Christian M. Adams
5ae36367a4
Rename product specific variable names
2021-04-30 10:49:31 -04:00
Christian M. Adams
57f9530198
Simplify pvc naming scheme, one pvc per deployment
2021-04-30 10:49:31 -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
fb612c24df
Only write values for spec section of awx object in backup
2021-04-30 10:24:37 -04:00
Christian M. Adams
8ed0b1fe61
Template only what is needed from secrets and awx cro
2021-04-30 10:24:37 -04:00
Christian M. Adams
5669747bbf
Scope pvc and management pod to default namespace
...
- make this configurable via tower_backup_pvc_namespace var
- remove redundant k8s task info
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
8467209d35
init restore
2021-04-30 10:24:35 -04:00
Christian M. Adams
80c8d87f71
Create an event when pvc is not set to alert the user
2021-04-30 10:24:35 -04:00
Christian M. Adams
e1dca00f46
Fix backup reconciliation loop, add error status
2021-04-30 10:24:35 -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
9e44e21a66
Rename pvc name var to be consistent with other backup variables
2021-04-30 10:24:34 -04:00
Christian M. Adams
54efda1a25
Use default cluster storage class if none is provided
2021-04-30 10:24:34 -04:00
Christian M. Adams
bcd1410438
init backup CR files
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