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' ...@@ -3,7 +3,15 @@ require_dependency 'gitlab/kubernetes/helm.rb'
module Gitlab module Gitlab
module Kubernetes module Kubernetes
module Helm module Helm
class GetCommand < BaseCommand class GetCommand
include BaseCommand
attr_reader :name
def initialize(name)
@name = name
end
def config_map? def config_map?
true true
end end
......
...@@ -3,11 +3,13 @@ require_dependency 'gitlab/kubernetes/helm.rb' ...@@ -3,11 +3,13 @@ require_dependency 'gitlab/kubernetes/helm.rb'
module Gitlab module Gitlab
module Kubernetes module Kubernetes
module Helm module Helm
class UpgradeCommand < BaseCommand class UpgradeCommand
attr_reader :chart, :version, :repository, :values include BaseCommand
attr_reader :name, :chart, :version, :repository, :values
def initialize(name, chart:, values:, version: nil, repository: nil) def initialize(name, chart:, values:, version: nil, repository: nil)
super(name) @name = name
@chart = chart @chart = chart
@version = version @version = version
@values = values @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