mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-27 13:53:12 +00:00
* Replace api version for deployment kind to apps/v1 * Add new multiple ingress spec and deprecate hostname and ingress_tls_secret * Manage new ingress_hosts.tls_secret backup separately * Fix ci molecule lint warnings and error * Fix documentation * Fix ingress_hosts tls_secret key being optional * Remove fieldDependency:ingress_type:Ingress for Ingress Hosts * Fix scenario when neither hostname or ingress_hosts is defined --------- Co-authored-by: Guillaume Lefevre <guillaume.lefevre@agoda.com> Co-authored-by: Seth Foster <fosterseth@users.noreply.github.com> Co-authored-by: Christian Adams <chadams@redhat.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
---
|
|
- name: Check for presence of old awx Deployment
|
|
k8s_info:
|
|
api_version: apps/v1
|
|
kind: Deployment
|
|
name: "{{ ansible_operator_meta.name }}"
|
|
namespace: "{{ ansible_operator_meta.namespace }}"
|
|
register: awx_deployment
|
|
|
|
- name: Check for presence of awx-task Deployment
|
|
k8s_info:
|
|
api_version: apps/v1
|
|
kind: Deployment
|
|
name: "{{ ansible_operator_meta.name }}-task"
|
|
namespace: "{{ ansible_operator_meta.namespace }}"
|
|
register: awx_task_deployment
|
|
|
|
- name: Check for presence of awx-web Deployment
|
|
k8s_info:
|
|
api_version: apps/v1
|
|
kind: Deployment
|
|
name: "{{ ansible_operator_meta.name }}-web"
|
|
namespace: "{{ ansible_operator_meta.namespace }}"
|
|
register: awx_web_deployment
|
|
|
|
- name: Start installation if auto_upgrade is true
|
|
include_tasks: install.yml
|
|
when:
|
|
- auto_upgrade | bool
|
|
|
|
- name: Start installation if auto_upgrade is false and deployment is missing
|
|
include_tasks: install.yml
|
|
when:
|
|
- not (auto_upgrade | bool)
|
|
- not (awx_deployment['resources'] | length > 0)
|
|
- not (awx_web_deployment['resources'] | length > 0 and awx_task_deployment['resources'] | length > 0)
|