in files/gitlab-cookbooks/package/libraries/deprecations.rb [542:569]
def check_config(incoming_version, existing_config, type = :removal)
messages = []
deprecated_config = applicable_deprecations(incoming_version, existing_config, type)
deprecated_config.each do |deprecation|
config_keys = deprecation[:config_keys].dup
config_keys.shift if ATTRIBUTE_BLOCKS.include?(config_keys[0])
key = if config_keys.length == 1
SettingsDSL::Utils.node_attribute_key(config_keys[0])
elsif config_keys.first.eql?('roles')
"#{SettingsDSL::Utils.node_attribute_key(config_keys[1])}_role"
else
"#{SettingsDSL::Utils.node_attribute_key(config_keys[0])}['#{config_keys.drop(1).join("']['")}']"
end
if type == :deprecation
message = "* #{key} has been deprecated since #{deprecation[:deprecation]} and will be removed in #{deprecation[:removal]}."
elsif type == :removal
message = "* #{key} has been deprecated since #{deprecation[:deprecation]} and was removed in #{deprecation[:removal]}."
end
message += " " + deprecation[:note] if deprecation[:note]
messages << message
end
messages += additional_deprecations(incoming_version, existing_config, type)
messages
end