Commit Graph
645 Commits
Author SHA1 Message Date
Hao Liu 0f0ff32bf6 Add option to force drop database before restore (#1639) 2023-11-27 18:52:07 +00:00
ImedandImed Aouidene a9245454a4 Remove reference to cluster.local (#1566)
Co-authored-by: Imed Aouidene <[email protected]>
2023-11-27 16:26:24 +00:00
Gene Tomilko bba8b8e2b5 Update service.yaml.j2 (#1641)
fix loadbalancerip
2023-11-27 10:33:00 -05:00
Hao Liu e6b11084db Omit storage resource limit if empty (#1637)
We discovered some weird behavior observed on later Kubernetes version (OCP 4.12+)

For some reason why we apply the templates postgres resource with

```
postgres_storage_requirements:
  limit: {}
  requests:
    storage: <x>Gi
```

the `Create Database if no database is specified` task that does the k8s apply will always think the resource is "changed" and proceed to cycle the task and web pod

This resulted in AWX pods being continuously restarted

Update postgres.yaml.j2
2023-11-14 13:41:30 -06:00
romankuzmikandRoman Kuzmik 669fe1d253 1586: awx-operator restore from PVC is not working (#1603)
Co-authored-by: Roman Kuzmik <[email protected]>
2023-11-09 09:39:27 -05:00
Christian AdamsandHao Liu 7251961bcc Add ability to mount custom volumes in the postgres pod (#1626)
* Add ability to mount custom volumes in the postgres pod
* Fix indentation for postgres_extra_volumes

Signed-off-by: Christian M. Adams <[email protected]>
Co-authored-by: Hao Liu <[email protected]>
2023-11-08 15:44:30 -05:00
Seth Foster 15ed13dd8d Fix supported_pg_version (#1614)
Signed-off-by: Seth Foster <[email protected]>
2023-10-25 12:47:24 -04:00
Chris 39bebe64ba Fix task deployment indention (#1596) (#1597) 2023-10-17 17:13:44 -04:00
Hao Liu 019fa3d356 Add background keepalive to awx-manage migrate (#1589) 2023-10-13 09:33:27 -04:00
Hao Liu 92639c1e89 Adding keepalive while doing pg_dump (#1580)
CI / molecule (--skip-tags=replicas) (push) Failing after 2m19s
CI / molecule (-t replicas) (push) Failing after 2m4s
CI / helm (push) Failing after 3m57s
CI / no-log (push) Successful in 15s
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
rakesh561andChristian M. Adams 8518e0d1c7 Allow ability to set security context for postgres deployment (#1517)
- Added docs for securityContext 
- enabled web securityContext configuration

Co-authored-by: Christian M. Adams <[email protected]>
2023-09-27 18:05:46 -04:00
jessicamack 31e1914db6 Pre-create event table partitions before db backup in operator (#1443)
CI / molecule (--skip-tags=replicas) (push) Failing after 2m11s
CI / molecule (-t replicas) (push) Failing after 2m22s
CI / helm (push) Failing after 2m58s
CI / no-log (push) Successful in 16s
Signed-off-by: jessicamack <[email protected]>
<[email protected]>
2023-09-26 10:20:12 -04:00
Christian Adams 8d91a67078 Ensure that web and task deployments scale down for upgrades (#1522)
CI / molecule (--skip-tags=replicas) (push) Failing after 2m45s
CI / molecule (-t replicas) (push) Failing after 2m28s
CI / helm (push) Failing after 2m55s
CI / no-log (push) Successful in 15s
2023-09-06 18:44:49 +00:00
Christian Adams 4c5429190c Timeout stream keep alive for Upgrades and Restores (#1542)
Signed-off-by: Christian M. Adams <[email protected]>
2023-08-29 15:36:48 -04:00
Christian Adams 22a05e8887 Deployment name should be referenced, not the restore object name (#1543) 2023-08-29 14:40:53 -04:00
Christian Adams 7012a6acfc Modify how pg password is set in postgres pod (#1540)
CI / molecule (--skip-tags=replicas) (push) Failing after 2m50s
CI / molecule (-t replicas) (push) Failing after 2m18s
CI / helm (push) Failing after 3m39s
CI / no-log (push) Successful in 16s
Signed-off-by: Christian M. Adams <[email protected]>
2023-08-29 15:28:54 +00:00
Christian Adams 1dc64b551c Add keepalive to migrate data script (#1538)
Signed-off-by: Christian M. Adams <[email protected]>
2023-08-29 11:05:11 -04:00
Hao Liu c949d6e58d Wait for termination grace period when scaling down the deployments (#1537) 2023-08-28 18:37:45 -04:00
Hao Liu 0e0f413e82 Revert "Switch to using the sclorg redis image for consistency (#1531)" (#1536) 2023-08-28 20:50:00 +00:00
David Luong a57b9e0475 Changed replica from string to int for default (#1534) 2023-08-25 18:33:47 -04:00
Christian Adams 48dcb08c78 Switch to using the sclorg redis image for consistency (#1531) 2023-08-24 21:38:55 -04:00
Christian Adams fcc25b1835 Set a default container for web & task deployments (#1500) 2023-07-26 18:48:44 -04:00
Rick Elrod c9ab99385a Allow {web_,task_,}replicas to be 0 and split out molecule tests (#1468)
Signed-off-by: Rick Elrod <[email protected]>
2023-07-18 17:07:55 -04:00
Elijah DeLee ef7703563b add uwsgi config as configmap with vars (#1487) 2023-07-17 18:26:39 -04:00
Seth Foster 822b3a439f Add receptor_log_level (#1444) 2023-07-10 11:49:58 -04:00
rakesh561 43c1f396c3 Updated image pull policy for backup and restore policy as variable (#1473) 2023-07-05 14:39:43 -04:00
Chi Cuong HA cbdbeb790b Fix redirect port when route_tls_termination_mechanism: passthrough (#1475)
Fixes #1474
2023-06-30 16:06:55 -05:00
Uros Bajzelj 3afe1df555 Enable configuration of rsyslog environmental variables, volume mounts, and entrypoints (#1467) 2023-06-29 22:38:24 -04:00
rakesh561 a8d2831b1c Update code with capability to set the init container resources instead of using web or task container resources (#1439) 2023-06-23 18:09:09 +00:00
Stanislav Zaprudskiy 213c1bebc4 Do not cause web deployment restart on pre-stop scripts changes (#1458) 2023-06-23 11:25:58 -04:00
fcc09673cc Add db_management_pod_node_selector for specifying nodeSelect for backup/restore mgmt pod (#1434)
Co-authored-by: Hao Liu <[email protected]>
Co-authored-by: Jesse Wattenbarger <[email protected]>
2023-06-21 10:46:29 -04:00
rakesh561andStanislav Zaprudskiy b1655479d2 Updated task.yaml.j2 rsyslog container to have preStop hook (#1422)
Co-authored-by: Stanislav Zaprudskiy <[email protected]>
2023-06-09 16:33:31 -04:00
Hao Liu a5e29aefec Relocate receptor cert and key file location (#1442) 2023-06-09 14:19:04 -04:00
dale-mittleman 4d20079cfe Fix rsyslog container resources in task deployment template (#1426) 2023-05-19 13:05:37 -04:00
Seth Foster aa78813d73 Rsyslog resources wrong location 2023-05-17 15:02:20 -04:00
laiminhtrung1997 f99a83c137 Remove redundant slashes. 2023-05-17 22:54:52 +07:00
rakesh561 721d6814ca Added capability to set the rsyslog container resources (#1410)
* Update awx.ansible.com_awxs.yaml with rsyslog resource containers
* Update awx-operator.clusterserviceversion.yaml with x-descriptors
* Add default values in main.yml
* Template resource_requirements in web.yaml.j2 and task.yaml.j2
2023-05-16 21:28:36 -04:00
Hao Liu 94dc52d224 Merge pull request #1393 from ansible/feature_keepalive
Add ability to configure Postgres keepalive settings
2023-05-15 12:26:07 -04:00
3b54fa8675 Host aliases (#1373)
* feat: add HostAliases to web/task containers (fixes #646)
* feat: add HostAliases to web/task containers
* Make host_aliases display in the Operator UI
* Add default value for host_aliases and add to web deployment template

Co-authored-by: zhangpeng.zong <[email protected]>
Co-authored-by: Dimitri Savineau <[email protected]>
2023-05-10 14:45:48 -04:00
4a869998d1 Add ability to configure postgres keepalives settings
Co-Authored-By: Gabriel Muniz <[email protected]>
Co-Authored-By: Rick Elrod <[email protected]>
2023-05-09 14:56:20 -04:00
Seth Foster 1dc56803e8 Set receptor log level to info (#1399) 2023-05-05 18:20:20 +00:00
Christian Adams 1023718b87 Allow configuration of resource requirements for init containers (#1392)
- In some use cases, limits must be set for every container in a
    cluster. To address this, we will use the task and web resource
requirements for the initContainers where applicable.
2023-05-03 17:41:01 -04:00
Seth Foster 4a5141933c Merge pull request #1388 from cilq/patch-1
Fix variable name for loadbalancerip in template.
2023-05-03 14:07:44 -04:00
Dimitri Savineau d69b57c014 web: Use sha1 filter instead of md5 (#1386)
This was fixed in 6cae8df but the task/web split rebase didn't apply this
to the web deployment.
This prevents to deploy the operator when FIPS is enabled.

{"msg": "An unhandled exception occurred while running the lookup plugin
'template'. Error was a <class 'ValueError'>, original message:
[digital envelope routines: EVP_DigestInit_ex] disabled for FIPS"}

Signed-off-by: Dimitri Savineau <[email protected]>
2023-05-02 10:19:21 -04:00
André Liebigt 562a171de6 Fix variable name for loadbalancerip in template.
The template now checks the existence of the correct variable so that it actually works.
2023-05-02 13:53:06 +02:00
Jason Goldfine-Middleton 2118c6f49c Fix typo in rsyslog var
Rename all references: ryslog_args -> rsyslog_args
2023-04-28 10:49:49 -05:00
Lukas Magauerandlumarel d914edf3e0 The ingress resulted in a double slash, if there is are slashes at the end of the ingress_path variable (#1374)
Co-authored-by: lumarel <[email protected]>
2023-04-19 23:35:36 -04:00
Lila e54215863c Add ability to override annotations independently
- add web_annotations to override annotations for web pods
- add task_annotations to override annotations for task pods
2023-04-17 16:07:12 -04:00
Seth Foster cde24806cf fix development mode 2023-04-12 19:31:15 -04:00