Skip to content

Commit

Permalink
Add flag to enable controller cached client (#675)
Browse files Browse the repository at this point in the history
* Add switch to enable controller cached client

* Change default behavior to not use cache

* Update controller.yml.j2

* Move mig_controller_enable_cache to be set in configmap
  • Loading branch information
Derek Whatley committed May 26, 2021
1 parent eba9ebe commit 48aa892
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/migrationcontroller/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ mig_controller_requests_cpu: "100m"
mig_controller_requests_memory: "350Mi"
mig_controller_version: "{{ snapshot_tag | default(lookup( 'env', 'MIG_CONTROLLER_TAG')) }}"
mig_controller_image_fqin: "{{ mig_controller_image }}:{{ mig_controller_version }}"
mig_controller_enable_cache: false
discovery_collect_events: true
discovery_volume_path: "/var/cache/discovery"
mig_operator_version: "latest"
Expand Down
2 changes: 2 additions & 0 deletions roles/migrationcontroller/templates/controller_config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ data:
{% if pv_resizing_threshold is defined %}
PV_RESIZING_USAGE_THRESHOLD: "{{ pv_resizing_threshold }}"
{% endif %}
ENABLE_CACHED_CLIENT: "{{ mig_controller_enable_cache }}"
DISCOVERY_COLLECT_EVENTS: "{{ discovery_collect_events }}"

0 comments on commit 48aa892

Please sign in to comment.