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,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