Class: Gitlab::QA::Service::ClusterProvider::Base

Inherits:
Object
  • Object
show all
Includes:
Gitlab::QA::Support::Shellout
Defined in:
lib/gitlab/qa/service/cluster_provider/base.rb

Direct Known Subclasses

K3d

Constant Summary collapse

GITLAB_REGISTRY =
'registry.gitlab.com'

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::QA::Support::Shellout

shell

Instance Attribute Details

#create_argsObject

Returns the value of attribute create_args.



12
13
14
# File 'lib/gitlab/qa/service/cluster_provider/base.rb', line 12

def create_args
  @create_args
end

Instance Method Details

#cluster_nameObject



14
15
16
# File 'lib/gitlab/qa/service/cluster_provider/base.rb', line 14

def cluster_name
  @cluster_name ||= "qa-cluster-#{Time.now.utc.strftime('%Y%m%d')}-#{SecureRandom.hex(4)}"
end

#setupObject

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/gitlab/qa/service/cluster_provider/base.rb', line 22

def setup
  raise NotImplementedError
end

#teardownObject

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/gitlab/qa/service/cluster_provider/base.rb', line 26

def teardown
  raise NotImplementedError
end

#validate_dependenciesObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/gitlab/qa/service/cluster_provider/base.rb', line 18

def validate_dependencies
  raise NotImplementedError
end