civo_cli 0.3.19 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/civo_cli/version.rb +1 -1
- data/lib/kubernetes.rb +4 -0
- data/lib/kubernetes_applications.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2036f8ca9f8bf23a3a130c98784aca3fc974f0798d8550334a87ef51b66a9d5
|
4
|
+
data.tar.gz: 748c9360b9333a653e987886754cc287bb2ab11664d2d70eaa686966909f87be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44339de9ba2c6d0f4f7b604554340efd01adc614c50bf8f5f64e439b1622f78de3b1f37540dc9e0e4694794eb619f2d68208e7670e2e490b3dfb15fb727970fd
|
7
|
+
data.tar.gz: e5162bb097e7ad7e1ff60da14192d17235d575ff43f15ff148e9f69320bda502cd64a33be518983a3eabbce038c8737b0f3a25b2f47f654dde3f41394ed6462c
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@ All notable changes to the Civo CLI will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## [0.4.0] - 2019-09-17
|
7
|
+
### Changed
|
8
|
+
- Now the capability exists for pre-installed applications in a cluster, ensure they aren't manually installed
|
9
|
+
|
6
10
|
## [0.3.19] - 2019-09-11
|
7
11
|
### Added
|
8
12
|
- Added aliases for `--applications` when creating a cluster
|
data/Gemfile.lock
CHANGED
data/lib/civo_cli/version.rb
CHANGED
data/lib/kubernetes.rb
CHANGED
@@ -118,6 +118,10 @@ module CivoCLI
|
|
118
118
|
(options[:applications] || "").split(",").map(&:chomp).each do |name|
|
119
119
|
name, plan = name.split(":")
|
120
120
|
app = Finder.detect_app(name)
|
121
|
+
if app.default # Will be installed by default
|
122
|
+
next
|
123
|
+
end
|
124
|
+
|
121
125
|
plans = app.plans&.items
|
122
126
|
|
123
127
|
if app && plans.present? && plan.blank?
|
@@ -57,7 +57,7 @@ module CivoCLI
|
|
57
57
|
|
58
58
|
|
59
59
|
desc "add NAME --cluster=...", "add the marketplace application to a Kubernetes cluster by ID or name"
|
60
|
-
option :cluster
|
60
|
+
option :cluster, required: true
|
61
61
|
long_desc <<-LONGDESC
|
62
62
|
Use --cluster=name to specify part of the ID or name of the cluster to add the application to
|
63
63
|
LONGDESC
|
@@ -65,6 +65,10 @@ module CivoCLI
|
|
65
65
|
CivoCLI::Config.set_api_auth
|
66
66
|
name, plan = name.split(":")
|
67
67
|
app = Finder.detect_app(name)
|
68
|
+
if app.default
|
69
|
+
puts "You cannot choose to install #{app.name}".colorize(:red) + " because it is a pre-installed application"
|
70
|
+
exit 1
|
71
|
+
end
|
68
72
|
cluster = Finder.detect_cluster(options[:cluster])
|
69
73
|
plans = app.plans&.items
|
70
74
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-09-
|
13
|
+
date: 2019-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|