airshipctl/pkg/phase/testdata/reponame
Ruslan Aliev e9041a2a22 Reduce the number of unnecessary document.NewBundleByPath() calls
Since document.NewBundleByPath() is pretty resource and time
consuming call (because it invokes kustomize under the hood),
we should avoid unnecessary calls of this function. There are
lots of the same constructor calls of new bundle from phase
bundle root path, mostly in helper, which slows airshipctl
and makes no sense. This patch fixes this problem by storing
phase root bundle variable in helper, which creates only once
during airshipctl execution.

Change-Id: I6b59d440f7ab7a68dc613091dafcc9e82df10eb7
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
Closes: #488
2021-03-27 12:58:36 -05:00
..
valid_site Reduce the number of unnecessary document.NewBundleByPath() calls 2021-03-27 12:58:36 -05:00
valid_site_with_doc_prefix Reduce the number of unnecessary document.NewBundleByPath() calls 2021-03-27 12:58:36 -05:00