Commit 4335a3f6 authored by Adrien Kohlbecker's avatar Adrien Kohlbecker

Strong memoize call

parent d9c23919
......@@ -5,6 +5,7 @@ module EE
module Platforms
module Kubernetes
extend ActiveSupport::Concern
include ::Gitlab::Utils::StrongMemoize
CACHE_KEY_GET_POD_LOG = 'get_pod_log'
......@@ -112,7 +113,9 @@ module EE
end
def elastic_stack_client
cluster.application_elastic_stack&.elasticsearch_client
strong_memoize(:elastic_stack_client) do
cluster.application_elastic_stack&.elasticsearch_client
end
end
def handle_exceptions(resource_not_found_error_message, opts, &block)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment