Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions roles/eda/tasks/deploy_eda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,30 @@
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Remove legacy Redis deployment
k8s:
api_version: apps/v1
kind: Deployment
name: "{{ ansible_operator_meta.name }}-redis"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Remove legacy Redis service
k8s:
api_version: v1
kind: Service
name: "{{ ansible_operator_meta.name }}-redis-svc"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Remove legacy Redis secret
k8s:
api_version: v1
kind: Secret
name: "{{ ansible_operator_meta.name }}-redis-configuration"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Check for API Pod
k8s_info:
kind: Pod
Expand Down
24 changes: 24 additions & 0 deletions roles/eda/tasks/idle_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@
replicas: 0
when: not ui_disabled

- name: Remove legacy Redis deployment
kubernetes.core.k8s:
api_version: apps/v1
kind: Deployment
name: "{{ ansible_operator_meta.name }}-redis"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Remove legacy Redis service
kubernetes.core.k8s:
api_version: v1
kind: Service
name: "{{ ansible_operator_meta.name }}-redis-svc"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Remove legacy Redis secret
kubernetes.core.k8s:
api_version: v1
kind: Secret
name: "{{ ansible_operator_meta.name }}-redis-configuration"
namespace: "{{ ansible_operator_meta.namespace }}"
state: absent

- name: Combine postgres default and custom vars for each component
ansible.builtin.import_role:
name: postgres
Expand Down
15 changes: 15 additions & 0 deletions roles/eda/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
- name: Combine default and custom vars for each component
include_tasks: combine_defaults.yml

- name: Fail if user still references redis configuration
ansible.builtin.fail:
msg: >-
Redis is no longer supported by the EDA operator. EDA now uses
dispatcherd (backed by PostgreSQL) for task queuing.
Please remove the 'redis' section (including 'redis.redis_secret')
from your EDA custom resource spec. No data migration from Redis
is required as task state is persisted in PostgreSQL.
when:
- redis is defined
- redis is mapping
- redis | length > 0
- redis.redis_secret is defined
- redis.redis_secret | length > 0

- name: Configure cluster
include_role:
name: common
Expand Down