Skip to content
Open
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
6 changes: 3 additions & 3 deletions roles/schema_exporter/tasks/process_exporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set_fact:
schema_exporter_config:
name: "{{ exporter.name }}"
context_type: "{{ exporter.context_type | default('AUTO') }}"
context_type: "{{ exporter.context_type | default('')}}"
context: "{{ exporter.context | default('') }}"
subjects: "{{ exporter.subjects | default([]) }}"
kek_rename_format: "{{ exporter.kek_rename_format | default('') }}"
Expand Down Expand Up @@ -38,8 +38,8 @@

# Add optional fields if they exist
optional_fields:
contextType: "{{ schema_exporter_config.context_type if schema_exporter_config.context_type != 'AUTO' else omit }}"
context: "{{ schema_exporter_config.context if schema_exporter_config.context_type not in ['NONE', 'AUTO'] and schema_exporter_config.context != '' else omit }}"
contextType: "{{ schema_exporter_config.context_type if schema_exporter_config.context_type != '' else omit }}"
context: "{{ schema_exporter_config.context if schema_exporter_config.context != '' else omit }}"
kekRenameFormat: "{{ schema_exporter_config.kek_rename_format if schema_exporter_config.kek_rename_format != '' else omit }}"
subjectRenameFormat: "{{ schema_exporter_config.subject_rename_format if schema_exporter_config.subject_rename_format != '' else omit }}"

Expand Down
2 changes: 2 additions & 0 deletions roles/schema_importer/tasks/process_importer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
schema_importer_config:
name: "{{ importer.name }}"
context: "{{ importer.context | default('') }}"
context_type: "{{ importer.context_type | default('') }}"
subjects: "{{ importer.subjects | default([]) }}"
config: "{{ schema_importer_final_config }}"
vars:
Expand Down Expand Up @@ -36,6 +37,7 @@
# Add optional fields if they exist
optional_fields:
context: "{{ schema_importer_config.context if schema_importer_config.context != '' else omit }}"
contextType: "{{ schema_importer_config.context_type if schema_importer_config.context_type != '' else omit }}"

- name: Check if Schema Importer exists
include_tasks: ../common/tasks/schema_registry_operations.yml
Expand Down