diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb index 3fd8ffb6e92..7dae2234998 100644 --- a/app/models/clusters/cluster.rb +++ b/app/models/clusters/cluster.rb @@ -27,8 +27,8 @@ module Clusters validates :name, cluster_name: true validate :restrict_modification, on: :update + delegate :status, to: :provider, allow_nil: true delegate :status_reason, to: :provider, allow_nil: true - delegate :status_name, to: :provider, allow_nil: true delegate :on_creation?, to: :provider, allow_nil: true enum platform_type: { diff --git a/app/services/clusters/base_helm_service.rb b/app/services/clusters/base_helm_service.rb index dd717a0bb58..0a95955a204 100644 --- a/app/services/clusters/base_helm_service.rb +++ b/app/services/clusters/base_helm_service.rb @@ -17,7 +17,7 @@ module Clusters end def helm_api - @helm ||= Gitlab::Kubernetes::Helm.new(kubeclient) + @helm_api ||= Gitlab::Kubernetes::Helm.new(kubeclient) end end end