airshipctl/pkg/container
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
..
testdata Reduce the number of unnecessary document.NewBundleByPath() calls 2021-03-27 12:58:36 -05:00
api_test.go Allow relative and ~ path for container mount 2021-03-25 16:41:30 -05:00
api.go Allow relative and ~ path for container mount 2021-03-25 16:41:30 -05:00
constants.go Extending Container interface and package 2020-11-08 13:55:35 +00:00
container_docker_test.go Extend container interface with mounts get log opts 2021-02-08 00:11:29 +00:00
container_docker.go Extend container interface with mounts get log opts 2021-02-08 00:11:29 +00:00
container_test.go Remove not needed context pointers in container interface 2020-10-27 17:28:25 -05:00
container.go Extend container interface with mounts get log opts 2021-02-08 00:11:29 +00:00
errors.go Added error handler for empty runtime entry 2020-04-24 15:34:27 -07:00