kuby-digitalocean 0.1.0 → 0.2.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 +3 -0
- data/Gemfile +1 -1
- data/lib/kuby/digitalocean/provider.rb +5 -7
- data/lib/kuby/digitalocean/version.rb +1 -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: 92d5b8adbac3de38fe19948d318e2115ea5cb50baefe6c92ce9313fadf5b8121
|
4
|
+
data.tar.gz: 061b2b1a0393882715db8eb4c9e9b6cd6c2adb0f854103c74ac9864fe5a058e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af8e7e8e27826a8cf1802149faf8c69be696d9c23868b225ca8ad388d632780a5dded023a584e419f8b6a9034b2bb4c19b47f7a154591b3162efcd141006bc69
|
7
|
+
data.tar.gz: c11905801f983323ae036f35e8f9b1e10f7d6ee9d137c1f431f12dac86be50faef3b8236a3262b77314a6fc4a33f1172ea86dea2d5218f392916df0a4a988dd0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -20,13 +20,6 @@ module Kuby
|
|
20
20
|
).to_s
|
21
21
|
end
|
22
22
|
|
23
|
-
def after_initialize
|
24
|
-
kubernetes_cli.before_execute do
|
25
|
-
FileUtils.mkdir_p(kubeconfig_dir)
|
26
|
-
refresh_kubeconfig
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
23
|
def after_setup
|
31
24
|
if nginx_ingress = definition.kubernetes.plugin(:nginx_ingress)
|
32
25
|
service = ::KubeDSL::Resource.new(
|
@@ -55,6 +48,10 @@ module Kuby
|
|
55
48
|
end
|
56
49
|
end
|
57
50
|
|
51
|
+
def after_configuration
|
52
|
+
refresh_kubeconfig
|
53
|
+
end
|
54
|
+
|
58
55
|
def storage_class_name
|
59
56
|
STORAGE_CLASS_NAME
|
60
57
|
end
|
@@ -73,6 +70,7 @@ module Kuby
|
|
73
70
|
|
74
71
|
def refresh_kubeconfig
|
75
72
|
return unless should_refresh_kubeconfig?
|
73
|
+
FileUtils.mkdir_p(kubeconfig_dir)
|
76
74
|
Kuby.logger.info('Refreshing kubeconfig...')
|
77
75
|
kubeconfig = client.kubernetes_clusters.kubeconfig(id: config.cluster_id)
|
78
76
|
File.write(kubeconfig_path, kubeconfig)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kuby-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: droplet_kit
|