Commit 9981781b authored by Thong Kuah's avatar Thong Kuah

Fix ee extension relying BaseCommand being a class.

Rather than inherit, which we can't anymore Helm::BaseCommand is now
a module, include it and adjust the `initialize` methods for the classes
parent be36b087
......@@ -3,7 +3,15 @@ require_dependency 'gitlab/kubernetes/helm.rb'
module Gitlab
module Kubernetes
module Helm
class GetCommand < BaseCommand
class GetCommand
include BaseCommand
attr_reader :name
def initialize(name)
@name = name
end
def config_map?
true
end
......
......@@ -3,11 +3,13 @@ require_dependency 'gitlab/kubernetes/helm.rb'
module Gitlab
module Kubernetes
module Helm
class UpgradeCommand < BaseCommand
attr_reader :chart, :version, :repository, :values
class UpgradeCommand
include BaseCommand
attr_reader :name, :chart, :version, :repository, :values
def initialize(name, chart:, values:, version: nil, repository: nil)
super(name)
@name = name
@chart = chart
@version = version
@values = values
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment