Commit 6b043e7d authored by Thong Kuah's avatar Thong Kuah

Merge branch 'ak/memoize-call' into 'master'

Strong memoize call

Closes #36314

See merge request gitlab-org/gitlab!20295
parents 6318b5d9 4335a3f6
......@@ -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,8 +113,10 @@ module EE
end
def elastic_stack_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)
yield
......
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