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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08784d9abee427b4bcf5fd1df0f562dd83466213d74aaf1db49194ba0a191382'
4
- data.tar.gz: acb36a47a21932b8302e7428d7c3a34de072b96d7f09ce8ded18544ca1b935c2
3
+ metadata.gz: 92d5b8adbac3de38fe19948d318e2115ea5cb50baefe6c92ce9313fadf5b8121
4
+ data.tar.gz: 061b2b1a0393882715db8eb4c9e9b6cd6c2adb0f854103c74ac9864fe5a058e4
5
5
  SHA512:
6
- metadata.gz: 4ee4910d7cbb90ea81afa82814885585519942d9b710b1eb0f0c550428e4f423763f123f92a3bb2fafa668643bb675206c9e80e2fc3e64f6889d1d83147dabf7
7
- data.tar.gz: ba6d508bf7b57d528cf821246b38ef89165fa94ba6c098eeae00a850b433f5b8e58125b953a832d367a38684bc7cae44e7eb935b0039933c4dbc2fa3fdcf3f4e
6
+ metadata.gz: af8e7e8e27826a8cf1802149faf8c69be696d9c23868b225ca8ad388d632780a5dded023a584e419f8b6a9034b2bb4c19b47f7a154591b3162efcd141006bc69
7
+ data.tar.gz: c11905801f983323ae036f35e8f9b1e10f7d6ee9d137c1f431f12dac86be50faef3b8236a3262b77314a6fc4a33f1172ea86dea2d5218f392916df0a4a988dd0
@@ -1,2 +1,5 @@
1
+ ## 0.2.0
2
+ * Refresh kubeconfig earlier and more often so it's ready during setup.
3
+
1
4
  ## 0.1.0
2
5
  * Birthday!
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'kuby', path: '../kuby'
6
+ gem 'kuby-core', path: '../kuby-core'
7
7
  gem 'pry-byebug'
8
8
  gem 'rake'
9
9
  end
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Kuby
2
2
  module DigitalOcean
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
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.1.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-04 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: droplet_kit