cpl 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +90 -85
- data/CONTRIBUTING.md +2 -2
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/cpl.gemspec +1 -1
- data/lib/command/run.rb +16 -10
- data/lib/core/shell.rb +7 -0
- data/lib/cpl/version.rb +1 -1
- data/lib/cpl.rb +1 -5
- metadata +4 -5
- data/googlee2da545df05d92f9.html +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e32bc116e1b72a8282d38542a4ff8ba39240b4038e5cd5ad61bb7fda27a492
|
4
|
+
data.tar.gz: 496bc3b6fc6c49f6865a430c91d12e98400c6af3e9eb97cac24090b575365918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ac8eec9af37340bb5c2ac4b635daf6ab1b60c77893ecd412224879ae700c1569b0ac76675f520b245f4021d1d7476aafb95d5d067b4e5efaabedee1a8068176
|
7
|
+
data.tar.gz: 9d67284e4db41824b6492dd9a9aa6db37ea49261ac965dadc6efad5e0d4a4f9cc1aa383aac3964bd16ee5b879a76ee63dafa5f895a0e451a033bf35efce591b3
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -12,194 +12,199 @@ Please follow the recommendations outlined at [keepachangelog.com](https://keepa
|
|
12
12
|
|
13
13
|
Changes since the last non-beta release.
|
14
14
|
|
15
|
-
_Please add entries here for your pull requests that
|
15
|
+
_Please add entries here for your pull requests that have not yet been released._
|
16
|
+
|
17
|
+
- Fixed issue with improper handling of job statuses. Fixed issue with interactive magic string showing and exit code. [PR 177](https://github.com/shakacode/control-plane-flow/pull/177) by [Sergey Tarasov](https://github.com/dzirtusss).
|
18
|
+
|
19
|
+
## [2.0.1] - 2024-05-15
|
16
20
|
|
17
21
|
### Fixed
|
18
22
|
|
19
|
-
- Fixed issue where `cleanup-stale-apps` command fails to delete apps with volumesets. [PR 175](https://github.com/shakacode/
|
23
|
+
- Fixed issue where `cleanup-stale-apps` command fails to delete apps with volumesets. [PR 175](https://github.com/shakacode/control-plane-flow/pull/175) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
20
24
|
|
21
25
|
## [2.0.0] - 2024-05-14
|
22
26
|
|
23
27
|
### BREAKING CHANGES
|
24
28
|
|
25
|
-
- Commands that finished with a failure now exit with code `64` instead of `1`. [PR 132](https://github.com/shakacode/
|
26
|
-
- Bumped minimum `cpln` version to `2.0.1` (`cpln workload cron get` is required). [PR 171](https://github.com/shakacode/
|
27
|
-
- `run:cleanup` command has been removed. [PR 151](https://github.com/shakacode/
|
28
|
-
- `deploy-image` command now runs the release script in the context of the `run` command. [PR 151](https://github.com/shakacode/
|
29
|
+
- Commands that finished with a failure now exit with code `64` instead of `1`. [PR 132](https://github.com/shakacode/control-plane-flow/pull/132) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
30
|
+
- Bumped minimum `cpln` version to `2.0.1` (`cpln workload cron get` is required). [PR 171](https://github.com/shakacode/control-plane-flow/pull/171) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
31
|
+
- `run:cleanup` command has been removed. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
32
|
+
- `deploy-image` command now runs the release script in the context of the `run` command. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
29
33
|
|
30
34
|
### Fixed
|
31
35
|
|
32
|
-
- Fixed race conditions when using latest image in `run` command. [PR 163](https://github.com/shakacode/
|
36
|
+
- Fixed race conditions when using latest image in `run` command. [PR 163](https://github.com/shakacode/control-plane-flow/pull/163) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
33
37
|
|
34
38
|
### Added
|
35
39
|
|
36
|
-
- Added options to `run` command to override the workload container's `--cpu`, `--memory`, and `--entrypoint`. [PR 151](https://github.com/shakacode/
|
37
|
-
- Added `--workload` option to `delete` command to delete a specific workload. [PR 151](https://github.com/shakacode/
|
38
|
-
- Added `--replica` option to `logs` command to see logs from a specific replica. [PR 151](https://github.com/shakacode/
|
39
|
-
- Added `--replica` option to `ps:stop` command to stop a specific replica. [PR 151](https://github.com/shakacode/
|
40
|
-
- Added option to set custom names for secrets and secrets policy, using `secrets_name` and `secrets_policy_name` in `controlplane.yml`. [PR 159](https://github.com/shakacode/
|
40
|
+
- Added options to `run` command to override the workload container's `--cpu`, `--memory`, and `--entrypoint`. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
41
|
+
- Added `--workload` option to `delete` command to delete a specific workload. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
42
|
+
- Added `--replica` option to `logs` command to see logs from a specific replica. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
43
|
+
- Added `--replica` option to `ps:stop` command to stop a specific replica. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
44
|
+
- Added option to set custom names for secrets and secrets policy, using `secrets_name` and `secrets_policy_name` in `controlplane.yml`. [PR 159](https://github.com/shakacode/control-plane-flow/pull/159) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
41
45
|
|
42
46
|
### Changed
|
43
47
|
|
44
|
-
- An error is now raised if the org does not exist. [PR 167](https://github.com/shakacode/
|
45
|
-
- Common options are now shown in help. [PR 169](https://github.com/shakacode/
|
46
|
-
- `run` command now uses a single reusable cron workload and works for both interactive and non-interactive jobs. [PR 151](https://github.com/shakacode/
|
47
|
-
- `run:detached` command has been deprecated in favor of `run`. [PR 151](https://github.com/shakacode/
|
48
|
-
- `deploy-image` command now raises an error if image does not exist. [PR 153](https://github.com/shakacode/
|
49
|
-
- `delete` command now unbinds identity from policy (if bound) when deleting app. [PR 170](https://github.com/shakacode/
|
48
|
+
- An error is now raised if the org does not exist. [PR 167](https://github.com/shakacode/control-plane-flow/pull/167) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
49
|
+
- Common options are now shown in help. [PR 169](https://github.com/shakacode/control-plane-flow/pull/169) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
50
|
+
- `run` command now uses a single reusable cron workload and works for both interactive and non-interactive jobs. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
51
|
+
- `run:detached` command has been deprecated in favor of `run`. [PR 151](https://github.com/shakacode/control-plane-flow/pull/151) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
52
|
+
- `deploy-image` command now raises an error if image does not exist. [PR 153](https://github.com/shakacode/control-plane-flow/pull/153) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
53
|
+
- `delete` command now unbinds identity from policy (if bound) when deleting app. [PR 170](https://github.com/shakacode/control-plane-flow/pull/170) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
50
54
|
|
51
55
|
## [1.4.0] - 2024-03-20
|
52
56
|
|
53
57
|
### Added
|
54
58
|
|
55
|
-
- Added new template substitution variables (used by `apply-template` and `setup-app` commands): `{{APP_LOCATION_LINK}}`, `{{APP_IMAGE_LINK}}`, `{{APP_IDENTITY}}`, `{{APP_IDENTITY_LINK}}`, `{{APP_SECRETS}}` and `{{APP_SECRETS_POLICY}}`. [PR 146](https://github.com/shakacode/
|
56
|
-
- Added `--run-release-phase` option to `deploy-image` command to run release script before deploying (same step as in `promote-app-from-upstream` command). [PR 146](https://github.com/shakacode/
|
59
|
+
- Added new template substitution variables (used by `apply-template` and `setup-app` commands): `{{APP_LOCATION_LINK}}`, `{{APP_IMAGE_LINK}}`, `{{APP_IDENTITY}}`, `{{APP_IDENTITY_LINK}}`, `{{APP_SECRETS}}` and `{{APP_SECRETS_POLICY}}`. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
60
|
+
- Added `--run-release-phase` option to `deploy-image` command to run release script before deploying (same step as in `promote-app-from-upstream` command). [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
57
61
|
|
58
62
|
### Changed
|
59
63
|
|
60
|
-
- Template substitution (used by `apply-template` and `setup-app` commands) now uses double braces (e.g., `APP_ORG` -> `{{APP_ORG}}`). This change is backwards compatible. [PR 146](https://github.com/shakacode/
|
61
|
-
- Renamed template substitution variable `APP_GVC` to `{{APP_NAME}}` (used by `apply-template` and `setup-app` commands). This change is backwards compatible. [PR 146](https://github.com/shakacode/
|
62
|
-
- `setup-app` command now automatically binds the app to the secrets policy, as long as both the identity and the policy exist. Added `--skip-secret-access-binding` option to prevent this behavior. [PR 146](https://github.com/shakacode/
|
63
|
-
- Local API token is now refreshed when it is about to expire. [PR 146](https://github.com/shakacode/
|
64
|
-
- `apply-template` command now exits with non-zero code if failed to apply any templates. [PR 146](https://github.com/shakacode/
|
64
|
+
- Template substitution (used by `apply-template` and `setup-app` commands) now uses double braces (e.g., `APP_ORG` -> `{{APP_ORG}}`). This change is backwards compatible. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
65
|
+
- Renamed template substitution variable `APP_GVC` to `{{APP_NAME}}` (used by `apply-template` and `setup-app` commands). This change is backwards compatible. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
66
|
+
- `setup-app` command now automatically binds the app to the secrets policy, as long as both the identity and the policy exist. Added `--skip-secret-access-binding` option to prevent this behavior. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
67
|
+
- Local API token is now refreshed when it is about to expire. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
68
|
+
- `apply-template` command now exits with non-zero code if failed to apply any templates. [PR 146](https://github.com/shakacode/control-plane-flow/pull/146) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
65
69
|
|
66
70
|
## [1.3.0] - 2024-03-19
|
67
71
|
|
68
72
|
### Fixed
|
69
73
|
|
70
|
-
- Fixed issue where cpln profile was not switched back to `default` if an error happened while running `copy-image-from-upstream` command. [PR 135](https://github.com/shakacode/
|
71
|
-
- Fixed issue that didn't allow using upstream with `match_if_app_name_starts_with` set to `true` in `copy-image-from-upstream` command. [PR 136](https://github.com/shakacode/
|
74
|
+
- Fixed issue where cpln profile was not switched back to `default` if an error happened while running `copy-image-from-upstream` command. [PR 135](https://github.com/shakacode/control-plane-flow/pull/135) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
75
|
+
- Fixed issue that didn't allow using upstream with `match_if_app_name_starts_with` set to `true` in `copy-image-from-upstream` command. [PR 136](https://github.com/shakacode/control-plane-flow/pull/136) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
72
76
|
|
73
77
|
### Added
|
74
78
|
|
75
|
-
- Added `--no-clean-on-failure` option to `run:detached` command to skip deletion of failed workload run. [PR 133](https://github.com/shakacode/
|
76
|
-
- Added `--domain` option to `maintenance`, `maintenance:on` and `maintenance:off` commands. [PR 131](https://github.com/shakacode/
|
77
|
-
- Added `default_domain` config to specify domain for `maintenance`, `maintenance:on` and `maintenance:off` commands. [PR 131](https://github.com/shakacode/
|
78
|
-
- Added option to specify upstream for `copy-image-from-upstream` command through `CPLN_UPSTREAM` env var. [PR 138](https://github.com/shakacode/
|
79
|
+
- Added `--no-clean-on-failure` option to `run:detached` command to skip deletion of failed workload run. [PR 133](https://github.com/shakacode/control-plane-flow/pull/133) by [Justin Gordon](https://github.com/justin808) and [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
80
|
+
- Added `--domain` option to `maintenance`, `maintenance:on` and `maintenance:off` commands. [PR 131](https://github.com/shakacode/control-plane-flow/pull/131) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
81
|
+
- Added `default_domain` config to specify domain for `maintenance`, `maintenance:on` and `maintenance:off` commands. [PR 131](https://github.com/shakacode/control-plane-flow/pull/131) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
82
|
+
- Added option to specify upstream for `copy-image-from-upstream` command through `CPLN_UPSTREAM` env var. [PR 138](https://github.com/shakacode/control-plane-flow/pull/138) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
79
83
|
|
80
84
|
### Changed
|
81
85
|
|
82
|
-
- `build-image` command now accepts extra options and passes them to `docker build`. [PR 126](https://github.com/shakacode/
|
83
|
-
- `CPLN_ORG_UPSTREAM` env var now takes precedence over config from `controlplane.yml` in `copy-image-from-upstream` command. [PR 137](https://github.com/shakacode/
|
84
|
-
- `info` command now works properly for apps with `match_if_app_name_starts_with` set to `true`.[PR 139](https://github.com/shakacode/
|
85
|
-
- `info` command now lists workloads in the same order as `controlplane.yml`. [PR 139](https://github.com/shakacode/
|
86
|
-
- Improved domain workload matching for `maintenance`, `maintenance:on` and `maintenance:off` commands (instead of matching only by workload, it now matches by org + app + workload, which is more accurate). [PR 140](https://github.com/shakacode/
|
86
|
+
- `build-image` command now accepts extra options and passes them to `docker build`. [PR 126](https://github.com/shakacode/control-plane-flow/pull/126) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
87
|
+
- `CPLN_ORG_UPSTREAM` env var now takes precedence over config from `controlplane.yml` in `copy-image-from-upstream` command. [PR 137](https://github.com/shakacode/control-plane-flow/pull/137) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
88
|
+
- `info` command now works properly for apps with `match_if_app_name_starts_with` set to `true`.[PR 139](https://github.com/shakacode/control-plane-flow/pull/139) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
89
|
+
- `info` command now lists workloads in the same order as `controlplane.yml`. [PR 139](https://github.com/shakacode/control-plane-flow/pull/139) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
90
|
+
- Improved domain workload matching for `maintenance`, `maintenance:on` and `maintenance:off` commands (instead of matching only by workload, it now matches by org + app + workload, which is more accurate). [PR 140](https://github.com/shakacode/control-plane-flow/pull/140) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
87
91
|
|
88
92
|
## [1.2.0] - 2024-01-03
|
89
93
|
|
90
94
|
### Fixed
|
91
95
|
|
92
|
-
- Fixed issue where `info` command does not respect `CPLN_ORG` env var. [PR 88](https://github.com/shakacode/
|
93
|
-
- Fixed issues with running `cpl --version` and `cpl --help` where no configuration file exists. [PR 100](https://github.com/shakacode/
|
94
|
-
- Fixed issue where `delete` command fails to delete apps with volumesets. [PR 123](https://github.com/shakacode/
|
96
|
+
- Fixed issue where `info` command does not respect `CPLN_ORG` env var. [PR 88](https://github.com/shakacode/control-plane-flow/pull/88) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
97
|
+
- Fixed issues with running `cpl --version` and `cpl --help` where no configuration file exists. [PR 100](https://github.com/shakacode/control-plane-flow/pull/100) by [Mostafa Ahangarha](https://github.com/ahangarha).
|
98
|
+
- Fixed issue where `delete` command fails to delete apps with volumesets. [PR 123](https://github.com/shakacode/control-plane-flow/pull/123) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
95
99
|
|
96
100
|
### Added
|
97
101
|
|
98
|
-
- Added `--org` option to all commands. [PR 88](https://github.com/shakacode/
|
99
|
-
- Added option to set the app with a `CPLN_APP` env var. [PR 88](https://github.com/shakacode/
|
100
|
-
- Show `org` and `app` on every command excluding `info`, `version`, `maintenance`, `env`, `ps`, and `latest_image`. [PR 94](https://github.com/shakacode/
|
101
|
-
- Added option to only use `CPLN_ORG` and `CPLN_APP` env vars if `allow_org_override_by_env` and `allow_app_override_by_env` configs are set to `true` in `controlplane.yml`. [PR 109](https://github.com/shakacode/
|
102
|
-
- Added `CPLN_LOCATION` env variable and `--location` option for `apply-template`, `ps`, `run`, `run:detached`. [PR 105](https://github.com/shakacode/
|
103
|
-
- Added `generate` command for creating basic Control Plane configuration directory. [PR 116](https://github.com/shakacode/
|
104
|
-
- Added `--trace` option to all commands for more detailed logs. [PR 124](https://github.com/shakacode/
|
102
|
+
- Added `--org` option to all commands. [PR 88](https://github.com/shakacode/control-plane-flow/pull/88) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
103
|
+
- Added option to set the app with a `CPLN_APP` env var. [PR 88](https://github.com/shakacode/control-plane-flow/pull/88) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
104
|
+
- Show `org` and `app` on every command excluding `info`, `version`, `maintenance`, `env`, `ps`, and `latest_image`. [PR 94](https://github.com/shakacode/control-plane-flow/pull/94) by [Mostafa Ahangarha](https://github.com/ahangarha).
|
105
|
+
- Added option to only use `CPLN_ORG` and `CPLN_APP` env vars if `allow_org_override_by_env` and `allow_app_override_by_env` configs are set to `true` in `controlplane.yml`. [PR 109](https://github.com/shakacode/control-plane-flow/pull/109) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
106
|
+
- Added `CPLN_LOCATION` env variable and `--location` option for `apply-template`, `ps`, `run`, `run:detached`. [PR 105](https://github.com/shakacode/control-plane-flow/pull/105) by [Mostafa Ahangarha](https://github.com/ahangarha).
|
107
|
+
- Added `generate` command for creating basic Control Plane configuration directory. [PR 116](https://github.com/shakacode/control-plane-flow/pull/116) by [Mostafa Ahangarhga](https://github.com/ahangarha).
|
108
|
+
- Added `--trace` option to all commands for more detailed logs. [PR 124](https://github.com/shakacode/control-plane-flow/pull/124) by [justin808](https://github.com/justin808)
|
105
109
|
- Added better error message to check the org name in case of a 403 error. [PR 124](https://github.com/justin808) by [justin808](https://github.com/justin808)
|
106
110
|
|
107
111
|
### Changed
|
108
112
|
|
109
|
-
- `--org` option now takes precedence over `CPLN_ORG` env var, which takes precedence over `cpln_org` from `controlplane.yml`. [PR 88](https://github.com/shakacode/
|
110
|
-
- Renamed `setup` config into `setup_app_templates`. [PR 112](https://github.com/shakacode/
|
113
|
+
- `--org` option now takes precedence over `CPLN_ORG` env var, which takes precedence over `cpln_org` from `controlplane.yml`. [PR 88](https://github.com/shakacode/control-plane-flow/pull/88) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
114
|
+
- Renamed `setup` config into `setup_app_templates`. [PR 112](https://github.com/shakacode/control-plane-flow/pull/112) by [Mostafa Ahangarha](https://github.com/ahangarha).
|
111
115
|
|
112
116
|
## [1.1.2] - 2023-10-17
|
113
117
|
|
114
118
|
### Fixed
|
115
119
|
|
116
|
-
- Fixed failed build on MacOS by adding platform flag and fixed multiple files in yaml document for template. [PR 81](https://github.com/shakacode/
|
120
|
+
- Fixed failed build on MacOS by adding platform flag and fixed multiple files in yaml document for template. [PR 81](https://github.com/shakacode/control-plane-flow/pull/81) by [justin808](https://github.com/justin808).
|
117
121
|
|
118
122
|
### Added
|
119
123
|
|
120
|
-
- Added `open-console` command to open the app console on Control Plane. [PR 83](https://github.com/shakacode/
|
121
|
-
- Added option to set the org with a `CPLN_ORG`/`CPLN_ORG_UPSTREAM` env var. [PR 83](https://github.com/shakacode/
|
122
|
-
- Added `--verbose` option to all commands for more detailed logs. [PR 83](https://github.com/shakacode/
|
124
|
+
- Added `open-console` command to open the app console on Control Plane. [PR 83](https://github.com/shakacode/control-plane-flow/pull/83) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
125
|
+
- Added option to set the org with a `CPLN_ORG`/`CPLN_ORG_UPSTREAM` env var. [PR 83](https://github.com/shakacode/control-plane-flow/pull/83) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
126
|
+
- Added `--verbose` option to all commands for more detailed logs. [PR 83](https://github.com/shakacode/control-plane-flow/pull/83) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
123
127
|
|
124
128
|
### Changed
|
125
129
|
|
126
|
-
- Calling `cpl` with no command now shows the help menu. [PR 83](https://github.com/shakacode/
|
130
|
+
- Calling `cpl` with no command now shows the help menu. [PR 83](https://github.com/shakacode/control-plane-flow/pull/83) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
127
131
|
|
128
132
|
## [1.1.1] - 2023-09-23
|
129
133
|
|
130
134
|
### Fixed
|
131
135
|
|
132
|
-
- Fixed issue where API token is not reset when switching profile. [PR 77](https://github.com/shakacode/
|
136
|
+
- Fixed issue where API token is not reset when switching profile. [PR 77](https://github.com/shakacode/control-plane-flow/pull/77) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
133
137
|
|
134
138
|
## [1.1.0] - 2023-09-20
|
135
139
|
|
136
140
|
### Fixed
|
137
141
|
|
138
|
-
- Fixed issue where `copy-image-from-upstream` command does not copy commit. [PR 70](https://github.com/shakacode/
|
139
|
-
- Fixed issue where an error is not raised if the app is not defined. [PR 73](https://github.com/shakacode/
|
140
|
-
- Fixed issue where `CPLN_ENDPOINT` is not used if available. [PR 75](https://github.com/shakacode/
|
142
|
+
- Fixed issue where `copy-image-from-upstream` command does not copy commit. [PR 70](https://github.com/shakacode/control-plane-flow/pull/70) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
143
|
+
- Fixed issue where an error is not raised if the app is not defined. [PR 73](https://github.com/shakacode/control-plane-flow/pull/73) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
144
|
+
- Fixed issue where `CPLN_ENDPOINT` is not used if available. [PR 75](https://github.com/shakacode/control-plane-flow/pull/75) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
141
145
|
|
142
146
|
### Added
|
143
147
|
|
144
|
-
- Added `image_retention_max_qty` config to clean up images based on max quantity with `cleanup-images` command. [PR 72](https://github.com/shakacode/
|
148
|
+
- Added `image_retention_max_qty` config to clean up images based on max quantity with `cleanup-images` command. [PR 72](https://github.com/shakacode/control-plane-flow/pull/72) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
145
149
|
|
146
150
|
### Changed
|
147
151
|
|
148
|
-
- Updated docs for `run` commands regarding passing arguments at the end. [PR 71](https://github.com/shakacode/
|
149
|
-
- Renamed `cleanup-old-images` command to `cleanup-images`. [PR 72](https://github.com/shakacode/
|
150
|
-
- Renamed `old_image_retention_days` config to `image_retention_days`. [PR 72](https://github.com/shakacode/
|
152
|
+
- Updated docs for `run` commands regarding passing arguments at the end. [PR 71](https://github.com/shakacode/control-plane-flow/pull/71) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
153
|
+
- Renamed `cleanup-old-images` command to `cleanup-images`. [PR 72](https://github.com/shakacode/control-plane-flow/pull/72) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
154
|
+
- Renamed `old_image_retention_days` config to `image_retention_days`. [PR 72](https://github.com/shakacode/control-plane-flow/pull/72) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
151
155
|
|
152
156
|
## [1.0.4] - 2023-07-21
|
153
157
|
|
154
158
|
### Fixed
|
155
159
|
|
156
|
-
- Fixed issue where `run` commands fail when not providing image. [PR 68](https://github.com/shakacode/
|
160
|
+
- Fixed issue where `run` commands fail when not providing image. [PR 68](https://github.com/shakacode/control-plane-flow/pull/68) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
157
161
|
|
158
162
|
## [1.0.3] - 2023-07-07
|
159
163
|
|
160
164
|
### Fixed
|
161
165
|
|
162
|
-
- Fixed `run` commands when specifying image. [PR 62](https://github.com/shakacode/
|
163
|
-
- Fixed `run:cleanup` command for non-interactive workloads. [PR 63](https://github.com/shakacode/
|
164
|
-
- Fixed `run:cleanup` command for all apps that start with name. [PR 64](https://github.com/shakacode/
|
165
|
-
- Fixed `cleanup-old-images` command for all apps that start with name. [PR 65](https://github.com/shakacode/
|
166
|
-
- Fixed `--help` option. [PR 66](https://github.com/shakacode/
|
166
|
+
- Fixed `run` commands when specifying image. [PR 62](https://github.com/shakacode/control-plane-flow/pull/62) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
167
|
+
- Fixed `run:cleanup` command for non-interactive workloads. [PR 63](https://github.com/shakacode/control-plane-flow/pull/63) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
168
|
+
- Fixed `run:cleanup` command for all apps that start with name. [PR 64](https://github.com/shakacode/control-plane-flow/pull/64) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
169
|
+
- Fixed `cleanup-old-images` command for all apps that start with name. [PR 65](https://github.com/shakacode/control-plane-flow/pull/65) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
170
|
+
- Fixed `--help` option. [PR 66](https://github.com/shakacode/control-plane-flow/pull/66) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
167
171
|
|
168
172
|
### Added
|
169
173
|
|
170
|
-
- Added `--use-local-token` option to `run:detached` command. [PR 61](https://github.com/shakacode/
|
174
|
+
- Added `--use-local-token` option to `run:detached` command. [PR 61](https://github.com/shakacode/control-plane-flow/pull/61) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
171
175
|
|
172
176
|
## [1.0.2] - 2023-07-02
|
173
177
|
|
174
178
|
### Added
|
175
179
|
|
176
|
-
- Added steps to migrate to docs. [PR 57](https://github.com/shakacode/
|
177
|
-
- Added `ps:wait` command. [PR 58](https://github.com/shakacode/
|
180
|
+
- Added steps to migrate to docs. [PR 57](https://github.com/shakacode/control-plane-flow/pull/57) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
181
|
+
- Added `ps:wait` command. [PR 58](https://github.com/shakacode/control-plane-flow/pull/58) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
178
182
|
|
179
183
|
## [1.0.1] - 2023-06-28
|
180
184
|
|
181
185
|
### Fixed
|
182
186
|
|
183
|
-
- Fixed `cleanup-stale-apps` command when app does not have image. [PR 55](https://github.com/shakacode/
|
187
|
+
- Fixed `cleanup-stale-apps` command when app does not have image. [PR 55](https://github.com/shakacode/control-plane-flow/pull/55) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
184
188
|
|
185
189
|
### Changed
|
186
190
|
|
187
|
-
- Improved docs. [PR 50](https://github.com/shakacode/
|
191
|
+
- Improved docs. [PR 50](https://github.com/shakacode/control-plane-flow/pull/50) by [Rafael Gomes](https://github.com/rafaelgomesxyz).
|
188
192
|
|
189
193
|
## [1.0.0] - 2023-05-29
|
190
194
|
|
191
195
|
- Initial release
|
192
196
|
|
193
|
-
[Unreleased]: https://github.com/shakacode/
|
194
|
-
[2.0.
|
195
|
-
[
|
196
|
-
[1.
|
197
|
-
[1.
|
198
|
-
[1.
|
199
|
-
[1.1.
|
200
|
-
[1.1.
|
201
|
-
[1.0
|
202
|
-
[1.0.
|
203
|
-
[1.0.
|
204
|
-
[1.0.
|
205
|
-
[1.0.
|
197
|
+
[Unreleased]: https://github.com/shakacode/control-plane-flow/compare/v2.0.1...HEAD
|
198
|
+
[2.0.1]: https://github.com/shakacode/control-plane-flow/compare/v2.0.0...v2.0.1
|
199
|
+
[2.0.0]: https://github.com/shakacode/control-plane-flow/compare/v1.4.0...v2.0.0
|
200
|
+
[1.4.0]: https://github.com/shakacode/control-plane-flow/compare/v1.3.0...v1.4.0
|
201
|
+
[1.3.0]: https://github.com/shakacode/control-plane-flow/compare/v1.2.0...v1.3.0
|
202
|
+
[1.2.0]: https://github.com/shakacode/control-plane-flow/compare/v1.1.2...v1.2.0
|
203
|
+
[1.1.2]: https://github.com/shakacode/control-plane-flow/compare/v1.1.1...v1.1.2
|
204
|
+
[1.1.1]: https://github.com/shakacode/control-plane-flow/compare/v1.1.0...v1.1.1
|
205
|
+
[1.1.0]: https://github.com/shakacode/control-plane-flow/compare/v1.0.4...v1.1.0
|
206
|
+
[1.0.4]: https://github.com/shakacode/control-plane-flow/compare/v1.0.3...v1.0.4
|
207
|
+
[1.0.3]: https://github.com/shakacode/control-plane-flow/compare/v1.0.2...v1.0.3
|
208
|
+
[1.0.2]: https://github.com/shakacode/control-plane-flow/compare/v1.0.1...v1.0.2
|
209
|
+
[1.0.1]: https://github.com/shakacode/control-plane-flow/compare/v1.0.0...v1.0.1
|
210
|
+
[1.0.0]: https://github.com/shakacode/control-plane-flow/releases/tag/v1.0.0
|
data/CONTRIBUTING.md
CHANGED
@@ -6,10 +6,10 @@ Rather than installing `cpl` as a Ruby gem, install this repo locally and alias
|
|
6
6
|
access, e.g.:
|
7
7
|
|
8
8
|
```sh
|
9
|
-
git clone https://github.com/shakacode/
|
9
|
+
git clone https://github.com/shakacode/control-plane-flow
|
10
10
|
|
11
11
|
# Create an alias in some local shell startup script, e.g., `.profile`, `.bashrc`, etc.
|
12
|
-
alias cpl="~/projects/
|
12
|
+
alias cpl="~/projects/control-plane-flow/bin/cpl"
|
13
13
|
```
|
14
14
|
|
15
15
|
## Linting
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="keywords" content="Control Plane, Heroku, Kubernetes, K8, Infrastructure">
|
7
7
|
<meta name="google-site-verification" content="dIV4nMplcYl6YOKOaZMqgvdKXhLJ4cdYY6pS6e_YrPU" />
|
8
8
|
|
9
|
-
[![RSpec](https://github.com/shakacode/
|
10
|
-
[![Rubocop](https://github.com/shakacode/
|
9
|
+
[![RSpec](https://github.com/shakacode/control-plane-flow/actions/workflows/rspec.yml/badge.svg)](https://github.com/shakacode/control-plane-flow/actions/workflows/rspec.yml)
|
10
|
+
[![Rubocop](https://github.com/shakacode/control-plane-flow/actions/workflows/rubocop.yml/badge.svg)](https://github.com/shakacode/control-plane-flow/actions/workflows/rubocop.yml)
|
11
11
|
|
12
12
|
[![Gem](https://badge.fury.io/rb/cpl.svg)](https://badge.fury.io/rb/cpl)
|
13
13
|
|
data/cpl.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "Heroku to Control Plane"
|
12
12
|
spec.description = "CLI for providing Heroku-like platform-as-a-service on Control Plane"
|
13
|
-
spec.homepage = "https://github.com/shakacode/
|
13
|
+
spec.homepage = "https://github.com/shakacode/control-plane-flow"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.required_ruby_version = ">= 2.7.0"
|
data/lib/command/run.rb
CHANGED
@@ -395,7 +395,7 @@ module Command
|
|
395
395
|
script += interactive_runner_script if interactive
|
396
396
|
|
397
397
|
script +=
|
398
|
-
if @log_method == 1
|
398
|
+
if @log_method == 1 || @interactive
|
399
399
|
args_join(config.args)
|
400
400
|
else
|
401
401
|
<<~SCRIPT
|
@@ -442,16 +442,22 @@ module Command
|
|
442
442
|
)
|
443
443
|
end
|
444
444
|
|
445
|
-
def resolve_job_status
|
446
|
-
|
447
|
-
|
448
|
-
|
445
|
+
def resolve_job_status # rubocop:disable Metrics/MethodLength
|
446
|
+
loop do
|
447
|
+
result = cp.fetch_cron_workload(runner_workload, location: location)
|
448
|
+
job_details = result&.dig("items")&.find { |item| item["id"] == job }
|
449
|
+
status = job_details&.dig("status")
|
450
|
+
|
451
|
+
Shell.debug("JOB STATUS", status)
|
449
452
|
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
453
|
+
case status
|
454
|
+
when "active"
|
455
|
+
sleep 1
|
456
|
+
when "successful"
|
457
|
+
break ExitCode::SUCCESS
|
458
|
+
else
|
459
|
+
break ExitCode::ERROR_DEFAULT
|
460
|
+
end
|
455
461
|
end
|
456
462
|
end
|
457
463
|
|
data/lib/core/shell.rb
CHANGED
data/lib/cpl/version.rb
CHANGED
data/lib/cpl.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-05-
|
12
|
+
date: 2024-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: debug
|
@@ -247,7 +247,6 @@ files:
|
|
247
247
|
- docs/troubleshooting.md
|
248
248
|
- examples/circleci.yml
|
249
249
|
- examples/controlplane.yml
|
250
|
-
- googlee2da545df05d92f9.html
|
251
250
|
- lib/command/apply_template.rb
|
252
251
|
- lib/command/base.rb
|
253
252
|
- lib/command/build_image.rb
|
@@ -313,7 +312,7 @@ files:
|
|
313
312
|
- templates/redis2.yml
|
314
313
|
- templates/secrets.yml
|
315
314
|
- templates/sidekiq.yml
|
316
|
-
homepage: https://github.com/shakacode/
|
315
|
+
homepage: https://github.com/shakacode/control-plane-flow
|
317
316
|
licenses:
|
318
317
|
- MIT
|
319
318
|
metadata:
|
@@ -333,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
332
|
- !ruby/object:Gem::Version
|
334
333
|
version: '0'
|
335
334
|
requirements: []
|
336
|
-
rubygems_version: 3.
|
335
|
+
rubygems_version: 3.5.10
|
337
336
|
signing_key:
|
338
337
|
specification_version: 4
|
339
338
|
summary: Heroku to Control Plane
|
data/googlee2da545df05d92f9.html
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
google-site-verification: googlee2da545df05d92f9.html
|