debian-mirror-gitlab/lib/gitlab/kubernetes/helm/v2/reset_command.rb
2021-02-22 17:27:13 +05:30

30 lines
533 B
Ruby

# frozen_string_literal: true
module Gitlab
module Kubernetes
module Helm
module V2
class ResetCommand < BaseCommand
include ClientCommand
def generate_script
super + [
init_command,
reset_helm_command
].join("\n")
end
def pod_name
"uninstall-#{name}"
end
private
def reset_helm_command
'helm reset --force'
end
end
end
end
end
end