rdeploy 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rdeploy-0.4.0/rdeploy.egg-info → rdeploy-0.4.2}/PKG-INFO +1 -1
- rdeploy-0.4.2/VERSION +1 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy/tasks.py +29 -12
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy/utils.py +35 -9
- {rdeploy-0.4.0 → rdeploy-0.4.2/rdeploy.egg-info}/PKG-INFO +1 -1
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy.egg-info/SOURCES.txt +0 -2
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy.egg-info/top_level.txt +0 -1
- {rdeploy-0.4.0 → rdeploy-0.4.2}/tests/test_tasks.py +96 -1
- {rdeploy-0.4.0 → rdeploy-0.4.2}/tests/test_utils.py +50 -0
- rdeploy-0.4.0/CHANGES.txt +0 -190
- rdeploy-0.4.0/VERSION +0 -1
- rdeploy-0.4.0/requirements.txt +0 -7
- {rdeploy-0.4.0 → rdeploy-0.4.2}/LICENSE +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/README.md +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/pyproject.toml +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy/__init__.py +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy/exceptions.py +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy/main.py +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy.egg-info/dependency_links.txt +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy.egg-info/entry_points.txt +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/rdeploy.egg-info/requires.txt +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/setup.cfg +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/tests/test_exceptions.py +0 -0
- {rdeploy-0.4.0 → rdeploy-0.4.2}/tests/test_main.py +0 -0
rdeploy-0.4.2/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.4.2
|
|
@@ -14,9 +14,9 @@ import json
|
|
|
14
14
|
import re
|
|
15
15
|
|
|
16
16
|
from packaging import version
|
|
17
|
-
from rdeploy.exceptions import ReleaseError
|
|
17
|
+
from rdeploy.exceptions import ReleaseError, ExecuteError
|
|
18
18
|
|
|
19
|
-
from rdeploy.utils import get_settings, confirm, get_helm_bin, yaml_decode_data_fields, build_management_cmd
|
|
19
|
+
from rdeploy.utils import get_settings, confirm, get_helm_bin, get_helm_os_string, yaml_decode_data_fields, build_management_cmd
|
|
20
20
|
|
|
21
21
|
# Cluster Activation:
|
|
22
22
|
#####################
|
|
@@ -677,15 +677,11 @@ def helm_setup(ctx, config):
|
|
|
677
677
|
'use_system_helm: false')
|
|
678
678
|
return
|
|
679
679
|
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
archive_tool = tarfile
|
|
683
|
-
elif sys.platform == 'darwin':
|
|
684
|
-
os_string = 'darwin-amd64'
|
|
685
|
-
archive_tool = tarfile
|
|
686
|
-
elif sys.platform == 'win32':
|
|
687
|
-
os_string = 'windows-amd64'
|
|
680
|
+
os_string = get_helm_os_string()
|
|
681
|
+
if sys.platform == 'win32':
|
|
688
682
|
archive_tool = zipfile
|
|
683
|
+
else:
|
|
684
|
+
archive_tool = tarfile
|
|
689
685
|
|
|
690
686
|
url = 'https://get.helm.sh/helm-v{version}-{os_string}.tar.gz'.format(version=helm_version,
|
|
691
687
|
os_string=os_string)
|
|
@@ -695,6 +691,13 @@ def helm_setup(ctx, config):
|
|
|
695
691
|
|
|
696
692
|
helm_bin = get_helm_bin(config_dict)
|
|
697
693
|
|
|
694
|
+
# Make sure the extracted binary actually runs on this machine (e.g. an
|
|
695
|
+
# x86_64 build on Apple Silicon without Rosetta) before reporting success.
|
|
696
|
+
result = ctx.run('{helm_bin} version'.format(helm_bin=helm_bin), warn=True, hide='both')
|
|
697
|
+
if result.failed:
|
|
698
|
+
raise ExecuteError('Installed helm binary at {helm_bin} failed to run:\n{error}'.format(
|
|
699
|
+
helm_bin=helm_bin, error=(result.stderr or result.stdout).strip()))
|
|
700
|
+
|
|
698
701
|
provider = config_dict.get('cloud_provider')
|
|
699
702
|
helm_registry = provider.get('helm_registry')
|
|
700
703
|
if not helm_registry:
|
|
@@ -721,6 +724,20 @@ def live_image(ctx, config):
|
|
|
721
724
|
print(image)
|
|
722
725
|
|
|
723
726
|
|
|
727
|
+
def _run_interactive(cmd):
|
|
728
|
+
"""
|
|
729
|
+
Run a command attached directly to the user's terminal.
|
|
730
|
+
|
|
731
|
+
kubectl manages the terminal itself, so invoke's pty layer is skipped: on
|
|
732
|
+
Python 3.14 its stdin forwarding dies (an undersized FIONREAD buffer now
|
|
733
|
+
raises SystemError), leaving the session unable to receive input.
|
|
734
|
+
"""
|
|
735
|
+
print(cmd)
|
|
736
|
+
result = subprocess.run(cmd, shell=True)
|
|
737
|
+
if result.returncode:
|
|
738
|
+
sys.exit(result.returncode)
|
|
739
|
+
|
|
740
|
+
|
|
724
741
|
@task
|
|
725
742
|
def shell(ctx, config, tag=None):
|
|
726
743
|
"""Exec into the management container"""
|
|
@@ -728,7 +745,7 @@ def shell(ctx, config, tag=None):
|
|
|
728
745
|
settings_dict = get_settings()
|
|
729
746
|
config_dict = settings_dict['configs'][config]
|
|
730
747
|
management_cmd = build_management_cmd(config_dict, "/bin/bash", tag)
|
|
731
|
-
|
|
748
|
+
_run_interactive(management_cmd)
|
|
732
749
|
|
|
733
750
|
|
|
734
751
|
@task
|
|
@@ -738,7 +755,7 @@ def manage(ctx, config, cmd, tag=None):
|
|
|
738
755
|
settings_dict = get_settings()
|
|
739
756
|
config_dict = settings_dict['configs'][config]
|
|
740
757
|
management_cmd = build_management_cmd(config_dict, f'python manage.py {cmd}', tag)
|
|
741
|
-
|
|
758
|
+
_run_interactive(management_cmd)
|
|
742
759
|
|
|
743
760
|
|
|
744
761
|
@task
|
|
@@ -2,6 +2,7 @@ import os
|
|
|
2
2
|
import yaml
|
|
3
3
|
import json
|
|
4
4
|
import base64
|
|
5
|
+
import platform as py_platform
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
try:
|
|
@@ -65,20 +66,45 @@ def confirm(prompt='Continue?\n', failure_prompt='User cancelled task'):
|
|
|
65
66
|
raise ParseError(failure_prompt)
|
|
66
67
|
|
|
67
68
|
|
|
69
|
+
def get_helm_arch() -> str:
|
|
70
|
+
"""
|
|
71
|
+
Return the Helm release architecture for this machine ('amd64' or
|
|
72
|
+
'arm64').
|
|
73
|
+
"""
|
|
74
|
+
machine = py_platform.machine().lower()
|
|
75
|
+
if machine in ('arm64', 'aarch64'):
|
|
76
|
+
return 'arm64'
|
|
77
|
+
elif machine in ('x86_64', 'amd64'):
|
|
78
|
+
return 'amd64'
|
|
79
|
+
raise ExecuteError(f'Unsupported machine architecture for helm: {machine!r}')
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def get_helm_os_string() -> str:
|
|
83
|
+
"""
|
|
84
|
+
Return the Helm release '<os>-<arch>' string for this machine, e.g.
|
|
85
|
+
'darwin-arm64'. It is used in the download URL and is also the name of
|
|
86
|
+
the folder the release archive extracts to.
|
|
87
|
+
"""
|
|
88
|
+
if platform == 'linux' or platform == 'linux2':
|
|
89
|
+
os_name = 'linux'
|
|
90
|
+
elif platform == 'darwin':
|
|
91
|
+
os_name = 'darwin'
|
|
92
|
+
elif platform == 'win32':
|
|
93
|
+
os_name = 'windows'
|
|
94
|
+
else:
|
|
95
|
+
raise ExecuteError(f'Unsupported platform for helm: {platform!r}')
|
|
96
|
+
|
|
97
|
+
return f'{os_name}-{get_helm_arch()}'
|
|
98
|
+
|
|
99
|
+
|
|
68
100
|
def get_helm_bin(config_dict: dict) -> str:
|
|
69
101
|
if config_dict.get('use_system_helm', True):
|
|
70
102
|
helm_bin = 'helm'
|
|
71
103
|
else:
|
|
72
104
|
helm_version = config_dict['helm_version']
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
elif platform == 'darwin':
|
|
77
|
-
folder = 'darwin-amd64'
|
|
78
|
-
helm_bin = f'opt/helm-v{helm_version}/{folder}/helm'
|
|
79
|
-
elif platform == 'win32':
|
|
80
|
-
folder = 'windows-amd64'
|
|
81
|
-
helm_bin = f'opt/helm-v{helm_version}/{folder}/helm.exe'
|
|
105
|
+
folder = get_helm_os_string()
|
|
106
|
+
binary = 'helm.exe' if platform == 'win32' else 'helm'
|
|
107
|
+
helm_bin = f'opt/helm-v{helm_version}/{folder}/{binary}'
|
|
82
108
|
|
|
83
109
|
return helm_bin
|
|
84
110
|
|
|
@@ -16,8 +16,11 @@ from rdeploy.tasks import (
|
|
|
16
16
|
create_namespace,
|
|
17
17
|
git_release,
|
|
18
18
|
upgrade,
|
|
19
|
+
helm_setup,
|
|
20
|
+
shell,
|
|
21
|
+
manage,
|
|
19
22
|
)
|
|
20
|
-
from rdeploy.exceptions import ReleaseError
|
|
23
|
+
from rdeploy.exceptions import ReleaseError, ExecuteError
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
@pytest.fixture
|
|
@@ -278,6 +281,62 @@ class TestCreateNamespace:
|
|
|
278
281
|
assert 'kubectl create namespace staging-ns' in call_args
|
|
279
282
|
|
|
280
283
|
|
|
284
|
+
class TestHelmSetup:
|
|
285
|
+
# The download and extraction are mocked so nothing is fetched or
|
|
286
|
+
# written to disk.
|
|
287
|
+
@staticmethod
|
|
288
|
+
def settings():
|
|
289
|
+
return {
|
|
290
|
+
"configs": {
|
|
291
|
+
"staging": {
|
|
292
|
+
"helm_version": "3.12.0",
|
|
293
|
+
"use_system_helm": False,
|
|
294
|
+
"cloud_provider": {"name": "gcp", "helm_registry": None},
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@pytest.mark.parametrize("sys_platform,machine,os_string", [
|
|
300
|
+
("darwin", "arm64", "darwin-arm64"),
|
|
301
|
+
("darwin", "x86_64", "darwin-amd64"),
|
|
302
|
+
("linux", "aarch64", "linux-arm64"),
|
|
303
|
+
("linux", "x86_64", "linux-amd64"),
|
|
304
|
+
])
|
|
305
|
+
def test_download_url_matches_helm_bin(self, mock_ctx, sys_platform, machine, os_string):
|
|
306
|
+
mock_ctx.run.return_value = MagicMock(failed=False)
|
|
307
|
+
with patch('rdeploy.tasks.get_settings', return_value=self.settings()), \
|
|
308
|
+
patch('rdeploy.utils.platform', sys_platform), \
|
|
309
|
+
patch('rdeploy.tasks.sys.platform', sys_platform), \
|
|
310
|
+
patch('rdeploy.utils.py_platform.machine', return_value=machine), \
|
|
311
|
+
patch('rdeploy.tasks.urllib.request.urlretrieve', return_value=('/tmp/helm.tgz', None)) as mock_retrieve, \
|
|
312
|
+
patch('rdeploy.tasks.tarfile.open') as mock_tar_open:
|
|
313
|
+
helm_setup(mock_ctx, 'staging')
|
|
314
|
+
|
|
315
|
+
mock_retrieve.assert_called_once_with(
|
|
316
|
+
'https://get.helm.sh/helm-v3.12.0-{}.tar.gz'.format(os_string), filename=None)
|
|
317
|
+
mock_tar_open.return_value.extractall.assert_called_once_with('./opt/helm-v3.12.0')
|
|
318
|
+
version_call = mock_ctx.run.call_args_list[0][0][0]
|
|
319
|
+
assert version_call == 'opt/helm-v3.12.0/{}/helm version'.format(os_string)
|
|
320
|
+
repo_call = mock_ctx.run.call_args_list[1][0][0]
|
|
321
|
+
assert repo_call.startswith('opt/helm-v3.12.0/{}/helm '.format(os_string))
|
|
322
|
+
|
|
323
|
+
def test_fails_when_binary_cannot_run(self, mock_ctx, capsys):
|
|
324
|
+
mock_ctx.run.return_value = MagicMock(
|
|
325
|
+
failed=True, stdout='', stderr='bash: opt/helm-v3.12.0/darwin-amd64/helm: Bad CPU type in executable\n')
|
|
326
|
+
with patch('rdeploy.tasks.get_settings', return_value=self.settings()), \
|
|
327
|
+
patch('rdeploy.utils.platform', 'darwin'), \
|
|
328
|
+
patch('rdeploy.tasks.sys.platform', 'darwin'), \
|
|
329
|
+
patch('rdeploy.utils.py_platform.machine', return_value='x86_64'), \
|
|
330
|
+
patch('rdeploy.tasks.urllib.request.urlretrieve', return_value=('/tmp/helm.tgz', None)), \
|
|
331
|
+
patch('rdeploy.tasks.tarfile.open'):
|
|
332
|
+
with pytest.raises(ExecuteError, match='Bad CPU type'):
|
|
333
|
+
helm_setup(mock_ctx, 'staging')
|
|
334
|
+
|
|
335
|
+
# Stops before adding repos and never reports success.
|
|
336
|
+
mock_ctx.run.assert_called_once()
|
|
337
|
+
assert 'Successfully installed' not in capsys.readouterr().out
|
|
338
|
+
|
|
339
|
+
|
|
281
340
|
class TestUpgrade:
|
|
282
341
|
# _watch_rollout is patched in every test so the progress watcher thread
|
|
283
342
|
# never shells out to a real kubectl (and whatever cluster the local
|
|
@@ -667,3 +726,39 @@ class TestGitRelease:
|
|
|
667
726
|
with patch('rdeploy.tasks.confirm'):
|
|
668
727
|
with pytest.raises(SystemExit):
|
|
669
728
|
git_release(mock_ctx, version_bump='pre')
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
class TestInteractiveCommands:
|
|
733
|
+
# shell and manage hand the terminal straight to kubectl instead of going
|
|
734
|
+
# through invoke's pty layer, which cannot forward stdin on Python 3.14.
|
|
735
|
+
|
|
736
|
+
def _run(self, task, sample_settings_v3, *args, returncode=0):
|
|
737
|
+
settings = yaml.safe_load(open(sample_settings_v3))
|
|
738
|
+
with patch('rdeploy.tasks.get_settings', return_value=settings), \
|
|
739
|
+
patch('rdeploy.tasks.set_context'), \
|
|
740
|
+
patch('rdeploy.tasks.build_management_cmd',
|
|
741
|
+
return_value='kubectl run management') as build, \
|
|
742
|
+
patch('rdeploy.tasks.subprocess.run',
|
|
743
|
+
return_value=MagicMock(returncode=returncode)) as run:
|
|
744
|
+
task(*args)
|
|
745
|
+
return build, run
|
|
746
|
+
|
|
747
|
+
def test_shell_runs_kubectl_on_the_terminal(self, mock_ctx, sample_settings_v3):
|
|
748
|
+
build, run = self._run(shell, sample_settings_v3, mock_ctx, 'staging')
|
|
749
|
+
assert build.call_args[0][1] == '/bin/bash'
|
|
750
|
+
run.assert_called_once_with('kubectl run management', shell=True)
|
|
751
|
+
mock_ctx.run.assert_not_called()
|
|
752
|
+
|
|
753
|
+
def test_manage_runs_the_management_command(self, mock_ctx, sample_settings_v3):
|
|
754
|
+
build, run = self._run(
|
|
755
|
+
manage, sample_settings_v3, mock_ctx, 'staging', 'migrate')
|
|
756
|
+
assert build.call_args[0][1] == 'python manage.py migrate'
|
|
757
|
+
run.assert_called_once_with('kubectl run management', shell=True)
|
|
758
|
+
mock_ctx.run.assert_not_called()
|
|
759
|
+
|
|
760
|
+
def test_exit_code_is_propagated(self, mock_ctx, sample_settings_v3):
|
|
761
|
+
with pytest.raises(SystemExit) as exc:
|
|
762
|
+
self._run(
|
|
763
|
+
shell, sample_settings_v3, mock_ctx, 'staging', returncode=3)
|
|
764
|
+
assert exc.value.code == 3
|
|
@@ -2,16 +2,20 @@ import base64
|
|
|
2
2
|
import json
|
|
3
3
|
import os
|
|
4
4
|
import tempfile
|
|
5
|
+
from unittest.mock import patch
|
|
5
6
|
|
|
6
7
|
import pytest
|
|
7
8
|
import yaml
|
|
8
9
|
|
|
10
|
+
from rdeploy.exceptions import ExecuteError
|
|
9
11
|
from rdeploy.utils import (
|
|
10
12
|
strtobool,
|
|
11
13
|
get_path,
|
|
12
14
|
format_yaml,
|
|
13
15
|
get_settings,
|
|
14
16
|
get_helm_bin,
|
|
17
|
+
get_helm_arch,
|
|
18
|
+
get_helm_os_string,
|
|
15
19
|
decode_data_value,
|
|
16
20
|
decode_data_fields,
|
|
17
21
|
json_decode_data_fields,
|
|
@@ -93,6 +97,52 @@ class TestGetHelmBin:
|
|
|
93
97
|
assert "3.12.0" in result
|
|
94
98
|
assert "helm" in result
|
|
95
99
|
|
|
100
|
+
@pytest.mark.parametrize("sys_platform,machine,expected", [
|
|
101
|
+
("darwin", "arm64", "opt/helm-v3.12.0/darwin-arm64/helm"),
|
|
102
|
+
("darwin", "x86_64", "opt/helm-v3.12.0/darwin-amd64/helm"),
|
|
103
|
+
("linux", "aarch64", "opt/helm-v3.12.0/linux-arm64/helm"),
|
|
104
|
+
("linux", "x86_64", "opt/helm-v3.12.0/linux-amd64/helm"),
|
|
105
|
+
("win32", "AMD64", "opt/helm-v3.12.0/windows-amd64/helm.exe"),
|
|
106
|
+
])
|
|
107
|
+
def test_local_helm_path_per_platform(self, sys_platform, machine, expected):
|
|
108
|
+
config = {"use_system_helm": False, "helm_version": "3.12.0"}
|
|
109
|
+
with patch("rdeploy.utils.platform", sys_platform), \
|
|
110
|
+
patch("rdeploy.utils.py_platform.machine", return_value=machine):
|
|
111
|
+
assert get_helm_bin(config) == expected
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class TestGetHelmOsString:
|
|
115
|
+
@pytest.mark.parametrize("machine,expected", [
|
|
116
|
+
("arm64", "arm64"),
|
|
117
|
+
("aarch64", "arm64"),
|
|
118
|
+
("x86_64", "amd64"),
|
|
119
|
+
("AMD64", "amd64"),
|
|
120
|
+
])
|
|
121
|
+
def test_arch(self, machine, expected):
|
|
122
|
+
with patch("rdeploy.utils.py_platform.machine", return_value=machine):
|
|
123
|
+
assert get_helm_arch() == expected
|
|
124
|
+
|
|
125
|
+
def test_unsupported_arch_raises(self):
|
|
126
|
+
with patch("rdeploy.utils.py_platform.machine", return_value="mips"):
|
|
127
|
+
with pytest.raises(ExecuteError):
|
|
128
|
+
get_helm_arch()
|
|
129
|
+
|
|
130
|
+
@pytest.mark.parametrize("sys_platform,expected", [
|
|
131
|
+
("linux", "linux-arm64"),
|
|
132
|
+
("linux2", "linux-arm64"),
|
|
133
|
+
("darwin", "darwin-arm64"),
|
|
134
|
+
("win32", "windows-arm64"),
|
|
135
|
+
])
|
|
136
|
+
def test_os_string(self, sys_platform, expected):
|
|
137
|
+
with patch("rdeploy.utils.platform", sys_platform), \
|
|
138
|
+
patch("rdeploy.utils.py_platform.machine", return_value="arm64"):
|
|
139
|
+
assert get_helm_os_string() == expected
|
|
140
|
+
|
|
141
|
+
def test_unsupported_platform_raises(self):
|
|
142
|
+
with patch("rdeploy.utils.platform", "sunos5"):
|
|
143
|
+
with pytest.raises(ExecuteError):
|
|
144
|
+
get_helm_os_string()
|
|
145
|
+
|
|
96
146
|
|
|
97
147
|
class TestDecodeDataValue:
|
|
98
148
|
def test_decodes_plain_string(self):
|
rdeploy-0.4.0/CHANGES.txt
DELETED
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
----
|
|
2
|
-
Version 0.4.0, Fri 10 Jul 2026
|
|
3
|
-
===============================
|
|
4
|
-
- `rdeploy upgrade` now shows live rollout progress while the atomic helm
|
|
5
|
-
upgrade waits: it polls `kubectl get pods` and shows the pod status table
|
|
6
|
-
(prefixed with `[rollout]`), so you can watch pods being created, pulled,
|
|
7
|
-
started and terminated (including helm hook pods such as migration jobs)
|
|
8
|
-
instead of blocking silently. On a terminal the table is pinned to the
|
|
9
|
-
bottom of the screen and updates in place while helm's output scrolls
|
|
10
|
-
above it; on a non-TTY (e.g. CI logs) it prints the table once, then any
|
|
11
|
-
row that changes.
|
|
12
|
-
- Added `--no-progress` to disable the live progress display. The display is
|
|
13
|
-
purely informational and runs concurrently with helm; helm `--atomic`
|
|
14
|
-
remains the sole arbiter of success, failure and rollback, and the watcher
|
|
15
|
-
never affects the command's exit code.
|
|
16
|
-
|
|
17
|
-
----
|
|
18
|
-
Version 0.3.0, Thu 09 Jul 2026
|
|
19
|
-
===============================
|
|
20
|
-
- `rdeploy upgrade` now runs helm with `--atomic` by default: helm waits for
|
|
21
|
-
the rollout to complete (up to `--timeout`, default 15m) and automatically
|
|
22
|
-
rolls back to the previous release if it fails, and the command exits with
|
|
23
|
-
an error instead of reporting success.
|
|
24
|
-
- Added `--no-atomic` to restore the previous fire-and-forget behaviour and
|
|
25
|
-
`--timeout` to adjust how long helm waits.
|
|
26
|
-
|
|
27
|
-
BREAKING CHANGES:
|
|
28
|
-
- `rdeploy upgrade` now blocks until the rollout completes and exits non-zero
|
|
29
|
-
on failure. Scripts that relied on it returning immediately should pass
|
|
30
|
-
`--no-atomic`.
|
|
31
|
-
|
|
32
|
-
Version 0.2.0, Thu 09 Jul 2026
|
|
33
|
-
===============================
|
|
34
|
-
- Upgraded all dependencies to current versions: invoke 2.2+/3.x, semver 3.x,
|
|
35
|
-
kubernetes 28+, packaging 23+, python-dotenv 1.0+, requests 2.31+.
|
|
36
|
-
- Migrated packaging from setup.py to pyproject.toml.
|
|
37
|
-
- Replaced deprecated pkg_resources and distutils.strtobool (removed in
|
|
38
|
-
Python 3.12) with importlib.metadata and a local implementation.
|
|
39
|
-
- Added a test suite (pytest).
|
|
40
|
-
- Removed all Azure support. rdeploy now targets GCP exclusively. Commands
|
|
41
|
-
fail with a clear error when rdeploy.yaml specifies a non-gcp provider.
|
|
42
|
-
- Fixed latest-prerelease regex to escape the version argument.
|
|
43
|
-
|
|
44
|
-
BREAKING CHANGES:
|
|
45
|
-
- Azure support removed: set-cluster, set-context, set-project and cloudbuild
|
|
46
|
-
no longer work with `cloud_provider.name: azure` configs, and the
|
|
47
|
-
`container_registry_provider: azure` setting is no longer honoured.
|
|
48
|
-
- `rdeploy upgrade` named argument renamed: `--version` is now `--tag`
|
|
49
|
-
(positional usage, e.g. `rdeploy upgrade prod 1.2.3`, is unchanged).
|
|
50
|
-
- The `bash` alias for the `shell` command was removed; use `rdeploy shell`.
|
|
51
|
-
- `rdeploy latest-prerelease` named argument renamed: `--version` is now
|
|
52
|
-
`--ver`. The misspelled `latest-prerelese` alias was removed.
|
|
53
|
-
- Requires Python 3.9+.
|
|
54
|
-
|
|
55
|
-
Version 0.1.9, Tue 30 Apr 2024
|
|
56
|
-
===============================
|
|
57
|
-
- Fix bug in Google Artifact Registry for helm charts handling
|
|
58
|
-
|
|
59
|
-
Version 0.1.8, Tue 30 Apr 2024
|
|
60
|
-
===============================
|
|
61
|
-
- Added support for Google Artifact Registry for helm charts.
|
|
62
|
-
|
|
63
|
-
Version 0.0.30, Mon 4 Jan 2020
|
|
64
|
-
===============================
|
|
65
|
-
- Update helm stable repo url to new version.
|
|
66
|
-
|
|
67
|
-
Version 0.0.26, Wed 14 Jul 2020
|
|
68
|
-
===============================
|
|
69
|
-
- Add decode-secret command
|
|
70
|
-
- Fix MANIFEST.in
|
|
71
|
-
|
|
72
|
-
Version 0.0.25, Wed 25 Mar 2020
|
|
73
|
-
===============================
|
|
74
|
-
|
|
75
|
-
- Migrated to use kubectl run command. Currently supporting the
|
|
76
|
-
ExtensionsV1beta1/deployment
|
|
77
|
-
|
|
78
|
-
a8a490a updated working management pod spec and command definition for both manage and shell commands
|
|
79
|
-
78d207c Created a command for building the management command
|
|
80
|
-
|
|
81
|
-
Version 0.0.24, Tue 11 Feb 2020
|
|
82
|
-
===============================
|
|
83
|
-
- Fix bug in helm install command version parsing.
|
|
84
|
-
|
|
85
|
-
Version 0.0.22, Mon 10 Feb 2020
|
|
86
|
-
===============================
|
|
87
|
-
- New rdeploy.yaml format, added rdeploy.example.yaml.
|
|
88
|
-
- Added support for Azure in the set_context, and cloudbuild commands. Azure details to be provided in the `cloud_provider` field in rdeploy.yaml.
|
|
89
|
-
- Added support for helm 3 in the `install` and `upgrade` commands.
|
|
90
|
-
- Added helm_setup command which installs a specific helm version in a local opt directory. This can be enabled by specifying `use_system_helm: false` and `helm_version` in rdeploy.yaml.
|
|
91
|
-
- Added a new `helm` command.
|
|
92
|
-
- Added aliases for all commands with underscores. I.e. `rdeploy set-context` is now equivalent to `rdeploy set_context`
|
|
93
|
-
- Renamed the `bash` to `shell`, keeping `bash` as an alias.
|
|
94
|
-
|
|
95
|
-
Version 0.0.18, Fri 13 Sep 2019
|
|
96
|
-
===============================
|
|
97
|
-
|
|
98
|
-
0a1a8ff preference placed on bash instead of bourne shell (Mwangi)
|
|
99
|
-
9dbee31 explicitly added the separator for the command in the kubectl exec command (Mwangi)
|
|
100
|
-
41e48c7 added docs for the force flag (Mwangi)
|
|
101
|
-
e7f11bf removed redundant prefix \venv\bin for future changes to our docker images (Mwangi)
|
|
102
|
-
a9a5ac1 added a build option for git release (Mwangi)
|
|
103
|
-
dee9af8 removed input option for confirm changes have been committed (Mwangi)
|
|
104
|
-
|
|
105
|
-
Version 0.0.17, Mon 05 Aug 2019
|
|
106
|
-
===============================
|
|
107
|
-
|
|
108
|
-
0283cd1 Added gcs-log-dir option to the cloudbuild methods (Mwangi)
|
|
109
|
-
9efa2c9 fixed the YAML Loader (Mwangi)
|
|
110
|
-
7e98584 Refactoring the tasks file (Mwangi)
|
|
111
|
-
|
|
112
|
-
Version 0.0.16, Thu 19 Jul 2019
|
|
113
|
-
===============================
|
|
114
|
-
|
|
115
|
-
7b8bd11 Merge pull request #19 from rehive/feature/18-tiller-migration (Mwangi)
|
|
116
|
-
3a16ae3 Tested the template_install (Mwangi)
|
|
117
|
-
35f082d split install and template_install (Mwangi)
|
|
118
|
-
6868aac WIP Added the helm fetch and helm template commands (Mwangi)
|
|
119
|
-
c3deaee Default ACL set to private for non-static buckets (Mwangi)
|
|
120
|
-
|
|
121
|
-
Version 0.0.15, Fri 5 Jul 2019
|
|
122
|
-
==============================
|
|
123
|
-
|
|
124
|
-
31b94f0944 Bumped version to 0.0.15 (Mwangi)
|
|
125
|
-
ede64320fa Formatting fixes, bug fixes and deprecations (Mwangi)
|
|
126
|
-
- Fixed formatting for readability
|
|
127
|
-
- removed create_volume_claim action as it is deprecated
|
|
128
|
-
- updated gsutil commands to be bucketPolicy only
|
|
129
|
-
- updated bucket actions to be set on current project and not cluster
|
|
130
|
-
- removed proxy action due to kubectl deprecation
|
|
131
|
-
- Fixed initial versioning bug i.e when project has no tag
|
|
132
|
-
d8cd0ea6fa Install flags fixed for Helm v3.0.1-alpha (Mwangi)
|
|
133
|
-
1c350ce854 Merging with master (Mwangi)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Version 0.0.14, Mon 21 Jan 2019
|
|
137
|
-
================================
|
|
138
|
-
|
|
139
|
-
eb44a57bc2 Hotfix yet another silly bug (Michail Brynard)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Version 0.0.13, Mon 21 Jan 2019
|
|
143
|
-
================================
|
|
144
|
-
|
|
145
|
-
fb181839a6 Hotfix: dictionary bug (Michail Brynard)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Version 0.0.12, Mon 21 Jan 2019
|
|
149
|
-
================================
|
|
150
|
-
|
|
151
|
-
1c8bd5b220 Fix typo (Michail Brynard)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Version 0.0.11, Mon 21 Jan 2019
|
|
155
|
-
================================
|
|
156
|
-
|
|
157
|
-
fa6eec9b42 Version bump to 0.0.10 and updating CHANGES.txt (Michail Brynard)
|
|
158
|
-
666f6b5b87 Update formatting (Michail Brynard)
|
|
159
|
-
025548a9dc Add support for specifying zone or region in rdeploy.yaml. (Michail Brynard)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
Version 0.0.10, Mon 21 Jan 2019
|
|
163
|
-
================================
|
|
164
|
-
|
|
165
|
-
666f6b5b87 Update formatting (Michail Brynard)
|
|
166
|
-
025548a9dc Add support for specifying zone or region in rdeploy.yaml. (Michail Brynard)
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Version 0.0.7, Tue 05 Jun 2018
|
|
170
|
-
===============================
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
Version 0.0.6, Tue 05 Jun 2018
|
|
175
|
-
===============================
|
|
176
|
-
|
|
177
|
-
91352e57ae Version bump to 0.0.5 and updating CHANGES.txt (Michail Brynard)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Version 0.0.5, Tue 05 Jun 2018
|
|
181
|
-
===============================
|
|
182
|
-
|
|
183
|
-
5419c2fb42 Fix static upload command (Michail Brynard)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
Version 0.0.5, Tue 05 Jun 2018
|
|
187
|
-
===============================
|
|
188
|
-
|
|
189
|
-
5419c2fb42 Fix static upload command (Michail Brynard)
|
|
190
|
-
|
rdeploy-0.4.0/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.4.0
|
rdeploy-0.4.0/requirements.txt
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|