Class: Kuby::Azure::Provider
- Inherits:
-
Kubernetes::Provider
- Object
- Kubernetes::Provider
- Kuby::Azure::Provider
- Defined in:
- lib/kuby/azure/provider.rb
Constant Summary collapse
- STORAGE_CLASS_NAME =
'default'.freeze
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #before_deploy ⇒ Object
- #before_setup ⇒ Object
- #configure(&block) ⇒ Object
- #kubeconfig_path ⇒ Object
- #storage_class_name ⇒ Object
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
10 11 12 |
# File 'lib/kuby/azure/provider.rb', line 10 def config @config end |
Instance Method Details
#before_deploy ⇒ Object
30 31 32 |
# File 'lib/kuby/azure/provider.rb', line 30 def before_deploy(*) refresh_kubeconfig end |
#before_setup ⇒ Object
26 27 28 |
# File 'lib/kuby/azure/provider.rb', line 26 def before_setup refresh_kubeconfig end |
#configure(&block) ⇒ Object
12 13 14 |
# File 'lib/kuby/azure/provider.rb', line 12 def configure(&block) config.instance_eval(&block) end |
#kubeconfig_path ⇒ Object
16 17 18 19 20 |
# File 'lib/kuby/azure/provider.rb', line 16 def kubeconfig_path @kubeconfig_path ||= File.join( kubeconfig_dir, "#{environment.app_name.downcase}-kubeconfig.yaml" ) end |
#storage_class_name ⇒ Object
22 23 24 |
# File 'lib/kuby/azure/provider.rb', line 22 def storage_class_name STORAGE_CLASS_NAME end |