Module: Gitlab::Ci::Config::Entry::Imageable

Extended by:
ActiveSupport::Concern
Includes:
Gitlab::Config::Entry::Attributable, Gitlab::Config::Entry::Configurable
Included in:
Image, Service
Defined in:
lib/gitlab/ci/config/entry/imageable.rb

Overview

Represents Imageable concern shared by Image and Service.

Constant Summary collapse

IMAGEABLE_ALLOWED_KEYS =
%i[name entrypoint ports pull_policy].freeze

Instance Method Summary collapse

Methods included from Gitlab::Config::Entry::Configurable

#compose!, #entry_create!

Instance Method Details

#entrypointObject



41
42
43
# File 'lib/gitlab/ci/config/entry/imageable.rb', line 41

def entrypoint
  value[:entrypoint]
end

#nameObject



37
38
39
# File 'lib/gitlab/ci/config/entry/imageable.rb', line 37

def name
  value[:name]
end

#skip_config_hash_validation?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/gitlab/ci/config/entry/imageable.rb', line 49

def skip_config_hash_validation?
  true
end

#with_image_ports?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/gitlab/ci/config/entry/imageable.rb', line 45

def with_image_ports?
  opt(:with_image_ports)
end