Skip to content

Commit

Permalink
Remove reference to cluster.local (#1566)
Browse files Browse the repository at this point in the history
Co-authored-by: Imed Aouidene <imaouide@imaouide-thinkpadt14sgen2i.cdg.csb>
  • Loading branch information
imedaouidene and Imed Aouidene authored Nov 27, 2023
1 parent bba8b8e commit a924545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/migration/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ stringData:
type: Opaque
```

> For `host`, a URL resolvable by the cluster could look something like `postgresql.<namespace>.svc.cluster.local`, where `<namespace>` is filled in with the namespace of the AWX deployment you are migrating data from.
> For `host`, a URL resolvable by the cluster could look something like `postgresql.<namespace>.svc.<cluster domain>`, where `<namespace>` is filled in with the namespace of the AWX deployment you are migrating data from, and `<cluster domain>` is filled in with the internal kubernretes cluster domain (In most cases it's `cluster.local`).

If your AWX deployment is already using an external database server or its database is otherwise not managed
by the AWX deployment, you can instead create the same secret as above but omit the `-old-` from the `name`.
Expand Down
2 changes: 1 addition & 1 deletion roles/backup/tasks/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
- name: Set full resolvable host name for postgres pod
set_fact:
resolvable_db_host: '{{ (awx_postgres_type == "managed") | ternary(awx_postgres_host + "." + ansible_operator_meta.namespace + ".svc.cluster.local", awx_postgres_host) }}' # yamllint disable-line rule:line-length
resolvable_db_host: '{{ (awx_postgres_type == "managed") | ternary(awx_postgres_host + "." + ansible_operator_meta.namespace + ".svc", awx_postgres_host) }}' # yamllint disable-line rule:line-length
no_log: "{{ no_log }}"

- name: Get the current resource task pod information.
Expand Down

0 comments on commit a924545

Please sign in to comment.