Remove the creation of managed postgres

Hi,

I have configured the source code to use the externally managed postgres database.

I then tried removing the part of source code which creates the init container for the postgres instance be removing it’s here.

But somehow the manager doesn’t seem to be picking up that change. Is there something else that needs to be removed from the source code?

Any help here?

Hi, What is it you are trying to achieve here? There may be an alternative method without changing the source code of the operator

see for setting up external DB https://github.com/ansible/awx-operator#external-postgresql-service

AWX Team

I have business requirement to apply the namespace quota.

Although the postgres init container is applied a quota at https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/defaults/main.yml, however the quota doesn’t get applied to the container as per https://github.com/ansible/awx-operator/blob/0.23.0/roles/installer/templates/deployment.yaml.j2.

Therefore, my AWX pod crashes within the namespace due to the below error -

Error creating: pods “awx-755dcdd7f6-wcvvh” is forbidden: failed quota: ansible-awx-quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory

How do I resolve this issue?

Can someone please guide me here?