Commit Graph
37 Commits
Author SHA1 Message Date
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
Christian M. Adams 960d1f8a32 Fix volume mount syntax error
* conditionally run database-check init container only for managed db
    deployments
Signed-off-by: Christian M. Adams <[email protected]>
2022-02-01 10:50:48 -05:00
Christian M. Adams fdbe607189 Scale down app pod when database is unavailable 2022-01-04 17:07:39 -05:00
Christian M. Adams 3150d55af6 Do not try to wait for Postgres on external db deployments
Signed-off-by: Christian M. Adams <[email protected]>
2021-12-09 19:31:37 -05:00
Christian M. Adams fbd5803f10 Wait for Postgres to initialize before starting containers 2021-12-07 17:42:55 -05:00
Yanis Guenane fc713e7b73 Properly apply default when env lookup returns empty 2021-11-02 09:57:04 +01:00
Christian M. Adams 7eb6d0e0f5 Set default images, but use them as a last resort
* Only use them if user did not set an image, or RELATED_IMAGES_ var
    is not set

Signed-off-by: Christian M. Adams <[email protected]>
(cherry picked from commit bb957be9e6db76e0d681cf0d08b5519225bca53c)
2021-11-01 14:58:24 +01:00
Christian M. Adams 29879f7064 Rename related image vars to be distinct across operators 2021-10-27 11:26:51 -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 <[email protected]>
2021-10-26 00:26:16 -04:00
Shane McDonald e97def4429 meta -> ansible_operator_meta 2021-09-29 18:39:24 -04:00
Christian M. Adams 8952d8fd64 Revert "pgsql uses initContainer to address FS permissions"
This reverts commit 99d77dff99.
2021-08-12 15:51:15 -04:00
Marcelo Moreira de Mello 99d77dff99 pgsql uses initContainer to address FS permissions 2021-07-31 00:50:30 -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
Shane McDonald 7310b43a5c Use kubernetes.core 2021-06-22 14:52:54 -04:00
Yanis Guenane 223fe988aa Do not shadow other variables 2021-05-25 15:38:35 +02:00
Yanis Guenane 75458d0678 Do not prepend variables name with tower_ 2021-05-25 09:52:13 +02: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 5439681a39 Fix rebase issue due to order or pg config tasks 2021-04-30 10:49:32 -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 90f4d71606 Make pg port configurable for managed deployments 2021-04-30 10:32:07 -04:00
Christian M. Adams 6bc149bae2 template awxbackup crd into awx-operator.yml for easy deployment 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
Marcelo Moreira de Mello 7361defa17 Merge pull request #198 from tchellomello/ssl_pg
Added support to override PosgreSQL sslmode
2021-04-28 15:51:01 -04:00
Marcelo Moreira de Mello 3d5a9eae31 Handle statefulset updates 2021-04-27 17:16:57 -04:00
Marcelo Moreira de Mello 298d39c57b Added support to override pg_sslmode 2021-04-12 12:48:00 -04:00
Julen Landa Alustiza 60199f79aa Check the default old PostgreSQL configuration
Signed-off-by: Julen Landa Alustiza <[email protected]>
2021-03-23 12:59:29 +01:00
Shane McDonald 7d6743c44d Fix linter 2021-03-18 13:58:26 -04:00
Shane McDonald 92a7bf22a1 Tweak migration logic 2021-03-18 12:31:02 -04:00
Shane McDonald 79534a1465 Dont require database names to match when doing migration 2021-03-18 11:22:04 -04:00
Shane McDonald 94a4861d13 Bulk removal of no_log statements
The operator would be impossible to debug with these
2021-03-18 11:22:04 -04:00
Shane McDonald da26472a03 Fix reconcilation loop after data migration changes 2021-03-18 11:22:00 -04:00
Christian M. Adams c22577bc80 Make data migration idempotent 2021-03-17 16:03:46 -04:00
Christian M. Adams e83e54419a Add no_log where needed, scale down pods before migration 2021-03-16 13:32:16 -04:00
Christian M. Adams 5b89c5c433 Clean db on Tower data is restored to 2021-03-16 13:32:15 -04:00
Christian M. Adams 0e1b12f4b1 Data migration from 3.8 to 4.0 via pg_dump streamed to psql 2021-03-16 13:32:15 -04:00
Christian M. Adams 6a5bdaf2f7 init backup & restore 2021-03-16 13:32:15 -04:00
Yanis Guenane e5f1041350 PostgreSQL: Allow one to provide her own db configuration secret
If a user provide its own secret by using the
`tower_postgres_configuration_secret` use this variable, else try to use
`<instance>-postgres-configuration` secret. Else create one and use a
local database.
2021-02-08 15:13:56 +01:00