fluzzykitten
4720d29fda
Update k8s_exec and k8s_cp to include container name ( #1858 )
...
Update secrets.yml
We need to specify a container in environments that use sidecar injection, like in the case of istio service mesh. If the container is not specified, and a side car is injected so there are multiple containers running in the pod, this task will fail because a container was not specified in a pod with multiple containers.
2024-05-16 16:32:38 -04:00
Hao Liu
25a6c3c48a
Remove unnessary chmod and chown for db dump ( #1667 )
...
Based on https://github.com/ansible/awx-operator/pull/1602
Fixes https://github.com/ansible/awx-operator/issues/1590
2023-12-13 19:28:23 +00:00
Imed
a9245454a4
Remove reference to cluster.local ( #1566 )
...
Co-authored-by: Imed Aouidene <imaouide@imaouide-thinkpadt14sgen2i.cdg.csb >
2023-11-27 16:26:24 +00:00
Hao Liu
92639c1e89
Adding keepalive while doing pg_dump ( #1580 )
2023-10-10 13:08:51 -04:00
kurokobo
a7cfbe23da
fix: correct label selector to find task pod ( #1573 )
2023-10-03 14:08:54 -04:00
jessicamack
31e1914db6
Pre-create event table partitions before db backup in operator ( #1443 )
...
Signed-off-by: jessicamack <jmack@redhat.com >
<44379968+TheRealHaoLiu@users.noreply.github.com >
2023-09-26 10:20:12 -04:00
David Luong
61ef5ef005
change date format to avoid :
2023-03-02 13:54:00 -05:00
Christian Adams
6b01ff09ce
Amend permissions for backup dir ( #1109 )
2022-11-03 12:52:48 -04:00
Christian Adams
fde4a47a14
Bump dependencies stream ( #841 )
...
* Bump Postgresql, Nginx and Redis versions
* pg12 --> pg13 upgrade path
* Set supported pg version as a variable to remain DRY
* Make deleting the old db data pvc after upgrade configurable
* Use labels to find the postgres pod
* backup/restore: fix postgres label selector value
We need to use the deployment_name variable for the postgres instance
name.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com >
* backup/restore: add missing default supported_pg_version variable
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com >
* restore: update database_host fact with pg suffix
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com >
Co-authored-by: Dimitri Savineau <dsavinea@redhat.com >
2022-07-29 13:21:51 -04:00
Stefan de Kooter
59036fc373
Add free format pg_dump backup parameter
2022-07-10 19:03:32 +00:00
David Luong
e966e9299f
Resolves #918 to make no_log configurable ( #923 )
2022-06-16 01:03:13 -04:00
Christian Adams
575e594314
Wait for the postgres pod to enter the ready state before starting containers ( #861 )
2022-04-06 08:29:53 -04:00
kurokobo
589a3751e1
fix: add quotes for PGPASSWORD for the backup and restore roles
2022-03-20 16:13:12 +09:00
Shane McDonald
69203723ef
Update scaffolding to pass yamllint
2021-09-29 18:39:24 -04:00
Shane McDonald
e97def4429
meta -> ansible_operator_meta
2021-09-29 18:39:24 -04:00
Christian M. Adams
68b00efe5e
Set no_log on all tasks that could leak secrets in logs
2021-07-07 18:19:31 -04:00
Christian M. Adams
e857902dcc
Fail task if pg_dump command fails
2021-06-04 10:31:57 -04:00
Christian M. Adams
da75e4b400
update name of default postgres label selector for backup role
2021-06-01 17:12:23 -04:00
Christian Adams
5fd86e07ce
Merge pull request #319 from rooftopcellist/custom_format_backup
...
Use custom pg_dump format for faster restores
2021-05-18 10:33:23 -04:00
Marcelo Moreira de Mello
08776ca2b6
Extended labels to AWX Backup/Restore
2021-05-17 21:40:37 -04:00
Christian M. Adams
f16d9ac55f
Use custom pg_dump format for faster restores
2021-05-17 16:54:49 -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
3e444da7bc
Set ownerRef to null for restore created AWX object to avoid garbage collection
...
- Set defaults for pg type to satisfy conditional
2021-04-30 10:49:30 -04:00
Christian M. Adams
867bc258b9
Allow custom postgres pod label to support user managed pg pods
...
- Only set resolvable pg host path for pg container when managed
2021-04-30 10:49:30 -04:00
Christian M. Adams
ff9248e971
create pvc in namespace of old awx by default, update docs, fix bug with secret statuses
2021-04-30 10:49:30 -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
8ed0b1fe61
Template only what is needed from secrets and awx cro
2021-04-30 10:24:37 -04:00
Christian M. Adams
82efe05343
store secrets & definitions in a tempfile dir, fix postgres label
2021-04-30 10:24:36 -04:00
Christian M. Adams
2cbf60fa17
Remove unneeded fqcn for modules & fix CI
2021-04-30 10:24:36 -04:00
Christian M. Adams
ce8c58f542
added secrets logic, fixed permissions issues
2021-04-30 10:24:36 -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
0a82fec359
Refactor backup role & store secrets as well
2021-04-30 10:24:34 -04:00