def pullHelmChart()

in 02_bootstrap-scripts-python/bootstrap/helm.py [0:0]


    def pullHelmChart(self, chartVersion: str) -> Tuple[str, tempfile.TemporaryDirectory]:
        repo = environ.get("BOOTSTRAP_DEFAULT_REPO",
                           default=_DEFAULT_REPO)
        image = environ.get("BOOTSTRAP_HELM_DEFAULT_IMAGE",
                            default=_HELM_DEFAULT_IMAGE)
        image_part = "/".join([repo, image])
        image_uri = ":".join([image_part, chartVersion])
        t = tempfile.TemporaryDirectory()
        self.get_helm_image(image_uri, t.name)
        return path.join(t.name, "helm-eks-bootstrap"), t