[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] develop from nebari-dev:develop #55

Open
wants to merge 223 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
0f79dfb
modified the projects and zones function
swastik959 Oct 22, 2023
3051574
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Oct 22, 2023
5d593b1
modified whole code
swastik959 Nov 3, 2023
53ca190
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Nov 3, 2023
2a38189
Upgrade kube-prometheus-stack helm chart and pass grafana oauth clien…
marcelovilla May 10, 2024
0fe08e1
Merge branch 'develop' into upgrade-grafana
marcelovilla May 17, 2024
89b2dec
Merge branch 'develop' into upgrade-grafana
viniciusdc May 23, 2024
e94fc3c
Merge branch 'develop' into upgrade-grafana
marcelovilla May 23, 2024
0475639
Merge branch 'develop' into upgrade-grafana
marcelovilla May 23, 2024
8f7522e
Merge branch 'develop' into upgrade-grafana
marcelovilla May 27, 2024
392deb7
Merge branch 'develop' into upgrade-grafana
marcelovilla May 28, 2024
4edc7aa
Skip running cleanup on pull requests
aktech May 28, 2024
a502d15
Upgrade cypress.
marcelovilla May 29, 2024
214bcd2
Update files to match new cypress spec.
marcelovilla May 29, 2024
1364974
Enable video recording.
marcelovilla May 29, 2024
5801742
Update header selector based on UI changes in Grafana.
marcelovilla May 29, 2024
3e0f9c4
update triggers for local integration tests
aktech May 31, 2024
ccd5df9
Merge branch 'develop' into skip-cleanup-on-pr
aktech May 31, 2024
294f62a
Merge branch 'develop' into skip-cleanup-on-pr
aktech May 31, 2024
1cabcc8
Merge branch 'develop' into skip-cleanup-on-pr
aktech Jun 2, 2024
6cf3bf3
Update values URL.
marcelovilla Jun 3, 2024
d6482ca
Add relevant commands to upgrade kube-prometheus-stack if the monitor…
marcelovilla Jun 3, 2024
97b0e06
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 3, 2024
bb8c878
Use choices argument instead.
marcelovilla Jun 4, 2024
7ece060
Upgrade kube-prometheus-stack helm chart (#2472)
marcelovilla Jun 5, 2024
53be06b
[pre-commit.ci] pre-commit autoupdate (#2500)
marcelovilla Jun 6, 2024
e997de8
upgrade note (#2502)
Adam-D-Lewis Jun 6, 2024
749a1f1
Remove VSCode from jhub_apps default services (#2503)
jbouder Jun 10, 2024
55c9e8c
#1792 Add suggested docstring on the top of `upgrade.py`
arjxn-py Jun 14, 2024
e6af7b5
#1792 Add docstring to `do_upgrade`
arjxn-py Jun 14, 2024
3a10d1b
#1792 Add docstring to `UpgradeStep` class
arjxn-py Jun 15, 2024
52b1271
#1792 Add docstring to the rest of the `UpgradeStep` classes
arjxn-py Jun 15, 2024
88dad92
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Jun 15, 2024
cf0f754
Explicit config (#2294)
Adam-D-Lewis Jun 17, 2024
71c2079
fix general node scaling bug for azure (#2517)
Adam-D-Lewis Jun 18, 2024
8e189a8
Skip running cleanup on pull requests (#2488)
dcmcand Jun 18, 2024
a7b039e
set's min TLS version for azure storage account to TLS 1.2
dcmcand Jun 18, 2024
52ea69e
- Specify as `Args` instead of `Parameters`
arjxn-py Jun 19, 2024
5158fe0
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Jun 19, 2024
7ba047f
Merge branch 'develop' into 1792-add-docstrings-to-upgrage.py
arjxn-py Jun 19, 2024
8f83443
#1792 Add docstring to some additional methods
arjxn-py Jun 19, 2024
ff85925
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Jun 19, 2024
941d7eb
#1792 Use `@override` from `typing-extensions`
arjxn-py Jun 19, 2024
aaf28ed
#1792 Pin `typing-extensions==4.11.0` as 4.12 not available on conda
arjxn-py Jun 19, 2024
7396df8
1792 Add docstrings to `upgrade.py` (#2512)
dcmcand Jun 19, 2024
e64a9f9
Merge branch 'develop' into tls-1-2-min-azure-storage
dcmcand Jun 19, 2024
3e94a6a
restrict public access and add buckett encryption using cmk
dcmcand Jun 19, 2024
4f4dc41
add cmk and block public access
dcmcand Jun 19, 2024
9baab7e
set's min TLS version for azure storage account to TLS 1.2 (#2522)
dcmcand Jun 20, 2024
18330c0
Merge branch 'develop' into add-encryption-to-s3
dcmcand Jun 20, 2024
cbf57cd
add overwrite to AWS coredns addon
dcmcand Jun 24, 2024
3a36f9b
Replace data source ids.
marcelovilla Jun 24, 2024
2f758dd
Fix conda-store and Traefik Grafana Dashboards (#2540)
marcelovilla Jun 25, 2024
2dfc367
initial commit
dcmcand Jun 25, 2024
6e4076e
Add option to run CRDs updates and DaemonSet deletion on user's behalf.
marcelovilla Jun 26, 2024
d4692d9
Merge branch 'develop' into upgrade-on-users-behalf
marcelovilla Jun 26, 2024
f19dfb2
Move kube config loading inside upgrade function.
marcelovilla Jun 26, 2024
c385172
Implement support for jupyterlab-gallery config (#2501)
krassowski Jun 26, 2024
b1aefa2
Handle config exception.
marcelovilla Jun 26, 2024
fd67b94
Merge branch 'develop' into upgrade-on-users-behalf
marcelovilla Jun 26, 2024
37615fa
Add link to docs on how to generate the kube config.
marcelovilla Jun 26, 2024
0d8350f
Mock different prompts.
marcelovilla Jun 26, 2024
88a1549
Merge branch 'upgrade-on-users-behalf' of https://github.com/nebari-d…
marcelovilla Jun 26, 2024
bdcd532
Add option to run CRDs updates and DaemonSet deletion on user's behal…
marcelovilla Jun 26, 2024
6733b57
Update release notes and constants.
marcelovilla Jun 26, 2024
fdce240
Prepare 2024.6.1 release (#2545)
marcelovilla Jun 26, 2024
3f5dde9
add hello world
dcmcand Jun 27, 2024
85849a3
Enable authentication by default in jupyter-server (#2288)
krassowski Jun 27, 2024
3beafc0
remove dns sleep (#2550)
Adam-D-Lewis Jul 1, 2024
ebcd683
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 2, 2024
c42a104
Conda-store permissions v2 + load roles from keycloak (#2531)
aktech Jul 2, 2024
d9e8f20
restrict public access and add bucket encryption using cmk (#2525)
dcmcand Jul 4, 2024
2a1b877
add overwrite to AWS coredns addon (#2538)
dcmcand Jul 4, 2024
bb019fd
Fix: https://github.com/nebari-dev/nebari/issues/2128
oftheaxe Jul 11, 2024
4f8fc54
Add a default roles at initialisation (#2546)
aktech Jul 12, 2024
8a2bfbb
Upgrade conda store to latest version
marcelovilla Jul 23, 2024
cdd7cf9
Hide gallery section if no exhibits are configured (#2549)
krassowski Jul 23, 2024
77ddd01
add note about ~/.bash_profile (#2575)
Adam-D-Lewis Jul 23, 2024
0212413
#2566 Upgrade Jupyterhub ssh image
arjxn-py Jul 23, 2024
2cd244f
Upgrade conda store to latest version (#2574)
marcelovilla Jul 23, 2024
5f65e78
Expose jupyterlab-gallery branch and depth options (#2556)
krassowski Jul 24, 2024
d64cbdb
Use is comparison to be ruff compliant
marcelovilla Jul 24, 2024
1781d66
[pre-commit.ci] pre-commit autoupdate (#2551)
marcelovilla Jul 24, 2024
175a732
#2566 Upgrade Jupyterhub ssh image (#2576)
marcelovilla Jul 24, 2024
2000996
stop copying unneccesary files into user home directory (#2578)
Adam-D-Lewis Jul 24, 2024
2105e6e
Merge branch 'develop' into swastik
marcelovilla Jul 25, 2024
7d319b5
Fix google dependency versions
marcelovilla Jul 26, 2024
aa63066
Include deprecation notes for init/deploy subcommands (#2582)
viniciusdc Jul 29, 2024
f2f5a5b
Update upgrade command for 2024.7.1 (#2594)
viniciusdc Jul 29, 2024
e604f17
Revert conda-store version to 2024.3.1
marcelovilla Jul 31, 2024
9ae96dd
Revert conda-store version to 2024.3.1 (#2601)
marcelovilla Jul 31, 2024
53eb391
Merge branch 'add-k8s-manifests-directly' into add-uptime-monitoring
dcmcand Aug 1, 2024
9a11656
only download jar if file doesn't exist (#2588)
Adam-D-Lewis Aug 1, 2024
bb54646
remove unnecessary experimental flag (#2606)
Adam-D-Lewis Aug 1, 2024
dce1381
add typos spell checker to pre-commit (#2568)
Adam-D-Lewis Aug 2, 2024
da50206
Enh 2451 skip conditionals (#2569)
BrianCashProf Aug 2, 2024
1088d94
Remove unused functions and fix calls to the Google Python APIs
marcelovilla Aug 2, 2024
a0694d1
Merge branch 'develop' into swastik
marcelovilla Aug 2, 2024
97677ec
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Aug 2, 2024
d65b223
intial implementation of kuberhealthy
dcmcand Aug 5, 2024
f65b202
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 5, 2024
6f3d813
Add grpc-google-iam-v1
marcelovilla Aug 5, 2024
d6498f9
Merge branch 'swastik' of https://github.com/swastik959/nebari into s…
marcelovilla Aug 5, 2024
4daa377
Load credentials explictly from file and get project ID from environe…
marcelovilla Aug 5, 2024
279c098
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Aug 5, 2024
ab7f216
Check if credentials are a file or not before reading them
marcelovilla Aug 5, 2024
4ac3911
Remove gcloud step
marcelovilla Aug 5, 2024
d6675be
Improve codespell support: adjust and concentrate config to pyproject…
yarikoptic Aug 6, 2024
a65ff53
Move codespell config to pyproject.toml only (#2611)
Adam-D-Lewis Aug 6, 2024
8a47dcd
Add google-auth as an explicit dependency
marcelovilla Aug 6, 2024
7be8fff
Use string ending instead of Path.isfile to check whether env var is …
marcelovilla Aug 6, 2024
bdddbe2
Fix dependency version specifier
marcelovilla Aug 6, 2024
6338899
Fix cleanup functions.
marcelovilla Aug 7, 2024
7c61dd6
Add `depends_on` for bucket encryption (#2615)
viniciusdc Aug 8, 2024
847a260
Prepare for 2024.7.1 release (#2595)
viniciusdc Aug 8, 2024
1c2fec3
Add explicit google auth scopes
marcelovilla Aug 9, 2024
13195f4
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 9, 2024
d0620d3
Favor using model_dump method over dict
marcelovilla Aug 9, 2024
00841db
Fix: KeyValueDict error when deploying to existing infrastructure (#2…
marcelovilla Aug 9, 2024
843453d
[pre-commit.ci] pre-commit autoupdate (#2610)
marcelovilla Aug 9, 2024
8bd372c
add NebariKustomizeStage class
dcmcand Aug 13, 2024
7d3f403
Remove unused modules
marcelovilla Aug 13, 2024
427b704
Remove unused AWS terraform modules (#2623)
marcelovilla Aug 14, 2024
6bae9bb
Upgrade Hashicorp Vault action (#2616)
aktech Aug 15, 2024
57f6de6
Pass `oauth_no_confirm=True` to jhub-apps (#2631)
krassowski Aug 19, 2024
0ffe096
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 20, 2024
3695eb4
Use Rook Ceph for Jupyterhub and Conda Store drives (#2541)
Adam-D-Lewis Aug 21, 2024
d0bd06a
Fix typo
marcelovilla Aug 21, 2024
47780cb
Fix typo in guided init (#2635)
marcelovilla Aug 21, 2024
e1d5700
Fix hub dashboard var to return JHub Namespace
kenafoster Aug 22, 2024
208187c
update render method for kustomize stage class
dcmcand Aug 23, 2024
7974da7
ignore downloaded helm charts
dcmcand Aug 23, 2024
5b98741
add initial uptime test
dcmcand Aug 25, 2024
4b34588
add helm download
dcmcand Aug 26, 2024
36aed37
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 26, 2024
b4fefe6
update conda-store check
dcmcand Aug 26, 2024
fb3cb04
Action var tests off (#2632)
BrianCashProf Aug 26, 2024
354b768
update conda-store check
dcmcand Aug 27, 2024
d7a2daa
add jupyterhub and keycloak checks
dcmcand Aug 27, 2024
417893d
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 27, 2024
5dbc20f
update check names
dcmcand Aug 27, 2024
13fae57
add jupyterhub and keycloak checks
dcmcand Aug 27, 2024
3caf45b
add a "moved" block to account for refactored terraform code without …
Adam-D-Lewis Aug 27, 2024
c0b0c87
Add launch_template config options to aws cluster
viniciusdc Aug 28, 2024
245db3b
add ami_type options to pydantic schema to reduce HCL conditionals
viniciusdc Aug 28, 2024
472795a
Merge branch 'nebari-dev:develop' into dashboard-fix-usage-report
kenafoster Aug 28, 2024
38b7d0d
add dynamic launch_template to eks_node_group
viniciusdc Aug 28, 2024
c2b1d36
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 29, 2024
1dca20d
update helm install script to pass script checks
dcmcand Aug 29, 2024
230e8d0
Use Helm Chart for JupyterHub 5.1.0 (#2661)
krassowski Aug 29, 2024
2e26364
Add a how to test section to PR template (#2659)
marcelovilla Aug 29, 2024
b7fc5f2
Refactor function logic to use enum values and fix edge cases
marcelovilla Aug 30, 2024
449eae3
fix destroy and move config to monitoring
dcmcand Aug 30, 2024
f98e0fb
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 30, 2024
fa37324
Support disallowed nebari config changes (#2660)
Adam-D-Lewis Aug 30, 2024
496416d
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 30, 2024
bfdcd21
cleanup downloaded helm charts
dcmcand Aug 30, 2024
400f0d0
Fix converted init command in guided init (#2666)
marcelovilla Aug 30, 2024
5aea0c5
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 30, 2024
498e569
Add initial uptime metrics (#2609)
dcmcand Aug 30, 2024
2345767
add templating for kustomization.yaml
dcmcand Aug 30, 2024
71bc48a
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 30, 2024
3b649ee
Merge branch 'nebari-dev:develop' into dashboard-fix-usage-report
kenafoster Aug 30, 2024
ed170cb
Refactor and extend Playwright tests (#2644)
viniciusdc Aug 30, 2024
047eeaa
Merge branch 'develop' into add-uptime-monitoring
dcmcand Aug 30, 2024
27b70eb
Remove Cypress remaining tests/files (#2672)
viniciusdc Aug 30, 2024
714a8b8
fix AWS issue
Adam-D-Lewis Aug 30, 2024
1dfe968
refactor jupyterhub user token retrieval within pytest (#2645)
viniciusdc Aug 30, 2024
1578953
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Aug 30, 2024
f6011ba
Merge branch 'develop' into aws_moved_block_fix
Adam-D-Lewis Aug 30, 2024
f2c3076
add moved block to account for terraform changes on AWS only (#2673)
dcmcand Sep 2, 2024
6a16cb8
Refactor shared group mounting using RBAC (#2593)
viniciusdc Sep 2, 2024
49f69ab
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 2, 2024
0687907
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 2, 2024
af344c6
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Sep 2, 2024
ebc8e1f
Dashboard fix usage report (#2671)
dcmcand Sep 3, 2024
d528dc3
Merge branch 'develop' into add-uptime-monitoring
dcmcand Sep 3, 2024
0952cf8
only capture stdout not stdout+stderr when capture_output=True (#2704)
Adam-D-Lewis Sep 4, 2024
b717102
revert breaking change to azure deployment test (#2706)
Adam-D-Lewis Sep 4, 2024
7217f50
Get enum value from the config.provider object
marcelovilla Sep 4, 2024
d54739b
Merge branch 'develop' into swastik
marcelovilla Sep 4, 2024
0162d3d
Refactor GitOps approach prompt flow in guided init (#2269)
marcelovilla Sep 5, 2024
72541ff
Merge branch 'develop' into add-uptime-monitoring
dcmcand Sep 5, 2024
3a7766d
update dependencies and fix typo
dcmcand Sep 5, 2024
6cc9317
template the kustomization.yaml file (#2667)
dcmcand Sep 5, 2024
88785a1
Merge branch 'develop' into swastik
marcelovilla Sep 5, 2024
8e26815
Merge branch 'develop' into fix-gh-repo-description
marcelovilla Sep 5, 2024
d22e5cb
[pre-commit.ci] pre-commit autoupdate (#2675)
marcelovilla Sep 5, 2024
b93361b
small cleanup refactoring of launch_template model
viniciusdc Sep 6, 2024
c43d8db
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 6, 2024
4afb503
use exclude for ami_type instead of private method
viniciusdc Sep 6, 2024
f61af76
Fix auto-provisioned GitHub repo description after guided init (#2708)
marcelovilla Sep 9, 2024
aed2b92
Add amazon_web_services configuration option to specify EKS cluster a…
joneszc Sep 9, 2024
4c2aee7
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 11, 2024
f507f2d
Merge branch 'develop' into swastik
Adam-D-Lewis Sep 11, 2024
7981ba9
fix missing var name & fix deployment bug & rm validation restrictions
viniciusdc Sep 11, 2024
6aafcdc
fixes
viniciusdc Sep 16, 2024
c211fa6
fixes on ami_id
viniciusdc Sep 17, 2024
dc91617
Use Google Auth and Cloud Python APIs instead of `gcloud` CLI (#2083)
marcelovilla Sep 17, 2024
671f542
fix broken links in README.md, SECURITY.md, and CONTRIBUTING.md (#2720)
blakerosenthal Sep 17, 2024
1f392e8
add try to assert block to inspect error
viniciusdc Sep 17, 2024
4952589
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 17, 2024
a800a5b
add test for changing dicts and lists (#2724)
Adam-D-Lewis Sep 17, 2024
7f909d1
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 17, 2024
379736e
2024.9.1 upgrade notes (#2726)
Adam-D-Lewis Sep 17, 2024
50c6a5f
fix user_data and CUSTOM ami_type logic
viniciusdc Sep 18, 2024
749ae38
[pre-commit.ci] Apply automatic pre-commit fixes
pre-commit-ci[bot] Sep 18, 2024
7df8ca2
Merge branch 'develop' into 2603-aws-node-launch-template
viniciusdc Sep 18, 2024
5a6bda3
rm aux aws.amis method
viniciusdc Sep 18, 2024
5f5e53c
Add Support for AWS Launch Template Configuration (#2668)
dcmcand Sep 19, 2024
c28569d
Run terraform init before running terraform show (#2734)
marcelovilla Sep 23, 2024
82306ef
Update current version
marcelovilla Sep 24, 2024
261a4b4
Add release notes and fix headings
marcelovilla Sep 24, 2024
b2afe1a
Release Process Checklist Updates (#2727)
Adam-D-Lewis Sep 24, 2024
1579e54
Add warning about mounted shared directories
marcelovilla Sep 25, 2024
1549693
Test implict aiohttp's TCP to HTTP connector change (#2741)
viniciusdc Sep 25, 2024
30f833f
remove comments (#2743)
Adam-D-Lewis Sep 26, 2024
c0f5961
Deploy Rook Ceph Helm only when Ceph FS Needed (#2742)
kenafoster Sep 26, 2024
97c6c47
fix group mounting paths (#2738)
viniciusdc Sep 27, 2024
e2a53e2
Add compatibility prompt and notes for shared group mounting (#2739)
viniciusdc Sep 27, 2024
ce6cc55
Update release notes
marcelovilla Sep 27, 2024
fd9bf31
Merge branch 'develop' into prepare-release
marcelovilla Sep 27, 2024
e1870ab
Prepare 2024.9.1 release (#2735)
marcelovilla Sep 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add helm download
  • Loading branch information
dcmcand committed Aug 26, 2024
commit 4b345883940b04d323152d382e053ed906d5b5ae
4 changes: 2 additions & 2 deletions src/_nebari/constants.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CURRENT_RELEASE = "2024.7.1"

HELM_VERSION = "v3.15.3"
KUSTOMIZE_VERSION = "5.4.3"
# NOTE: Terraform cannot be upgraded further due to Hashicorp licensing changes
# implemented in August 2023.
# https://www.hashicorp.com/license-faq
TERRAFORM_VERSION = "1.5.7"

KUSTOMIZE_VERSION = "5.4.3"

# 04-kubernetes-ingress
DEFAULT_TRAEFIK_IMAGE_TAG = "2.9.1"

Expand Down
68 changes: 68 additions & 0 deletions src/_nebari/provider/helm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import logging
import subprocess
import tempfile
from pathlib import Path

from _nebari import constants
from _nebari.utils import run_subprocess_cmd

logger = logging.getLogger(__name__)


class HelmException(Exception):
pass


def download_helm_binary(version=constants.HELM_VERSION) -> Path:
filename_directory = Path(tempfile.gettempdir()) / "helm" / version
filename_path = filename_directory / "helm"

if not filename_directory.is_dir():
filename_directory.mkdir(parents=True)

if not filename_path.is_file():
logger.info(
"downloading and extracting Helm binary version %s to path=%s",
constants.HELM_VERSION,
filename_path,
)
install_script = subprocess.run(
[
"curl",
"-s",
"https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3",
],
stdout=subprocess.PIPE,
check=True,
)
subprocess.run(
[
"bash",
"-s",
"--",
"-v",
constants.HELM_VERSION,
"--no-sudo",
],
input=install_script.stdout,
check=True,
env={"HELM_INSTALL_DIR": str(filename_directory)},
)

filename_path.chmod(0o555)
return filename_path


def run_helm_subprocess(processargs, **kwargs) -> None:
helm_path = download_helm_binary()
logger.info("helm at %s", helm_path)
if run_subprocess_cmd([helm_path] + processargs, **kwargs):
raise HelmException("Helm returned an error")


def version() -> str:
helm_path = download_helm_binary()
logger.info("checking helm=%s version", helm_path)

version_output = subprocess.check_output([helm_path, "version"]).decode("utf-8")
return version_output
1 change: 0 additions & 1 deletion src/_nebari/provider/kustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def download_kustomize_binary(version=constants.KUSTOMIZE_VERSION) -> Path:

def run_kustomize_subprocess(processargs, **kwargs) -> None:
kustomize_path = download_kustomize_binary()
logger.info("kustomize at %s", kustomize_path)
if run_subprocess_cmd([kustomize_path] + processargs, **kwargs):
raise KustomizeException("Kustomize returned an error")

Expand Down
4 changes: 3 additions & 1 deletion src/_nebari/stages/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from kubernetes import client, config
from kubernetes.client.rest import ApiException

from _nebari.provider import kubernetes, kustomize, terraform
from _nebari.provider import helm, kubernetes, kustomize, terraform
from _nebari.stages.tf_objects import NebariTerraformState
from nebari.hookspecs import NebariStage

Expand Down Expand Up @@ -81,6 +81,8 @@ def render(self) -> Dict[pathlib.Path, str]:
"-o",
f"{temp_dir}",
"--enable-helm",
"--helm-command",
f"{helm.download_helm_binary()}",
f"{self.template_directory}",
]
)
Expand Down