debian-mirror-gitlab/lib/gitlab/kubernetes/helm/v2/reset_command.rb

31 lines
533 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
module Gitlab
module Kubernetes
module Helm
module V2
class ResetCommand < BaseCommand
include ClientCommand
def generate_script
super + [
2021-02-22 17:27:13 +05:30
init_command,
reset_helm_command
2021-01-29 00:20:46 +05:30
].join("\n")
end
def pod_name
"uninstall-#{name}"
end
private
def reset_helm_command
2021-02-22 17:27:13 +05:30
'helm reset --force'
2021-01-29 00:20:46 +05:30
end
end
end
end
end
end