Broken master in spec/lib/gitlab/kubernetes/helm/api_spec.rb:32

As seen in https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/46659762:

  1) Gitlab::Kubernetes::Helm::Api#install ensures the namespace exists before creating the POD
     Failure/Error: Pod.new(command, @namespace.name, @kubeclient).generate

     NoMethodError:
       undefined method `new' for Gitlab::Kubernetes::Pod:Module
     # ./lib/gitlab/kubernetes/helm/api.rb:37:in `pod_resource'
     # ./lib/gitlab/kubernetes/helm/api.rb:12:in `install'
     # ./spec/lib/gitlab/kubernetes/helm/api_spec.rb:36:in `block (3 levels) in <top (required)>'

Finished in 17 minutes 58 seconds (files took 22.06 seconds to load)
1324 examples, 1 failure

Failed examples:

rspec ./spec/lib/gitlab/kubernetes/helm/api_spec.rb:32 # Gitlab::Kubernetes::Helm::Api#install ensures the namespace exists before creating the POD

Most likely order-dependent as the commit where the failure started to appear didn't touch this code.

Assignee Loading
Time tracking Loading