Class: Orchparty::Services::Helm
- Defined in:
- lib/orchparty/kubernetes_application.rb
Instance Attribute Summary
Attributes inherited from Context
#app_config, #cluster_name, #dir_path, #namespace
Instance Method Summary collapse
- #install_cmd(helm, fix_file_path = nil) ⇒ Object
- #upgrade_cmd(helm, fix_file_path = nil) ⇒ Object
- #value_path(helm) ⇒ Object
Methods inherited from Context
#initialize, #install, #print_install, #print_upgrade, #template, #upgrade
Constructor Details
This class inherits a constructor from Orchparty::Services::Context
Instance Method Details
#install_cmd(helm, fix_file_path = nil) ⇒ Object
77 78 79 |
# File 'lib/orchparty/kubernetes_application.rb', line 77 def install_cmd(helm, fix_file_path = nil) "helm install --namespace #{namespace} --kube-context #{cluster_name} --version #{helm.version} --name #{helm.name} #{helm.chart} #{template(value_path(helm), helm, fix_file_path: fix_file_path)}" end |
#upgrade_cmd(helm, fix_file_path = nil) ⇒ Object
73 74 75 |
# File 'lib/orchparty/kubernetes_application.rb', line 73 def upgrade_cmd(helm, fix_file_path = nil) "helm upgrade --namespace #{namespace} --kube-context #{cluster_name} --force --version #{helm.version} #{helm.name} #{helm.chart} #{template(value_path(helm), helm, fix_file_path: fix_file_path)}" end |
#value_path(helm) ⇒ Object
69 70 71 |
# File 'lib/orchparty/kubernetes_application.rb', line 69 def value_path(helm) helm[:values] end |